@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/quicksand-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/open-sans-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/open-sans-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/open-sans-latin-700-normal.woff2") format("woff2");
}

@layer reset, base, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
  ul[role="list"], ol[role="list"] { padding: 0; list-style: none; }
  img, picture, video, canvas, svg { display: block; max-width: 100%; }
  input, button, textarea, select { font: inherit; }
  button, a { -webkit-tap-highlight-color: transparent; }
}

@layer base {
  :root {
    --brand: #20626B;
    --brand-hover: #174B52;
    --brand-active: #103B41;
    --brand-soft: #D9EBE7;
    --brand-muted: #9BAAAC;
    --surface-soft: #F3F8F7;
    --surface-neutral: #F7F8F7;
    --text: #000000;
    --text-secondary: #5A5D5C;
    --white: #FFFFFF;
    --border: rgb(155 170 172 / 38%);
    --shadow-sm: 0 8px 24px rgb(32 98 107 / 8%);
    --shadow-md: 0 18px 48px rgb(32 98 107 / 13%);
    --radius-sm: .75rem;
    --radius-md: 1.25rem;
    --radius-lg: 2rem;
    --font-display: "Quicksand", ui-rounded, system-ui, sans-serif;
    --font-body: "Open Sans", system-ui, sans-serif;
    --motion-fast: 160ms;
    --motion-normal: 240ms;
    --ease: cubic-bezier(.2, .8, .2, 1);
    color-scheme: light;
  }

  html { background: var(--white); scroll-padding-top: 6rem; }
  body {
    min-width: 320px;
    background: var(--white);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }
  body::before {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: var(--scroll-progress, 0%);
    height: 3px;
    background: var(--brand);
    content: "";
    pointer-events: none;
  }
  a { color: var(--brand); text-decoration-thickness: .08em; text-underline-offset: .18em; }
  a:hover { color: var(--brand-hover); }
  :focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
  ::selection { background: var(--brand-soft); color: var(--text); }
  h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.12;
    text-wrap: balance;
  }
  p { text-wrap: pretty; }
}

@layer components {
  .skip-link {
    position: fixed;
    z-index: 9999;
    top: .75rem;
    left: .75rem;
    padding: .75rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--text);
    color: var(--white);
    transform: translateY(-160%);
  }
  .skip-link:focus { transform: translateY(0); }

  .shell { width: min(73.75rem, calc(100% - 2.5rem)); margin-inline: auto; }
  .narrow { width: min(48rem, calc(100% - 2.5rem)); margin-inline: auto; }
  .section { padding-block: clamp(4.5rem, 8vw, 8rem); }
  .section--compact { padding-block: clamp(3rem, 6vw, 5rem); }
  .section--cream { background: var(--surface-soft); }
  .section--teal { background: var(--brand); color: var(--white); }

  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: var(--brand);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1.2;
    text-transform: uppercase;
  }
  .eyebrow::before { width: 1.9rem; height: 2px; background: currentColor; content: ""; }
  .section--teal .eyebrow { color: var(--brand-soft); }
  .display {
    max-width: 16ch;
    margin-top: 1.1rem;
    font-size: clamp(3rem, 7vw, 4.5rem);
    letter-spacing: -.035em;
  }
  .section-title {
    max-width: 18ch;
    margin-top: .9rem;
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -.03em;
  }
  .lead { max-width: 64ch; color: var(--text-secondary); font-size: clamp(1.06rem, 2vw, 1.125rem); line-height: 1.65; }
  .section--teal .lead { color: var(--brand-soft); }
  .section-intro { margin-top: 1.2rem; }

  .site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid var(--border);
    background: rgb(255 255 255 / 94%);
    backdrop-filter: blur(16px);
  }
  .site-header__inner { display: flex; min-height: 5.2rem; align-items: center; justify-content: space-between; gap: 2rem; }
  .brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--text); text-decoration: none; }
  .brand::before {
    width: 3.25rem;
    height: 3.25rem;
    flex: 0 0 auto;
    background: url("/assets/brand/brand-mark.svg") center / contain no-repeat;
    content: "";
  }
  .brand:hover { color: var(--text); }
  .brand > img { display: none; }
  .brand__text { display: grid; line-height: 1.05; }
  .brand__text strong { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -.035em; }
  .brand__text > span { margin-top: .25rem; color: var(--text-secondary); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
  .brand__text .brand__gray { color: var(--text-secondary); }
  .site-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.2rem); }
  .site-nav a { position: relative; color: var(--text-secondary); font-size: .9rem; font-weight: 700; text-decoration: none; }
  .site-nav a::after {
    position: absolute;
    right: 0;
    bottom: -.45rem;
    left: 0;
    height: 2px;
    background: var(--brand);
    content: "";
    transform: scaleX(0);
    transition: transform var(--motion-fast) var(--ease);
  }
  .site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }

  .hero { position: relative; overflow: clip; padding-block: clamp(3rem, 7vw, 7rem); }
  .hero::before {
    position: absolute;
    z-index: 0;
    top: -14rem;
    right: -10rem;
    width: 38rem;
    height: 38rem;
    border: 1px solid rgb(32 98 107 / 18%);
    border-radius: 50%;
    box-shadow: 0 0 0 5rem rgb(32 98 107 / 4%), 0 0 0 10rem rgb(32 98 107 / 2%);
    content: "";
  }
  .hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(20rem, .95fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
  .hero__copy .lead { margin-top: 1.6rem; }
  .hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
  .hero__visual { position: relative; padding: 1rem 0 2.4rem 2.5rem; }
  .hero__image-wrap { overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
  .hero__image { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 420ms var(--ease); }
  .hero__image-wrap:hover .hero__image { transform: scale(1.025); }
  .hero__stamp {
    position: absolute;
    bottom: 0;
    left: 0;
    display: grid;
    width: 8.5rem;
    height: 8.5rem;
    place-items: center;
    border: .55rem solid var(--white);
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
  }
  .hero__note {
    position: absolute;
    right: -1.2rem;
    bottom: 2.4rem;
    max-width: 14rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    color: var(--text-secondary);
    font-size: .82rem;
    text-decoration: none;
  }
  .hero__note strong { display: block; margin-bottom: .2rem; color: var(--brand); }

  .button {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .75rem 1.4rem;
    border: 2px solid var(--brand);
    border-radius: 999px;
    background: var(--brand);
    color: var(--white);
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color var(--motion-fast) var(--ease), background var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease), transform var(--motion-fast) var(--ease);
  }
  .button:hover { border-color: var(--brand-hover); background: var(--brand-hover); color: var(--white); transform: translateY(-2px); }
  .button:active { border-color: var(--brand-active); background: var(--brand-active); transform: translateY(0); }
  .button--secondary { border-color: var(--brand-soft); background: var(--brand-soft); color: var(--brand); }
  .button--secondary:hover { border-color: var(--brand); background: var(--brand); color: var(--white); }
  .button--light { border-color: var(--white); background: var(--white); color: var(--brand); }
  .button--light:hover { border-color: var(--brand); background: var(--brand); color: var(--white); }

  .stats { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--border); }
  .stat { padding: 1.8rem clamp(.8rem, 3vw, 2rem); text-align: center; }
  .stat + .stat { border-left: 1px solid var(--border); }
  .stat strong { display: block; color: var(--brand); font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
  .stat span { display: block; margin-top: .5rem; color: var(--text-secondary); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

  .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.4rem; }
  .section-heading .lead { max-width: 35rem; }
  .text-link { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .45rem; border-bottom: 1px solid currentColor; font-size: .88rem; font-weight: 700; text-decoration: none; }

  .featured-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.3rem; }
  .featured-card { position: relative; min-height: 30rem; overflow: hidden; border-radius: var(--radius-lg); background: var(--brand); color: var(--white); }
  .featured-card:first-child { grid-row: span 2; min-height: 39rem; }
  .featured-card__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 420ms var(--ease); }
  .featured-card::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 24%, rgb(0 0 0 / 88%) 100%); content: ""; }
  .featured-card:hover { color: var(--white); }
  .featured-card:hover .featured-card__image { transform: scale(1.035); }
  .featured-card__content { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: clamp(1.5rem, 4vw, 2.6rem); }
  .featured-card__content h3 { max-width: 24ch; margin-top: .55rem; font-size: clamp(1.6rem, 3vw, 2.55rem); }
  .featured-card:not(:first-child) { min-height: 18.85rem; }
  .featured-card:not(:first-child) .featured-card__content h3 { font-size: clamp(1.3rem, 2.5vw, 1.85rem); }
  .card-kicker { color: var(--brand-soft); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

  .collections { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.6rem; }
  .collection-card {
    position: relative;
    min-height: 14rem;
    overflow: hidden;
    padding: 1.5rem;
    border: 1px solid rgb(255 255 255 / 24%);
    border-radius: var(--radius-md);
    background: rgb(255 255 255 / 7%);
    color: var(--white);
    text-decoration: none;
    transition: background var(--motion-fast) var(--ease), transform var(--motion-fast) var(--ease);
  }
  .collection-card:hover { background: rgb(255 255 255 / 14%); color: var(--white); transform: translateY(-4px); }
  .collection-card__number { color: var(--brand-soft); font-family: var(--font-display); font-size: 3rem; line-height: 1; }
  .collection-card h3 { margin-top: 2.6rem; font-size: 1.5rem; }
  .collection-card p { margin-top: .5rem; color: var(--brand-soft); font-size: .86rem; }
  .collection-card__arrow { position: absolute; top: 1.2rem; right: 1.2rem; font-size: 1.3rem; }

  .catalog-header { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 7vw, 7rem); align-items: end; }
  .catalog-tools { margin-top: 2.4rem; }
  .search-wrap { position: relative; }
  .search-wrap svg { position: absolute; top: 50%; left: 1.2rem; width: 1.25rem; color: var(--brand); transform: translateY(-50%); }
  .search-input {
    width: 100%;
    min-height: 3.8rem;
    padding: .8rem 1.2rem .8rem 3.2rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--white);
    color: var(--text);
    box-shadow: var(--shadow-sm);
  }
  .search-input::placeholder { color: var(--text-secondary); opacity: .85; }
  .filter-row { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
  .filter-button {
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: .5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--white);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: .78rem;
    font-weight: 700;
    transition: border-color var(--motion-fast) var(--ease), background var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease);
  }
  .filter-button:hover { border-color: var(--brand); color: var(--brand); }
  .filter-button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: var(--white); }
  .results-summary { min-height: 1.6rem; margin-top: 1rem; color: var(--text-secondary); font-size: .84rem; }

  .guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin-top: 2.3rem; }
  .guide-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-sm); transition: border-color var(--motion-fast) var(--ease), box-shadow var(--motion-fast) var(--ease), transform var(--motion-fast) var(--ease); }
  .guide-card:hover { border-color: var(--brand-muted); box-shadow: var(--shadow-md); transform: translateY(-5px); }
  .guide-card[hidden] { display: none; }
  .guide-card__media { display: block; overflow: hidden; background: var(--brand-soft); }
  .guide-card__image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 420ms var(--ease); }
  .guide-card:hover .guide-card__image { transform: scale(1.035); }
  .guide-card__body { padding: 1.35rem; }
  .guide-card__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; color: var(--text-secondary); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  .guide-card__collection { color: var(--brand); }
  .guide-card h3 { margin-top: .75rem; font-size: 1.45rem; }
  .guide-card h3 a { color: var(--text); text-decoration: none; }
  .guide-card h3 a:hover { color: var(--brand); }
  .guide-card p { display: -webkit-box; overflow: hidden; margin-top: .75rem; color: var(--text-secondary); font-size: .88rem; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  .guide-card__footer { display: flex; align-items: center; justify-content: space-between; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--brand); font-size: .76rem; font-weight: 700; }
  .no-results { margin-top: 2rem; padding: 3rem 1.5rem; border: 1px dashed var(--brand-muted); border-radius: var(--radius-md); background: var(--brand-soft); text-align: center; }
  .no-results[hidden] { display: none; }
  .no-results h3 { font-size: 1.6rem; }
  .no-results p { margin-top: .5rem; color: var(--text-secondary); }

  .page-hero { padding-block: clamp(3rem, 7vw, 6rem); background: var(--surface-soft); }
  .breadcrumbs { display: flex; flex-wrap: wrap; gap: .45rem; color: var(--text-secondary); font-size: .8rem; }
  .breadcrumbs a { color: var(--brand); }
  .article-header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(19rem, .8fr); gap: clamp(2.5rem, 7vw, 6rem); align-items: center; margin-top: 2rem; }
  .article-header h1 { margin-top: 1rem; font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -.035em; }
  .article-header .lead { margin-top: 1.4rem; }
  .article-meta { display: flex; flex-wrap: wrap; gap: .7rem 1.2rem; margin-top: 1.4rem; color: var(--text-secondary); font-size: .8rem; font-weight: 700; }
  .article-meta span { display: inline-flex; align-items: center; gap: .35rem; }
  .tag-list { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.3rem; }
  .tag { padding: .3rem .65rem; border: 1px solid var(--brand-muted); border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: .7rem; font-weight: 700; }
  .article-header__image { width: 100%; aspect-ratio: 4 / 4.5; border-radius: var(--radius-lg); object-fit: cover; box-shadow: var(--shadow-md); }

  .article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 13rem; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
  .article-content { min-width: 0; color: var(--text); font-size: clamp(1rem, 1.4vw, 1.08rem); line-height: 1.8; }
  .article-content > * + * { margin-top: 1.35em; }
  .article-content h2, .article-content h3, .article-content h4 { color: var(--text); }
  .article-content h2 { margin-top: 2.2em; font-size: clamp(1.8rem, 4vw, 2.7rem); }
  .article-content h3 { margin-top: 2em; font-size: clamp(1.45rem, 3vw, 2rem); }
  .article-content h4 { margin-top: 1.75em; font-size: 1.2rem; }
  .article-content h3:empty, .article-content p:empty { display: none; }
  .article-content ul, .article-content ol { padding-left: 1.4rem; }
  .article-content li + li { margin-top: .55rem; }
  .article-content figure { max-width: 100%; margin-block: 2.2rem; }
  .article-content figure img, .article-content > img { width: 100%; height: auto; border-radius: var(--radius-sm); }
  .article-content figcaption { margin-top: .6rem; color: var(--text-secondary); font-size: .78rem; text-align: center; }
  .article-content blockquote { padding: 1.4rem 1.6rem; border-left: 4px solid var(--brand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--brand-soft); font-size: 1.125rem; }
  .article-content a[href$=".pdf"], .article-content a[href$=".odg"] { display: inline-flex; min-height: 3rem; align-items: center; gap: .5rem; padding: .65rem 1rem; border-radius: 999px; background: var(--brand); color: var(--white); font-weight: 700; text-decoration: none; }
  .article-content a[href$=".pdf"]::before, .article-content a[href$=".odg"]::before { content: "↓"; }
  .article-content iframe { width: 100%; max-width: 100%; border: 0; border-radius: var(--radius-sm); }
  .article-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
  .article-content th, .article-content td { padding: .65rem; border: 1px solid var(--border); }
  .article-content .wp-block-group-is-layout-flex { display: flex; flex-wrap: wrap; gap: 1rem; }
  .article-content .wp-block-group-is-layout-flex > * { min-width: 0; }
  .article-content .aligncenter { margin-inline: auto; text-align: center; }
  .article-content .alignleft { float: left; max-width: 48%; margin: .4rem 1.5rem 1rem 0; }
  .article-content .alignright { float: right; max-width: 48%; margin: .4rem 0 1rem 1.5rem; }
  .article-content .is-resized, .article-content [style*="width"] { max-width: 100%; }
  .article-content .project-summary { padding: 1.4rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-soft); }
  .article-content .project-summary__label { color: var(--brand); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
  .article-content .project-summary dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1rem; margin: 1rem 0 0; }
  .article-content .project-summary dl div { min-width: 0; }
  .article-content .project-summary dt { color: var(--text-secondary); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  .article-content .project-summary dd { margin: .25rem 0 0; font-family: var(--font-display); font-weight: 700; line-height: 1.25; }
  .article-content .download-card { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.4rem; border-radius: var(--radius-md); background: var(--brand-soft); }
  .article-content .download-card p { margin-top: .25rem; color: var(--text-secondary); font-size: .86rem; }
  .article-content .download-card a { flex: 0 0 auto; }
  .article-content .download-card--end { margin-top: 3rem; }
  .article-content .article-note { padding: 1.4rem 1.5rem; border-left: 4px solid var(--brand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--brand-soft); }
  .article-content .article-note p { margin-top: .35rem; }
  .article-content .tutorial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
  .article-content .tutorial-grid section { padding: 1.35rem; border: 1px solid var(--border); border-radius: var(--radius-sm); }
  .article-content .tutorial-grid h3 { margin-top: 0; font-size: 1.35rem; }
  .article-content .article-step-title { display: flex; align-items: center; gap: .75rem; }
  .article-content .step-number { display: inline-grid; width: 2.5rem; height: 2.5rem; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--brand); color: var(--white); font-family: var(--font-body); font-size: 1rem; line-height: 1; }
  .article-content .article-figure-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem; margin-block: 2.2rem; }
  .article-content .article-figure-grid figure { margin: 0; }
  .article-content .article-figure-grid img { height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
  .article-content .formula { padding: 1.4rem; border: 1px solid var(--brand-muted); border-radius: var(--radius-sm); background: var(--surface-soft); }
  .article-content .formula strong { display: block; color: var(--brand); font-family: var(--font-display); font-size: 1.15rem; line-height: 1.4; }
  .article-content .formula p { margin-top: .5rem; }
  .article-content::after { display: block; clear: both; content: ""; }
  .article-aside { position: sticky; top: 7rem; padding: 1.2rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-soft); }
  .article-aside strong { display: block; font-family: var(--font-display); font-size: 1.1rem; }
  .article-aside p { margin-top: .45rem; color: var(--text-secondary); font-size: .78rem; }
  .article-aside .button { width: 100%; min-height: 2.75rem; margin-top: .9rem; padding: .55rem .8rem; font-size: .75rem; }

  .article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border); }
  .article-nav a { padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); text-decoration: none; transition: border-color var(--motion-fast) var(--ease), background var(--motion-fast) var(--ease); }
  .article-nav a:hover { border-color: var(--brand); background: var(--surface-soft); }
  .article-nav a:last-child { text-align: right; }
  .article-nav span { display: block; color: var(--text-secondary); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .article-nav strong { display: block; margin-top: .25rem; font-family: var(--font-display); line-height: 1.2; }

  .newsletter { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: clamp(2rem, 5vw, 4rem); border-radius: var(--radius-lg); background: var(--brand-soft); color: var(--text); }
  .newsletter h2 { max-width: 18ch; font-size: clamp(2rem, 4vw, 3rem); }
  .newsletter p { max-width: 50ch; margin-top: .7rem; color: var(--text-secondary); }
  .newsletter .button--light { border-color: var(--brand); background: var(--brand); color: var(--white); }
  .newsletter .button--light:hover { border-color: var(--brand-hover); background: var(--brand-hover); }

  .site-footer { padding-block: 3rem; border-top: 1px solid var(--border); background: var(--surface-soft); }
  .site-footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; }
  .site-footer .brand::before { width: 2.8rem; height: 2.8rem; }
  .site-footer p { max-width: 44ch; margin-top: .9rem; color: var(--text-secondary); font-size: .82rem; }
  .site-footer__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1rem; font-size: .78rem; font-weight: 700; }
  .site-footer__meta { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: .72rem; }

  .error-page { display: grid; min-height: 68vh; place-items: center; padding: 3rem 1.25rem; text-align: center; }
  .error-page__code { color: var(--brand-soft); font-family: var(--font-display); font-size: clamp(7rem, 25vw, 16rem); font-weight: 700; line-height: .7; }
  .error-page h1 { margin-top: 1.5rem; font-size: clamp(2rem, 5vw, 4rem); }
  .error-page p { max-width: 34rem; margin: 1rem auto 1.6rem; color: var(--text-secondary); }
}

@layer utilities {
  .sr-only { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; }
  .accent { color: var(--brand); }
}

@media (max-width: 61.25rem) {
  .hero__grid, .article-header, .catalog-header { grid-template-columns: 1fr; }
  .hero__copy { max-width: 48rem; }
  .hero__visual { width: min(34rem, 100%); margin-inline: auto; }
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .featured-card:first-child { grid-column: 1 / -1; grid-row: auto; min-height: 34rem; }
  .collections { grid-template-columns: 1fr 1fr; }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-header__image { max-height: 34rem; aspect-ratio: 16 / 11; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
  .article-aside .button { width: auto; margin-top: 0; }
}

@media (max-width: 43.75rem) {
  .shell, .narrow { width: min(100% - 1.5rem, 73.75rem); }
  .brand__text > span { display: none; }
  .site-header__inner { min-height: 4.5rem; gap: 1rem; }
  .brand::before { width: 2.7rem; height: 2.7rem; }
  .site-nav { gap: .9rem; }
  .site-nav a { font-size: .78rem; }
  .site-nav a:nth-child(3) { display: none; }
  .hero__visual { padding-left: 1rem; }
  .hero__note { right: 0; }
  .hero__stamp { width: 7.2rem; height: 7.2rem; font-size: .68rem; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-top: 1px solid var(--border); border-left: 0; }
  .section-heading { display: block; }
  .section-heading .lead, .section-heading .text-link { margin-top: 1rem; }
  .featured-grid, .guide-grid, .collections { grid-template-columns: 1fr; }
  .featured-card, .featured-card:first-child, .featured-card:not(:first-child) { min-height: 28rem; }
  .newsletter { grid-template-columns: 1fr; }
  .newsletter .button { justify-self: start; }
  .article-content .alignleft, .article-content .alignright { float: none; max-width: 100%; margin: 1.5rem 0; }
  .article-content .download-card { align-items: flex-start; flex-direction: column; }
  .article-content .download-card a { width: 100%; }
  .article-content .article-step-title { align-items: flex-start; }
  .article-aside { display: block; }
  .article-aside .button { width: 100%; margin-top: .9rem; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav a:last-child { text-align: left; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
