:root {
   --page: #f5f8fc;
   --surface: #ffffff;
   --tint: #e8f2ff;
   --text: #101828;
   --muted: #52607a;
   --border: #c9d3e2;
   --brand: #007bff;
   --link: #0059c9;
   --button-text: #ffffff;
   --accent: #ffb224;
   --shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
   --glow: 0 8px 20px rgba(0, 123, 255, 0.18);
}
@media (prefers-color-scheme: dark) {
   :root {
      color-scheme: dark;
      --page: #121a2b;
      --surface: #1b2538;
      --tint: #1a2f52;
      --text: #e8edf6;
      --muted: #a7b3c9;
      --border: #3a4865;
      --link: #5aaeff;
      --button-text: #121a2b;
      --accent: #ffc65c;
      --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
      --glow: 0 8px 20px rgba(0, 123, 255, 0.28);
   }
}
* {
   box-sizing: border-box;
}
html {
   font-family: "Inter", Arial, sans-serif;
   line-height: 1.5;
   color: var(--text);
   background-color: var(--page);
}
body {
   display: flex;
   flex-direction: column;
   min-height: 100vh;
   margin: 0;
}
main {
   display: flex;
   flex-direction: column;
   flex: 1;
   gap: 40px;
   width: 100%;
   max-width: 970px;
   margin: 0 auto;
   padding: 0 20px;
}
h1,
h2 {
   font-family: "Space Grotesk", Arial, sans-serif;
   line-height: 1.2;
   text-wrap: balance;
}
h1 {
   margin: 0;
   font-size: clamp(2.2rem, 1.5rem + 3vw, 3.052rem);
   line-height: 1.1;
   letter-spacing: -0.02em;
}
h2 {
   margin: 0;
   font-size: 1.563rem;
   letter-spacing: -0.01em;
}
p {
   margin: 0;
}
header {
   display: flex;
   flex-wrap: wrap;
   justify-content: space-between;
   align-items: center;
   gap: 4px 20px;
   border-bottom: 1px solid var(--border);
   padding: 12px max(20px, calc((100% - 930px) / 2));
   margin-bottom: 32px;
   font-size: 1.25rem;
   position: sticky;
   top: 0;
   z-index: 1;
   background-color: var(--surface);
}
.site-title {
   display: flex;
   align-items: center;
   gap: 10px;
   font-family: "Space Grotesk", Arial, sans-serif;
   font-size: 1.563rem;
   font-weight: bold;
   line-height: 1.2;
   letter-spacing: -0.01em;
   color: var(--text);
   text-decoration: none;
}
nav {
   display: flex;
   gap: 28px;
   font-weight: bold;
}
nav a {
   text-decoration: none;
   color: var(--text);
   border-bottom: 3px solid transparent;
   transition: border-color 0.2s;
}
nav a:hover {
   border-bottom-color: var(--muted);
}
nav a[aria-current] {
   border-bottom-color: var(--accent);
}
.page-title {
   display: flex;
   flex-direction: column;
   gap: 8px;
}
.page-title p {
   font-size: 1.25rem;
   color: var(--muted);
}
.card {
   display: flex;
   flex-direction: column;
   border: 1px solid var(--border);
   border-radius: 14px;
   background-color: var(--surface);
   font-size: 1.25rem;
   box-shadow: var(--shadow);
   transition: 0.2s;
}
.card:has(h2 a):hover,
.card:has(h2 a):focus-within {
   border-color: var(--brand);
   background-color: var(--tint);
   box-shadow: var(--glow);
   transform: translateY(-3px);
}
.card:has(h2 a)::before {
   content: "→";
   content: "→" / "";
   position: absolute;
   top: 28px;
   right: 24px;
   font-size: 1.563rem;
   line-height: 1.2;
   color: var(--muted);
   transition: 0.2s;
}
.card:has(h2 a):hover::before,
.card:has(h2 a):focus-within::before {
   color: var(--text);
   transform: translateX(4px);
}
a:focus-visible {
   outline: 3px solid var(--brand);
   outline-offset: 3px;
}
footer {
   display: flex;
   flex-wrap: wrap;
   justify-content: space-between;
   align-items: center;
   gap: 8px 24px;
   border-top: 1px solid var(--border);
   padding: 24px max(20px, calc((100% - 930px) / 2)) 32px;
   margin-top: 48px;
   color: var(--muted);
}
.footer-links {
   display: flex;
   gap: 24px;
}
footer a {
   font-weight: bold;
   color: var(--muted);
   text-decoration: none;
   transition: color 0.2s;
}
footer a:hover {
   color: var(--text);
}
.nav-toggle,
.nav-toggle-label {
   display: none;
}
@media (max-width: 600px) {
   .nav-toggle {
      display: block;
      position: absolute;
      opacity: 0;
      pointer-events: none;
   }
   .nav-toggle-label {
      display: block;
      font-weight: bold;
      cursor: pointer;
   }
   .nav-toggle:focus-visible + .nav-toggle-label {
      outline: 2px solid var(--brand);
   }
   nav {
      display: none;
      flex-basis: 100%;
      flex-direction: column;
      gap: 0;
      padding-top: 6px;
   }
   .nav-toggle:checked ~ nav {
      display: flex;
   }
   nav a {
      padding: 8px 12px 8px 0;
      border-bottom: 0;
      border-right: 3px solid transparent;
      text-align: right;
   }
   nav a:hover {
      border-right-color: var(--muted);
   }
   nav a[aria-current] {
      border-right-color: var(--accent);
   }
}
@media (prefers-reduced-motion: reduce) {
   .card,
   .card::before,
   nav a,
   footer a {
      transition: none;
   }
   .card:has(h2 a):hover,
   .card:has(h2 a):focus-within,
   .card:has(h2 a):hover::before,
   .card:has(h2 a):focus-within::before {
      transform: none;
   }
}
