@font-face {
  font-family: "Gilroy";
  src: url("fonts/Gilroy-Light.woff2") format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gilroy";
  src: url("fonts/Gilroy-LightItalic.woff2") format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Gilroy";
  src: url("fonts/Gilroy-Regular.woff2") format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gilroy";
  src: url("fonts/Gilroy-Medium.woff2") format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gilroy";
  src: url("fonts/Gilroy-SemiBold.woff2") format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gilroy";
  src: url("fonts/Gilroy-Bold.woff2") format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --bg: #f6f4ed;
      --text: #000000;
      --text-light: #666666;
      --text-body: #1a1a1a;
      --nav-border: rgba(0,0,0,0.08);
      --footer-border: rgba(0,0,0,0.1);
      --footer-link: #555;
      --footer-divider: #ccc;
      --teal: #6E8B8D;
      --toggle-bg: rgba(0,0,0,0.08);
      --toggle-icon-color: #555;
    }

    html.dark {
      --bg: #1f1f1f;
      --text: #ffffff;
      --text-light: #bcbcbc;
      --text-body: #d4d4d4;
      --nav-border: rgba(255,255,255,0.08);
      --footer-border: rgba(255,255,255,0.1);
      --footer-link: #888;
      --footer-divider: #444;
      --teal: #8caaab;
      --toggle-bg: rgba(255,255,255,0.1);
      --toggle-icon-color: #bcbcbc;
    }

    html { background: var(--bg); transition: background 0.3s ease; }

    body {
      background-color: var(--bg);
      color: var(--text);
      font-family: "Gilroy", sans-serif;
      font-weight: 300;
      font-size: 16px;
      line-height: 1.7;
      -webkit-font-smoothing: antialiased;
      transition: background 0.3s ease, color 0.3s ease;
    }

    nav {
      position: sticky;
      top: 0;
      z-index: 100;
      background-color: var(--bg);
      border-bottom: 1px solid var(--nav-border);
      padding: 18px 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      transition: background 0.3s ease, border-color 0.3s ease;
    }
    nav a {
      text-decoration: none;
      color: var(--text);
      font-size: 20px;
      font-weight: 400;
      letter-spacing: 0.02em;
      font-family: "Gilroy", sans-serif;
      transition: color 0.3s ease;
    }

    .dm-toggle {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: var(--toggle-bg);
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s ease;
      flex-shrink: 0;
    }
    .dm-toggle:hover { transform: scale(1.1); }
    .dm-toggle svg { display: block; }
    .icon-sun { display: none; }
    html.dark .icon-moon { display: none; }
    html.dark .icon-sun { display: block; }

    main {
      max-width: 720px;
      margin: 0 auto;
      padding: 60px 24px 80px;
    }

    h1 {
      font-size: clamp(28px, 5vw, 40px);
      font-weight: 400;
      letter-spacing: -0.01em;
      line-height: 1.15;
      margin-bottom: 8px;
      font-family: "Gilroy", sans-serif;
      color: var(--text);
      transition: color 0.3s ease;
    }

    .last-updated {
      font-size: 14px;
      color: var(--text-light);
      margin-bottom: 48px;
      transition: color 0.3s ease;
    }

    h2 {
      font-size: clamp(17px, 2.5vw, 20px);
      font-weight: 400;
      letter-spacing: 0em;
      margin-top: 44px;
      margin-bottom: 14px;
      font-family: "Gilroy", sans-serif;
      color: var(--text);
      transition: color 0.3s ease;
    }

    p { margin-bottom: 16px; color: var(--text-body); transition: color 0.3s ease; }

    ul, ol { padding-left: 22px; margin-bottom: 16px; }
    li { margin-bottom: 6px; color: var(--text-body); transition: color 0.3s ease; }

    strong { font-weight: 500; color: var(--text); font-family: "Gilroy", sans-serif; transition: color 0.3s ease; }

    a { color: var(--teal); text-decoration: none; transition: color 0.3s ease; }
    a:hover { text-decoration: underline; }

    footer {
      border-top: 1px solid var(--footer-border);
      padding: 28px 24px;
      text-align: center;
      transition: border-color 0.3s ease;
    }

    .footer-links {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 2px 0;
    }

    .footer-links a {
      color: var(--footer-link);
      font-size: 13px;
      text-decoration: none;
      padding: 6px 16px;
      border-right: 1px solid var(--footer-divider);
      line-height: 1;
      transition: color 0.2s ease, border-color 0.3s ease;
    }
    .footer-links a:last-child { border-right: none; }
    .footer-links a:hover { color: var(--text); }

    /* Prevent horizontal overflow on any viewport */
    html, body { overflow-x: hidden; }

    /* Break long URLs and email addresses gracefully on narrow screens */
    a, p, li { word-break: break-word; overflow-wrap: break-word; }

    /* Tablet — 768px and below */
    @media (max-width: 768px) {
      main { padding: 48px 28px 72px; }
    }

    /* Mobile — 480px and below */
    @media (max-width: 480px) {
      main { padding: 36px 20px 60px; }
      nav { padding: 16px 20px; }
      h2 { margin-top: 36px; }
      .footer-links { gap: 6px 0; }
      .footer-links a { padding: 6px 12px; }
    }

    /* Small phones — 360px and below (budget Androids) */
    @media (max-width: 360px) {
      main { padding: 28px 16px 52px; }
      nav { padding: 14px 16px; }
      body { font-size: 15px; }
    }