@layer base, components, utilities;

@font-face{font-family:"Outfit";font-weight:300;font-display:swap;src:url(/fonts/outfit-latin-300-normal.woff2) format("woff2")}
@font-face{font-family:"Outfit";font-weight:400;font-display:swap;src:url(/fonts/outfit-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Outfit";font-weight:600;font-display:swap;src:url(/fonts/outfit-latin-600-normal.woff2) format("woff2")}

@layer base {
  :root {
    color-scheme: dark light;
    --bg-a: #04242b;
    --bg-b: #0a5560;
    --bg-c: #0e7a7c;
    --glass: rgba(255,255,255,.075);
    --glass-edge: rgba(255,255,255,.18);
    --text: #eaf6f5;
    --text-soft: #a9cdcc;
    --gold: #e0be72;
    --gold-line: rgba(224,190,114,.55);
    --btn-bg: #e0be72;
    --btn-text: #2a2008;
    --radius: 28px;
  }
  @media (prefers-color-scheme: light) {
    :root {
      --bg-a: #dff3f1;
      --bg-b: #b9e3de;
      --bg-c: #f4efe0;
      --glass: rgba(255,255,255,.55);
      --glass-edge: rgba(255,255,255,.9);
      --text: #0d3a40;
      --text-soft: #3f6b70;
      --gold: #8a6a1c;
      --gold-line: rgba(138,106,28,.5);
      --btn-bg: #0d5a62;
      --btn-text: #ffffff;
    }
  }
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body {
    margin: 0;
    min-height: 100vh;
    font: 300 1.0625rem/1.75 "Outfit", system-ui, sans-serif;
    color: var(--text);
    background: linear-gradient(155deg, var(--bg-a) 0%, var(--bg-b) 55%, var(--bg-c) 100%) fixed;
  }
  h1, h2, h3 { font-weight: 600; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .6rem; }
  h1 { font-size: clamp(2rem, 5vw, 3rem); }
  h2 { font-size: 1.45rem; margin-top: 2rem; }
  h3 { font-size: 1.1rem; }
  p, ul, ol, dl { margin: 0 0 1rem; }
  a { color: var(--gold); text-underline-offset: 4px; text-decoration-thickness: 1px; }
  a:hover { text-decoration-thickness: 2px; }
  code { font-size: .92em; padding: .1em .45em; border-radius: 8px; background: var(--glass); border: 1px solid var(--glass-edge); }
}

@layer components {
  .frame { max-width: 62rem; margin: 0 auto; padding: 1.25rem 1.25rem 3rem; }
  .bar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem;
    padding: .9rem 1.6rem; margin-bottom: 2rem;
    background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 999px;
    -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 0 0 1px var(--gold-line) inset;
  }
  .bar__brand { font-weight: 600; font-size: 1.2rem; color: var(--text); text-decoration: none; letter-spacing: .01em; }
  .bar__brand::before { content: ""; display: inline-block; width: .7em; height: .7em; margin-right: .55em; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, var(--gold)); }
  .bar__links { display: flex; flex-wrap: wrap; gap: .25rem 1.2rem; list-style: none; padding: 0; margin: 0; }
  .bar__links a { color: var(--text-soft); text-decoration: none; font-size: .95rem; }
  .bar__links a:hover, .bar__links a[aria-current] { color: var(--text); }

  .pane {
    padding: clamp(1.4rem, 4vw, 2.6rem);
    margin-bottom: 1.5rem;
    background: var(--glass); border: 1px solid var(--glass-edge); border-radius: var(--radius);
    -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
    box-shadow: 0 20px 50px -20px rgba(0,0,0,.45);
  }
  .pane--hero { text-align: left; padding-block: clamp(2.2rem, 7vw, 4.5rem); position: relative; overflow: hidden; }
  .pane--hero::after {
    content: ""; position: absolute; right: -4rem; top: -4rem; width: 16rem; height: 16rem; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.35), rgba(224,190,114,.12) 55%, transparent 70%);
    pointer-events: none;
  }
  .pane--hair { border-color: var(--gold-line); }
  .pane > :last-child { margin-bottom: 0; }
  .eyebrow { font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; }
  .lead { font-size: 1.25rem; color: var(--text-soft); max-width: 40rem; }

  .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 1.2rem 0 0; }
  .cards li { padding: 1.3rem 1.4rem; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-edge); border-top: 1px solid var(--gold-line); }
  .cards strong { display: block; margin-bottom: .25rem; font-weight: 600; }
  .cards span { color: var(--text-soft); font-size: .95rem; }

  .btn {
    display: inline-block; cursor: pointer; border: 0; border-radius: 999px;
    padding: .85rem 1.8rem; font: 600 1rem "Outfit", sans-serif; text-decoration: none;
    background: var(--btn-bg); color: var(--btn-text);
  }
  .btn:hover { filter: brightness(1.08); }
  .btn--ghost { background: transparent; color: var(--text); box-shadow: 0 0 0 1px var(--gold-line) inset; }

  .field { display: block; margin-bottom: 1.1rem; }
  .field input[type="password"] {
    width: 100%; max-width: 24rem; padding: .8rem 1.1rem; border-radius: 16px; font: inherit; color: var(--text);
    background: rgba(255,255,255,.1); border: 1px solid var(--glass-edge);
  }
  .tick { display: flex; gap: .8rem; align-items: flex-start; margin: 1.2rem 0; }
  .tick input { width: 1.2rem; height: 1.2rem; margin-top: .45rem; accent-color: var(--gold); }

  .kv { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; }
  .kv dt { color: var(--text-soft); }
  .kv dd { margin: 0; overflow-wrap: anywhere; }
  .steps { counter-reset: s; list-style: none; padding: 0; }
  .steps li { counter-increment: s; position: relative; padding-left: 3rem; margin-bottom: 1rem; }
  .steps li::before { content: counter(s); position: absolute; left: 0; top: .05rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; font-weight: 600; border: 1px solid var(--gold-line); color: var(--gold); }
  .notice { border-radius: 18px; padding: 1rem 1.3rem; border: 1px solid var(--gold-line); background: rgba(0,0,0,.14); font-size: .95rem; }
  .oops { border-color: #e0807a; color: #ffd8d5; }

  .base {
    margin-top: 2.5rem; padding: 1.6rem 1.8rem; border-radius: var(--radius);
    background: var(--glass); border: 1px solid var(--glass-edge); font-size: .9rem; color: var(--text-soft);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
  .base p { margin-bottom: .6rem; }
  .base nav { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
}

@layer utilities {
  .mt-0 { margin-top: 0; }
  .soft { color: var(--text-soft); }
  .small { font-size: .88rem; }
  .row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
  .narrow { max-width: 40rem; }
  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  @media (max-width: 600px) {
    .bar { border-radius: 28px; padding: .9rem 1.2rem; }
    .kv { grid-template-columns: 1fr; gap: 0; }
    .kv dd { margin-bottom: .6rem; }
  }
}
