@layer reset, base, layout, components;

@layer reset {
  * { box-sizing: border-box; }
  body, h1, h2, h3, p, figure, ul, ol { margin: 0; }
  img { max-width: 100%; display: block; }
  a { color: inherit; }
  a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
}

@layer base {
  :root {
    --ink: #142d31;
    --muted: #546469;
    --paper: #f4f3ec;
    --white: #fffef9;
    --line: #ccd2cb;
    --accent: #d6f18b;
    --forest: #143d38;
    --radius: 4px;
    --max: 1320px;
    --gutter: clamp(22px, 5vw, 80px);
    --sans: Arial, Helvetica, sans-serif;
    --serif: Georgia, "Times New Roman", serif;
  }
  html { scroll-behavior: smooth; scroll-padding-top: 100px; }
  body {
    font-family: var(--sans);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
  }
  h1, h2, h3 { font-weight: 400; line-height: 1.08; letter-spacing: -0.045em; }
  h1 { font-size: clamp(52px, 6.8vw, 100px); }
  h2 { font-size: clamp(36px, 4.1vw, 60px); }
  h3 { font-size: 26px; letter-spacing: -0.025em; }
  p { max-width: 66ch; }
  em { font-family: var(--serif); font-weight: 400; }
  a { text-underline-offset: 5px; }
  :focus-visible { outline: 3px solid #59811c; outline-offset: 5px; }
  ::selection { background: var(--accent); color: var(--ink); }
  .muted { color: var(--muted); }
  .eyebrow {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.17em;
    font-weight: 700;
  }
  .body-large { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; }
  .skip {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 99;
    background: var(--accent);
    padding: 12px;
  }
  .skip:focus { top: 10px; }
}

@layer layout {
  .wrap {
    max-width: var(--max);
    margin: auto;
    padding-inline: var(--gutter);
  }
  .section { padding-block: 96px; border-bottom: 1px solid var(--line); }
  .section-head {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 35px;
    margin-bottom: 45px;
  }
  .section-head .eyebrow { padding-top: 10px; }
  .section-head h2 { max-width: 20ch; }
  .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .site-header {
    height: 92px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  .brand {
    font-size: 24px;
    letter-spacing: -0.06em;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
  }
  .brand span { font-weight: 400; }
  .site-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 13px;
  }
  .site-nav a { text-decoration: none; }
  .site-nav a:hover,
  .site-nav a[aria-current="page"] { text-decoration: underline; }
  .actions {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 30px;
  }
  .dark { background: var(--ink); color: var(--paper); --line: #42575a; --muted: #b2c1be; }
  .dark .eyebrow { color: var(--accent); }
  .dark .card { background: #1a383c; }
  .footer { padding-block: 50px 24px; }
  .footer-top {
    display: flex;
    justify-content: space-between;
    gap: 35px;
    padding-bottom: 48px;
  }
  .footer-links { display: flex; gap: 26px; flex-wrap: wrap; font-size: 13px; }
  .footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--muted);
  }
  .page-hero { padding-block: 78px 70px; border-bottom: 1px solid var(--line); }
  .page-hero h1 { max-width: 18ch; margin-block: 26px; }
  .page-hero .body-large { max-width: 58ch; }
  .bread { font-size: 12px; display: flex; gap: 12px; margin-bottom: 40px; }
  .text-link { font-size: 13px; font-weight: 700; }
}

@layer components {
  .button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    background: var(--ink);
    color: var(--white);
    padding: 15px 22px;
    text-decoration: none;
    font-size: 13px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    min-height: 50px;
  }
  .button:hover { background: var(--forest); color: #fff; }
  .button.light { background: var(--accent); color: var(--ink); }
  .button.light:hover { background: var(--white); color: var(--ink); }
  .button.secondary {
    background: transparent;
    border-color: currentColor;
    color: inherit;
  }
  .button.secondary:hover { background: var(--white); color: var(--ink); }

  .card {
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 20px;
    min-width: 0;
    border-radius: var(--radius);
  }
  .card p { color: var(--muted); font-size: 15px; }
  .method {
    counter-reset: steps;
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    margin: 0;
  }
  .method li { border-top: 1px solid var(--line); padding-top: 24px; }
  .method li::before {
    counter-increment: steps;
    content: "0" counter(steps);
    display: block;
    font-size: 12px;
    margin-bottom: 30px;
    color: var(--muted);
  }
  .method h3 { font-size: 23px; margin-bottom: 14px; }
  .method p { font-size: 14px; color: var(--muted); }
  .faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
  .faq summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 25px;
    font-size: 19px;
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; }
  .faq details[open] summary::after { content: "−"; }
  .faq details p { padding-top: 18px; color: var(--muted); }
  .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: start; }
  .contact-grid h2 { margin: 25px 0; }
}

@media (max-width: 900px) {
  .site-nav { gap: 18px; }
  .contact-grid { gap: 40px; }
  .card { padding: 22px; }
  .grid-3 { gap: 12px; }
}

@media (max-width: 720px) {
  .site-header {
    height: auto;
    flex-wrap: wrap;
    padding-block: 15px;
  }
  .site-nav { flex-wrap: wrap; gap: 8px 18px; }
  .section { padding-block: 60px; }
  .section-head,
  .contact-grid { grid-template-columns: 1fr; }
  .section-head { gap: 18px; margin-bottom: 30px; }
  .grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 28px; gap: 18px; }
  .method { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-top { flex-direction: column; }
  .footer-bottom { gap: 15px; flex-wrap: wrap; }
  .page-hero { padding-block: 45px; }
  .page-hero h1 { font-size: clamp(44px, 11vw, 72px); }
  .contact-grid { gap: 32px; }
  .actions { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
