@layer reset, tokens, base, layout, components, motion, responsive;

@layer reset {
  *, *::before, *::after {
    box-sizing: border-box;
  }

  html {
    -webkit-text-size-adjust: 100%;
  }

  body,
  h1,
  h2,
  h3,
  p,
  figure,
  blockquote,
  dl,
  dd {
    margin: 0;
  }

  ul,
  ol {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  img,
  svg {
    display: block;
    max-width: 100%;
  }

  button,
  input,
  textarea,
  select {
    font: inherit;
  }

  button {
    border: 0;
  }

  a {
    color: inherit;
  }

  summary {
    list-style: none;
  }

  summary::-webkit-details-marker {
    display: none;
  }
}

@layer tokens {
  :root {
    color-scheme: light;

    --page: #f3f4ef;
    --page-soft: #e8ece5;
    --surface: #fbfcf8;
    --surface-strong: #ffffff;
    --surface-glass: rgba(251, 252, 248, 0.84);

    --ink: #10211e;
    --ink-soft: #52645f;
    --inverse: #f4fbf7;
    --deep: #102722;

    --line: rgba(16, 33, 30, 0.14);
    --line-strong: rgba(16, 33, 30, 0.28);

    --green: #0e7564;
    --green-strong: #075c4e;
    --mint: #5ed4bf;
    --acid: #e5fb67;
    --purple: #675cef;
    --purple-soft: #dcd8ff;
    --orange: #f0a44b;

    --shadow-sm: 0 12px 32px rgba(20, 49, 43, 0.08);
    --shadow-md: 0 20px 56px rgba(20, 49, 43, 0.12);
    --shadow-lg: 0 34px 96px rgba(20, 49, 43, 0.18);

    --radius-sm: 0.85rem;
    --radius-md: 1.35rem;
    --radius-lg: 2.1rem;

    --container: 90rem;
    --header: 4.8rem;
    --ease: cubic-bezier(.2, .78, .25, 1);
  }

  html[data-theme="dark"] {
    color-scheme: dark;

    --page: #07100e;
    --page-soft: #0b1714;
    --surface: #0f1d19;
    --surface-strong: #13241f;
    --surface-glass: rgba(15, 29, 25, 0.86);

    --ink: #edf8f3;
    --ink-soft: #a6b9b2;
    --inverse: #091511;
    --deep: #e9f8f1;

    --line: rgba(226, 244, 237, 0.13);
    --line-strong: rgba(226, 244, 237, 0.25);

    --green: #66d4c0;
    --green-strong: #83ead7;
    --mint: #70e1cd;
    --acid: #dff863;
    --purple: #9b93ff;
    --purple-soft: #292553;
    --orange: #ffc16f;

    --shadow-sm: 0 12px 32px rgba(0, 0, 0, 0.22);
    --shadow-md: 0 20px 58px rgba(0, 0, 0, 0.32);
    --shadow-lg: 0 34px 96px rgba(0, 0, 0, 0.46);
  }
}

@layer base {
  html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header) + 1rem);
    background: var(--page);
  }

  body {
    min-width: 20rem;
    min-height: 100vh;
    overflow-x: hidden;

    background:
      radial-gradient(
        circle at 12% 7%,
        rgba(94, 212, 191, 0.12),
        transparent 28rem
      ),
      radial-gradient(
        circle at 91% 16%,
        rgba(103, 92, 239, 0.11),
        transparent 27rem
      ),
      var(--page);

    color: var(--ink);

    font-family:
      Inter,
      ui-sans-serif,
      system-ui,
      -apple-system,
      BlinkMacSystemFont,
      "Segoe UI",
      sans-serif;

    font-size: 1rem;
    line-height: 1.65;

    transition:
      background-color 220ms ease,
      color 220ms ease;
  }

  body::before {
    content: "";

    position: fixed;
    inset: 0;
    z-index: -1;

    pointer-events: none;
    opacity: 0.28;

    background-image:
      linear-gradient(
        to right,
        var(--line) 1px,
        transparent 1px
      ),
      linear-gradient(
        to bottom,
        var(--line) 1px,
        transparent 1px
      );

    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, black, transparent 72%);
  }

  h1,
  h2,
  h3 {
    font-family:
      "Iowan Old Style",
      "Palatino Linotype",
      Palatino,
      "Book Antiqua",
      Georgia,
      serif;

    font-weight: 400;
    line-height: 1.04;
    text-wrap: balance;
  }

  h1 {
    font-size: clamp(3.1rem, 5.2vw, 5.85rem);
    letter-spacing: -0.05em;
  }

  h2 {
    font-size: clamp(2.25rem, 3.8vw, 4rem);
    letter-spacing: -0.04em;
  }

  h3 {
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    letter-spacing: -0.025em;
  }

  p {
    text-wrap: pretty;
  }

  a {
    text-underline-offset: 0.2em;
    text-decoration-thickness: 0.08em;
  }

  :focus-visible {
    outline: 3px solid var(--acid);
    outline-offset: 4px;
    border-radius: 0.35rem;
  }

  ::selection {
    background: var(--acid);
    color: #10211e;
  }
}

@layer layout {
  .shell,
  .hero-grid,
  .nav-shell,
  .footer-grid {
    width: min(calc(100% - 3rem), var(--container));
    margin-inline: auto;
  }

  .section {
    padding-block: clamp(4.5rem, 7vw, 7rem);
  }

  .section-head {
    display: grid;
    grid-template-columns:
      minmax(0, 1.08fr)
      minmax(20rem, 0.72fr);

    align-items: end;
    gap: clamp(2rem, 4vw, 4rem);

    margin-bottom: clamp(2.4rem, 4vw, 3.7rem);
  }

  .section-head h2 {
    max-width: 15ch;
  }

  .section-head > p {
    max-width: 39rem;
    color: var(--ink-soft);
    font-size: clamp(1rem, 1.2vw, 1.12rem);
  }

  .eyebrow {
    color: var(--green-strong);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }
}

@layer components {
  .skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 999;

    padding: 0.7rem 1rem;
    border-radius: 999px;

    background: var(--acid);
    color: #10211e;
    font-weight: 850;

    transform: translateY(-160%);
    transition: transform 160ms ease;
  }

  .skip-link:focus {
    transform: translateY(0);
  }

  .scroll-progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 130;

    height: 3px;
    pointer-events: none;
  }

  .scroll-progress span {
    display: block;
    width: 100%;
    height: 100%;

    background:
      linear-gradient(
        90deg,
        var(--mint),
        var(--acid),
        var(--purple)
      );

    transform: scaleX(0);
    transform-origin: left;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    min-height: var(--header);
    border-bottom: 1px solid transparent;

    background:
      color-mix(
        in srgb,
        var(--page) 82%,
        transparent
      );

    backdrop-filter: blur(18px) saturate(125%);
    -webkit-backdrop-filter: blur(18px) saturate(125%);

    transition:
      border-color 180ms ease,
      box-shadow 180ms ease;
  }

  .site-header.is-scrolled {
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
  }

  .nav-shell {
    min-height: var(--header);

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;

    gap: 1.25rem;
  }

  .brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;

    text-decoration: none;
  }

  .brand-mark {
    display: grid;
    place-items: center;

    width: 3.3rem;
    height: 3.3rem;
    flex: 0 0 auto;

    border: 1px solid var(--line);
    border-radius: 1rem;

    background:
      color-mix(
        in srgb,
        var(--surface-glass) 90%,
        transparent
      );

    box-shadow: var(--shadow-sm);

    transition:
      transform 190ms var(--ease),
      border-color 190ms ease,
      box-shadow 190ms ease;
  }

  .brand:hover .brand-mark {
    border-color: var(--line-strong);
    transform: translateY(-2px);
  }

  .brand-mark img {
    width: 2.75rem;
    height: 2.75rem;
    object-fit: contain;
  }

  .brand-name {
    font-size: 1rem;
    font-weight: 820;
    letter-spacing: -0.02em;
  }

  .desktop-nav {
    justify-self: center;

    display: flex;
    align-items: center;

    gap: 0.08rem;
  }

  .desktop-nav > a,
  .nav-dropdown > summary {
    position: relative;

    display: inline-flex;
    align-items: center;
    gap: 0.35rem;

    min-height: 2.75rem;
    padding: 0.65rem 0.72rem;

    color: var(--ink-soft);

    font-size: 0.82rem;
    font-weight: 760;

    text-decoration: none;
    cursor: pointer;
  }

  .desktop-nav > a::after,
  .nav-dropdown > summary::after {
    content: "";

    position: absolute;
    right: 0.72rem;
    bottom: 0.28rem;
    left: 0.72rem;

    height: 2px;
    border-radius: 999px;

    background: var(--green);

    transform: scaleX(0);
    transform-origin: center;

    transition: transform 180ms ease;
  }

  .desktop-nav > a:hover,
  .desktop-nav > a[aria-current="page"],
  .nav-dropdown > summary:hover,
  .nav-dropdown[open] > summary {
    color: var(--ink);
  }

  .desktop-nav > a:hover::after,
  .desktop-nav > a[aria-current="page"]::after,
  .nav-dropdown > summary:hover::after,
  .nav-dropdown[open] > summary::after {
    transform: scaleX(1);
  }

  .nav-dropdown {
    position: relative;
  }

  .nav-dropdown summary svg {
    width: 0.9rem;
    height: 0.9rem;

    transition: transform 180ms ease;
  }

  .nav-dropdown[open] summary svg {
    transform: rotate(180deg);
  }

  .dropdown-panel {
    position: absolute;
    top: calc(100% + 0.65rem);
    left: 50%;
    z-index: 30;

    width: min(25rem, calc(100vw - 2rem));
    padding: 0.6rem;

    border: 1px solid var(--line);
    border-radius: var(--radius-md);

    background: var(--surface);
    box-shadow: var(--shadow-lg);

    transform: translateX(-50%);
  }

  .dropdown-link {
    display: grid;
    gap: 0.22rem;

    padding: 0.9rem 1rem;
    border-radius: 0.9rem;

    text-decoration: none;
  }

  .dropdown-link:hover {
    background: var(--page-soft);
  }

  .dropdown-link strong {
    font-size: 0.9rem;
  }

  .dropdown-link small {
    color: var(--ink-soft);
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 0.55rem;
  }

  .icon-button,
  .header-cta,
  .language-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 2.75rem;
    min-height: 2.75rem;

    border: 1px solid var(--line);
    border-radius: 999px;

    background: var(--surface-glass);
    color: var(--ink);

    cursor: pointer;
    text-decoration: none;
  }

  .icon-button:hover,
  .language-link:hover {
    border-color: var(--line-strong);
    background: var(--surface);
  }

  .icon-button svg {
    width: 1.2rem;
    height: 1.2rem;
  }

  .header-cta {
    min-width: auto;
    padding-inline: 1rem;

    border-color: var(--deep);
    background: var(--deep);
    color: var(--inverse);

    font-size: 0.82rem;
    font-weight: 820;
  }

  .language-link {
    min-width: 3rem;
    padding-inline: 0.72rem;

    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .theme-icon-moon {
    display: none;
  }

  html[data-theme="dark"] .theme-icon-sun {
    display: none;
  }

  html[data-theme="dark"] .theme-icon-moon {
    display: block;
  }

  .mobile-menu {
    display: none;
    position: relative;
  }

  .mobile-menu > summary {
    list-style: none;
  }

  .mobile-panel {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    z-index: 30;

    width: min(23rem, calc(100vw - 2rem));
    max-height:
      calc(
        100vh -
        var(--header) -
        2rem
      );

    overflow: auto;
    padding: 0.65rem;

    border: 1px solid var(--line);
    border-radius: var(--radius-md);

    background: var(--surface);
    box-shadow: var(--shadow-lg);
  }

  .mobile-panel a {
    display: flex;
    align-items: center;

    min-height: 3rem;
    padding: 0.7rem 0.9rem;

    border-radius: 0.8rem;

    font-size: 0.92rem;
    font-weight: 760;

    text-decoration: none;
  }

  .mobile-panel a:hover,
  .mobile-panel a[aria-current="page"] {
    background: var(--page-soft);
  }

  .mobile-nav-heading {
    display: block;

    padding: 0.85rem 0.9rem 0.28rem;

    color: var(--green-strong);

    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
  }

  .mobile-panel .mobile-sub-link {
    min-height: 2.65rem;
    padding-left: 1.25rem;

    color: var(--ink-soft);
    font-size: 0.86rem;
  }

  .hero {
    display: grid;
    align-items: center;

    min-height:
      calc(
        100svh -
        var(--header)
      );

    padding-block:
      clamp(
        3.4rem,
        7vw,
        7rem
      );
  }

  .hero-grid {
    display: grid;

    grid-template-columns:
      minmax(0, 1.15fr)
      minmax(20rem, 0.72fr);

    align-items: center;

    gap:
      clamp(
        2.5rem,
        6vw,
        7rem
      );
  }

  .hero-copy {
    max-width: 54rem;
  }

  .hero h1 {
    max-width: 15ch;
    margin-top: 0.75rem;
  }

  .hero h1 em {
    color: var(--purple);
    font-style: normal;
  }

  .hero-lead {
    max-width: 47rem;
    margin-top: 1.3rem;

    color: var(--ink-soft);

    font-size:
      clamp(
        1.05rem,
        1.4vw,
        1.22rem
      );

    line-height: 1.62;
  }

  .topic-pills {
    display: flex;
    flex-wrap: wrap;

    gap: 0.55rem;
    margin-top: 1.6rem;
  }

  .topic-pills li {
    padding: 0.48rem 0.75rem;

    border: 1px solid var(--line);
    border-radius: 999px;

    background: var(--surface-glass);
    color: var(--ink-soft);

    font-size: 0.78rem;
    font-weight: 780;
  }

  .hero-actions,
  .contact-actions,
  .author-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 0.8rem;
    margin-top: 1.8rem;
  }

  .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 3.1rem;
    padding: 0.78rem 1.15rem;

    border: 1px solid var(--line-strong);
    border-radius: 999px;

    font-size: 0.88rem;
    font-weight: 850;

    text-decoration: none;

    transition:
      transform 180ms var(--ease),
      box-shadow 180ms ease,
      background-color 180ms ease;
  }

  .button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
  }

  .button-primary {
    border-color: var(--deep);
    background: var(--deep);
    color: var(--inverse);
  }

  .button-secondary {
    background: var(--surface-glass);
    color: var(--ink);
  }

  .signal-board {
    position: relative;

    min-height: 33rem;

    padding:
      clamp(
        1.4rem,
        3vw,
        2.2rem
      );

    overflow: hidden;

    border: 1px solid var(--line);
    border-radius: var(--radius-lg);

    background:
      linear-gradient(
        145deg,
        var(--deep),
        #183f37
      );

    color: #f4fbf7;
    box-shadow: var(--shadow-lg);
  }

  .signal-board::before {
    content: "";

    position: absolute;
    top: -9rem;
    right: -9rem;

    width: 22rem;
    height: 22rem;

    border: 1px solid rgba(229, 251, 103, 0.35);
    border-radius: 50%;

    box-shadow:
      0 0 0 3rem rgba(94, 212, 191, 0.05),
      0 0 0 7rem rgba(103, 92, 239, 0.05);
  }

  .signal-kicker {
    position: relative;

    color: var(--acid);

    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }

  .signal-board blockquote {
    position: relative;

    max-width: 17ch;
    margin-top: 1.15rem;

    font-family:
      "Iowan Old Style",
      Georgia,
      serif;

    font-size:
      clamp(
        2rem,
        3vw,
        3.15rem
      );

    line-height: 1.02;
    letter-spacing: -0.04em;
  }

  .signal-list {
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    left: 1.5rem;

    display: grid;

    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );

    gap: 0.7rem;
  }

  .signal-list li {
    padding: 0.8rem 0.9rem;

    border: 1px solid rgba(244, 251, 247, 0.18);
    border-radius: 1rem;

    background: rgba(244, 251, 247, 0.07);
    color: #cfe0da;

    font-size: 0.78rem;
    font-weight: 780;
  }

  .signal-list li::before {
    content: "";

    display: inline-block;

    width: 0.48rem;
    height: 0.48rem;

    margin-right: 0.45rem;

    border-radius: 50%;

    background: var(--acid);

    box-shadow:
      0 0 0 0.22rem
      rgba(229, 251, 103, 0.13);
  }

  .latest-section {
    border-block: 1px solid var(--line);

    background:
      color-mix(
        in srgb,
        var(--surface) 72%,
        transparent
      );
  }

  .post-grid {
    display: grid;

    grid-template-columns:
      repeat(
        3,
        minmax(0, 1fr)
      );

    gap: 1rem;
  }

  .post-card {
    position: relative;

    height: 100%;

    padding:
      clamp(
        1.35rem,
        2.5vw,
        1.8rem
      );

    border: 1px solid var(--line);
    border-radius: var(--radius-md);

    background: var(--surface-glass);
    box-shadow: var(--shadow-sm);

    transition:
      transform 190ms var(--ease),
      box-shadow 190ms ease,
      border-color 190ms ease;
  }

  .post-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
  }

  .post-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 0.5rem 0.9rem;

    color: var(--green-strong);

    font-size: 0.72rem;
    font-weight: 860;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .post-card h3 {
    margin-top: 1.35rem;
  }

  .post-card h3 a {
    text-decoration: none;
  }

  .post-card h3 a::after {
    content: "";

    position: absolute;
    inset: 0;
  }

  .post-card > p:not(.post-meta) {
    margin-top: 0.8rem;
    color: var(--ink-soft);
  }

  .post-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 0.42rem;
    margin-top: 1.35rem;
  }

  .post-tags li {
    padding: 0.35rem 0.58rem;

    border-radius: 999px;

    background: var(--page-soft);
    color: var(--ink-soft);

    font-size: 0.7rem;
    font-weight: 780;
  }

  .empty-state {
    display: grid;

    grid-template-columns:
      auto
      minmax(0, 1fr)
      auto;

    align-items: center;

    gap: 1.2rem;

    padding:
      clamp(
        1.4rem,
        3vw,
        2rem
      );

    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-md);

    background: var(--surface-glass);
  }

  .empty-index {
    display: grid;
    place-items: center;

    width: 3.25rem;
    height: 3.25rem;

    border-radius: 1rem;

    background: var(--purple-soft);
    color: var(--purple);

    font-size: 0.78rem;
    font-weight: 900;
  }

  .empty-state h3 {
    font-size:
      clamp(
        1.35rem,
        2vw,
        1.75rem
      );
  }

  .empty-state p {
    max-width: 48rem;
    margin-top: 0.35rem;

    color: var(--ink-soft);
  }

  .empty-status {
    padding: 0.45rem 0.7rem;

    border-radius: 999px;

    background: var(--page-soft);
    color: var(--green-strong);

    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .topic-grid {
    display: grid;

    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );

    gap: 1rem;
  }

  .topic-card {
    position: relative;

    display: grid;

    min-height: 18rem;

    padding:
      clamp(
        1.4rem,
        3vw,
        2rem
      );

    overflow: hidden;

    border: 1px solid var(--line);
    border-radius: var(--radius-md);

    background: var(--surface-glass);
    box-shadow: var(--shadow-sm);

    text-decoration: none;

    transition:
      transform 190ms var(--ease),
      box-shadow 190ms ease,
      border-color 190ms ease;
  }

  .topic-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
  }

  .topic-card::after {
    content: "↗";

    position: absolute;
    top: 1.35rem;
    right: 1.35rem;

    display: grid;
    place-items: center;

    width: 2.5rem;
    height: 2.5rem;

    border: 1px solid var(--line);
    border-radius: 50%;

    color: var(--green-strong);
    font-weight: 900;
  }

  .topic-index {
    color: var(--green-strong);

    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.13em;
  }

  .topic-card h3 {
    max-width: 16ch;

    margin-top: auto;
    padding-top: 2rem;
  }

  .topic-card p {
    max-width: 40rem;
    margin-top: 0.75rem;

    color: var(--ink-soft);
  }

  .topic-card:nth-child(2) {
    background:
      color-mix(
        in srgb,
        var(--purple-soft) 35%,
        var(--surface)
      );
  }

  .topic-card:nth-child(3) {
    background:
      color-mix(
        in srgb,
        var(--acid) 16%,
        var(--surface)
      );
  }

  .topic-card:nth-child(4) {
    background:
      color-mix(
        in srgb,
        var(--mint) 17%,
        var(--surface)
      );
  }

  .standards-section {
    background: var(--deep);
    color: var(--inverse);
  }

  html[data-theme="dark"] .standards-section {
    background: #0c1e19;
  }

  .standards-section .eyebrow {
    color: var(--acid);
  }

  .standards-section .section-head > p {
    color: #b7cbc4;
  }

  .standards-grid {
    display: grid;

    grid-template-columns:
      repeat(
        4,
        minmax(0, 1fr)
      );

    gap: 0.8rem;
  }

  .standard-card {
    padding: 1.4rem;

    border: 1px solid rgba(244, 251, 247, 0.16);
    border-radius: var(--radius-md);

    background: rgba(244, 251, 247, 0.06);
  }

  .standard-number {
    color: var(--acid);

    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
  }

  .standard-card h3 {
    margin-top: 2.2rem;

    color: #f4fbf7;
    font-size: 1.35rem;
  }

  .standard-card p {
    margin-top: 0.7rem;

    color: #b7cbc4;
    font-size: 0.9rem;
  }

  .author-panel {
    display: grid;

    grid-template-columns:
      minmax(12rem, 0.42fr)
      minmax(0, 1fr);

    gap:
      clamp(
        2rem,
        5vw,
        5rem
      );

    align-items: center;

    padding:
      clamp(
        1.5rem,
        4vw,
        3rem
      );

    border: 1px solid var(--line);
    border-radius: var(--radius-lg);

    background: var(--surface-glass);
    box-shadow: var(--shadow-md);
  }

  .author-image-wrap {
    position: relative;

    max-width: 19rem;
    margin-inline: auto;
  }

  .author-image-wrap::before {
    content: "";

    position: absolute;
    inset: 8% -7% -7% 8%;
    z-index: -1;

    border-radius: 42% 58% 55% 45%;

    background:
      linear-gradient(
        145deg,
        var(--mint),
        var(--purple)
      );

    opacity: 0.68;
  }

  .author-image {
    width: 100%;
    aspect-ratio: 1;

    object-fit: cover;

    border: 1px solid var(--line);
    border-radius: 42% 58% 55% 45%;

    background: var(--page-soft);
  }

  .author-copy h2 {
    max-width: 16ch;
    margin-top: 0.75rem;
  }

  .author-copy > p:not(.eyebrow) {
    max-width: 48rem;
    margin-top: 1rem;

    color: var(--ink-soft);
    font-size: 1.04rem;
  }

  .contact-panel {
    position: relative;

    overflow: hidden;

    padding:
      clamp(
        2rem,
        5vw,
        4rem
      );

    border-radius: var(--radius-lg);

    background: #201b3f;
    color: #f4fbf7;

    text-align: center;
    box-shadow: var(--shadow-lg);
  }

  .contact-panel::before {
    content: "";

    position: absolute;
    top: -14rem;
    right: -8rem;

    width: 24rem;
    height: 24rem;

    border-radius: 50%;

    background: rgba(155, 147, 255, 0.18);

    box-shadow:
      0 0 0 5rem
      rgba(94, 212, 191, 0.04);
  }

  .contact-panel > * {
    position: relative;
  }

  .contact-panel .eyebrow {
    color: var(--acid);
  }

  .contact-panel h2 {
    max-width: 18ch;
    margin: 1rem auto 0;
  }

  .contact-panel > p:not(.eyebrow) {
    max-width: 42rem;
    margin: 1.2rem auto 0;

    color: #c8c3e8;
  }

  .contact-actions {
    justify-content: center;
  }

  .contact-panel .button-primary {
    border-color: #9b93ff;
    background: #9b93ff;
    color: #15112c;
  }

  .contact-panel .button-secondary {
    border-color: rgba(244, 251, 247, 0.3);
    background: rgba(244, 251, 247, 0.08);
    color: #f4fbf7;
  }

  .site-footer {
    padding-block: 3.5rem 2rem;
    border-top: 1px solid var(--line);
  }

  .footer-grid {
    display: grid;

    grid-template-columns:
      minmax(0, 1.15fr)
      minmax(18rem, 0.85fr)
      minmax(10rem, 0.45fr);

    gap: 2rem 4rem;
  }

  .footer-identity strong {
    font-family:
      "Iowan Old Style",
      Georgia,
      serif;

    font-size: 1.5rem;
    font-weight: 500;
  }

  .footer-identity p {
    max-width: 34rem;
    margin-top: 0.75rem;

    color: var(--ink-soft);
  }

  .footer-heading {
    display: block;
    margin-bottom: 0.8rem;

    color: var(--green-strong);

    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
  }

  .footer-link-columns {
    display: grid;

    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );

    gap: 1.2rem;
  }

  .footer-link-list,
  .footer-contact {
    display: grid;
    align-content: start;

    gap: 0.45rem;
  }

  .footer-link-list a,
  .footer-contact a {
    color: var(--ink-soft);
    font-size: 0.9rem;
    text-decoration: none;
  }

  .footer-link-list a:hover,
  .footer-contact a:hover {
    color: var(--ink);
    text-decoration: underline;
  }

  .footer-bottom {
    grid-column: 1 / -1;

    padding-top: 1.4rem;
    border-top: 1px solid var(--line);

    color: var(--ink-soft);
    font-size: 0.82rem;
  }

  .visually-hidden {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;

    white-space: nowrap !important;
    border: 0 !important;
  }
}

@layer motion {
  .reveal {
    opacity: 1;
    transform: none;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
      scroll-behavior: auto !important;
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }

    .reveal {
      opacity: 1;
      transform: none;
    }
  }
}

@layer responsive {
  @media (max-width: 78rem) {
    .desktop-nav {
      display: none;
    }

    .mobile-menu {
      display: block;
    }

    .hero-grid {
      grid-template-columns:
        minmax(0, 1fr)
        minmax(19rem, 0.68fr);

      gap: 2.5rem;
    }

    .standards-grid {
      grid-template-columns:
        repeat(
          2,
          minmax(0, 1fr)
        );
    }

    .post-grid {
      grid-template-columns:
        repeat(
          2,
          minmax(0, 1fr)
        );
    }
  }

  @media (max-width: 60rem) {
    .hero {
      min-height: auto;
    }

    .hero-grid {
      grid-template-columns: 1fr;
    }

    .hero-copy {
      max-width: 58rem;
    }

    .signal-board {
      min-height: 26rem;
    }

    .section-head {
      grid-template-columns: 1fr;
      align-items: start;
      gap: 1.2rem;
    }

    .topic-grid {
      grid-template-columns: 1fr;
    }

    .topic-card {
      min-height: 15rem;
    }

    .author-panel {
      grid-template-columns:
        minmax(10rem, 0.34fr)
        minmax(0, 1fr);
    }

    .footer-grid {
      grid-template-columns:
        minmax(0, 1fr)
        minmax(16rem, 0.8fr);
    }

    .footer-contact {
      grid-column: 1 / -1;

      grid-template-columns:
        repeat(4, auto);

      justify-content: start;
      gap: 0.8rem 1.2rem;
    }

    .footer-contact .footer-heading {
      grid-column: 1 / -1;
    }
  }

  @media (max-width: 44rem) {
    :root {
      --header: 4.4rem;
    }

    .shell,
    .hero-grid,
    .nav-shell,
    .footer-grid {
      width:
        min(
          calc(100% - 2rem),
          var(--container)
        );
    }

    .brand-name {
      display: none;
    }

    .brand-mark {
      width: 2.95rem;
      height: 2.95rem;
    }

    .brand-mark img {
      width: 2.45rem;
      height: 2.45rem;
    }

    .header-cta {
      display: none;
    }

    .hero h1 {
      font-size:
        clamp(
          2.85rem,
          12vw,
          4.25rem
        );
    }

    .hero-actions,
    .author-actions {
      display: grid;
      grid-template-columns: 1fr;
    }

    .hero-actions .button,
    .author-actions .button {
      width: 100%;
    }

    .signal-list {
      grid-template-columns: 1fr;
    }

    .signal-board {
      min-height: 31rem;
    }

    .empty-state {
      grid-template-columns:
        auto
        minmax(0, 1fr);
    }

    .post-grid {
      grid-template-columns: 1fr;
    }

    .empty-status {
      grid-column: 1 / -1;
      justify-self: start;
    }

    .standards-grid {
      grid-template-columns: 1fr;
    }

    .author-panel {
      grid-template-columns: 1fr;
    }

    .author-image-wrap {
      max-width: 15rem;
    }

    .footer-grid {
      grid-template-columns: 1fr;
    }

    .footer-contact {
      grid-column: auto;
      grid-template-columns: 1fr 1fr;
    }

    .footer-link-columns {
      gap: 0.8rem;
    }
  }

  @media print {
    .site-header,
    .scroll-progress,
    .hero-actions,
    .contact-section,
    .site-footer {
      display: none !important;
    }

    body {
      background: #ffffff;
      color: #111111;
    }

    body::before {
      display: none;
    }

    .hero {
      min-height: auto;
      padding-block: 1rem;
    }

    .section {
      padding-block: 1.5rem;
    }

    .signal-board,
    .standards-section {
      background: #ffffff;
      color: #111111;
      box-shadow: none;
    }

    .signal-board blockquote,
    .standard-card h3 {
      color: #111111;
    }
  }
}
