/* The Burgee site's one stylesheet.
 * Lifted out of index.html when the guide was added, so the two pages cannot drift apart.
 * Unchanged otherwise - the homepage before and after this move were compared rendered.
 */
  /* ---- reset ---------------------------------------------------------- */
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; }
  body { -webkit-font-smoothing: antialiased; }
  img, svg { display: block; max-width: 100%; }
  button, input { font: inherit; color: inherit; }
  a { color: inherit; }
  :where(ul, ol) { padding: 0; list-style: none; }

  /* ---- tokens ---------------------------------------------------------
     The platform's design system, with Burgee's own two colours put through
     the same palette derivation every tenant club gets. ------------------ */
  :root {
    --display: 'Bricolage Grotesque', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --logotype: var(--ui);

    --step--2: clamp(0.72rem, 0.70rem + 0.10vw, 0.78rem);
    --step--1: clamp(0.82rem, 0.79rem + 0.16vw, 0.92rem);
    --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.09rem);
    --step-1:  clamp(1.18rem, 1.10rem + 0.40vw, 1.42rem);
    --step-2:  clamp(1.42rem, 1.26rem + 0.78vw, 1.95rem);
    --step-3:  clamp(1.72rem, 1.42rem + 1.48vw, 2.70rem);
    --step-4:  clamp(2.10rem, 1.55rem + 2.70vw, 3.80rem);
    --step-5:  clamp(2.50rem, 1.55rem + 4.70vw, 5.40rem);

    --gutter: clamp(1.15rem, 0.7rem + 2.2vw, 2.6rem);
    --measure: 34rem;
    --max: 76rem;
    --max-narrow: 46rem;

    --lockup: 40px;
    --lockup-name: 2rem;

    --r-sm: 6px;
    --r: 12px;
    --r-lg: 20px;

    --shadow-sm: 0 1px 2px hsl(204 40% 12% / 0.06), 0 2px 6px hsl(204 40% 12% / 0.05);
    --shadow: 0 2px 4px hsl(204 40% 12% / 0.05), 0 12px 28px -10px hsl(204 40% 12% / 0.16);
    --shadow-lg: 0 4px 8px hsl(204 40% 12% / 0.06), 0 30px 60px -24px hsl(204 40% 12% / 0.28);

    /* Burgee navy #013060 and red #D8182A - the app is the reference; see docs/BRAND.md */
    --ink: hsl(204.1 45.8% 9%);
    --ink-soft: hsl(204.1 33.8% 25%);
    --ink-faint: hsl(204.1 23.8% 40%);
    --primary: #013060;
    --primary-lift: hsl(204.1 59.8% 49%);
    --primary-deep: hsl(204.1 61.8% 23%);
    --primary-wash: hsl(204.1 37.8% 91%);
    --primary-mist: hsl(204.1 25.8% 99%);
    --accent: #D8182A;
    --accent-deep: hsl(10.3 58.6% 35.6%);
    --accent-wash: hsl(10.3 18.6% 93.6%);
    --paper: hsl(38.0 34.0% 97.5%);
    --paper-2: hsl(38.0 28.0% 94.0%);
    --paper-3: hsl(38.0 24.0% 89.5%);
    --line: hsl(204.1 9.8% 83%);
    --line-soft: hsl(204.1 3.8% 89%);
    --sea-1: hsl(204.1 51.8% 17%);
    --sea-2: hsl(204.1 57.8% 33%);
    --sea-3: hsl(204.1 41.8% 63%);
    --band-tint: hsl(204.1 39.8% 92.5%);
    --band-line: hsl(204.1 33.8% 84%);
    color-scheme: light;
  }

  /* ---- base ----------------------------------------------------------- */
  body {
    font-family: var(--ui);
    font-size: var(--step-0);
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    overflow-x: hidden;
  }

  h1, h2, h3, h4 {
    font-family: var(--display);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.035em;
    font-variation-settings: 'wdth' 96;
    text-wrap: balance;
  }
  h1 { font-size: var(--step-4); }
  h2 { font-size: var(--step-3); }
  h3 { font-size: var(--step-2); line-height: 1.08; letter-spacing: -0.03em; }
  h4 { font-size: var(--step-1); line-height: 1.16; letter-spacing: -0.022em; }
  p { text-wrap: pretty; }
  ::selection { background: var(--primary); color: #fff; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

  .wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
  .section { padding-block: clamp(2.75rem, 1.6rem + 5vw, 6rem); }
  .section-tight { padding-block: clamp(2rem, 1.4rem + 2.4vw, 3.5rem); }

  .kicker {
    font-family: var(--ui);
    font-size: var(--step--2);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
  }
  .kicker-light { color: var(--sea-3); }
  .lede { font-size: var(--step-1); line-height: 1.45; color: var(--ink-soft); max-width: 40rem; }
  .muted { color: var(--ink-faint); }
  .small { font-size: var(--step--1); }
  .tiny { font-size: var(--step--2); }
  .prose { max-width: var(--measure); }

  /* ---- header ---------------------------------------------------------- */
  .site-header {
    position: sticky; top: 0; z-index: 60;
    background: hsl(0 0% 100% / 0.82);
    backdrop-filter: saturate(1.6) blur(14px);
    border-bottom: 1px solid var(--line-soft);
  }
  .site-header .bar { display: flex; align-items: center; gap: 1rem; padding-block: 0.7rem; flex-wrap: nowrap; }
  .brand { display: flex; align-items: center; gap: 0.62rem; text-decoration: none; margin-right: auto; }
  .brand img, .brand .mark { height: var(--lockup); width: auto; }
  /* The middle of the mark is WHITE and drawn, on every ground. Not a cut-out. */
  .brand-text { height: var(--lockup); display: flex; flex-direction: column; justify-content: space-between; }
  .brand-name {
    display: block; font-family: var(--logotype); font-size: var(--lockup-name); font-weight: 700;
    line-height: 1; text-transform: uppercase; letter-spacing: 0.005em; margin-top: -0.122em;
  }
  .brand-sub {
    display: none; font-size: 0.6rem; line-height: 1; letter-spacing: 0.17em;
    text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; margin-bottom: 0.068em;
  }
  @media (min-width: 30rem) { .brand-sub { display: block; } }
  @media (max-width: 29.99rem) { .brand-text { justify-content: center; } .brand-name { margin-top: 0; } }

  .nav { display: none; gap: 0.1rem; align-items: center; flex-wrap: nowrap; }
  .nav a {
    text-decoration: none; font-size: var(--step--1); font-weight: 500;
    padding: 0.4rem 0.55rem; border-radius: var(--r-sm); color: var(--ink-soft); white-space: nowrap;
  }
  .nav a:hover { background: var(--paper-3); color: var(--ink); }
  .header-actions { display: flex; align-items: center; gap: 0.5rem; }
  .header-actions .btn { min-height: var(--lockup); height: var(--lockup); padding-block: 0; line-height: 1; white-space: nowrap; }
  @media (min-width: 68rem) { .nav { display: flex; } }

  /* ---- buttons --------------------------------------------------------- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
    font-family: var(--ui); font-size: var(--step--1); font-weight: 600; letter-spacing: 0.005em;
    padding: 0.72rem 1.2rem; border-radius: 999px; border: 1px solid transparent;
    text-decoration: none; cursor: pointer;
    transition: transform .12s ease, background .16s ease, box-shadow .16s ease;
    min-height: 44px;
  }
  .btn:active { transform: translateY(1px); }
  .btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px hsl(0 0% 0% / .12); }
  .btn-primary:hover { background: var(--accent-deep); }
  .btn-ink { background: var(--ink); color: var(--paper); }
  .btn-ink:hover { background: var(--primary-deep); }
  .btn-outline { border-color: var(--line); background: #fff; color: var(--ink); }
  .btn-outline:hover { border-color: var(--ink); }
  .btn-light { background: hsl(0 0% 100% / .12); color: var(--paper); border-color: hsl(0 0% 100% / .3); }
  .btn-light:hover { background: hsl(0 0% 100% / .2); }
  .btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

  /* ---- hero ------------------------------------------------------------ */
  .hero { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); isolation: isolate; }
  .hero-art { position: absolute; inset: auto 0 -1px 0; width: 100%; max-width: none; height: 46%; z-index: -1; opacity: .55; }
  .hero-inner { padding-block: clamp(3rem, 2rem + 6vw, 6.5rem); }
  .hero h1 { font-size: var(--step-5); margin-top: 0.45rem; max-width: 15ch; }
  .hero .lede { color: hsl(0 0% 100% / .82); margin-top: 1.1rem; font-size: var(--step-1); max-width: 34rem; }
  .hero .btn-row { margin-top: 1.6rem; }
  .hero-note { margin-top: 1.2rem; font-size: var(--step--1); color: hsl(0 0% 100% / .6); max-width: 34rem; }

  /* ---- cards ----------------------------------------------------------- */
  .grid { display: grid; gap: 1.1rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  @media (min-width: 46rem) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr 1fr; } }
  @media (min-width: 66rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

  .card {
    background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r);
    padding: 1.3rem; display: flex; flex-direction: column; gap: 0.6rem;
    text-decoration: none;
  }
  .card h3, .card h4 { letter-spacing: -0.012em; }
  .card-foot { margin-top: auto; padding-top: 0.9rem; }

  .prodcard { padding: 1.6rem 1.5rem 1.5rem; gap: 0.75rem; }
  .prodcard ul { display: flex; flex-direction: column; gap: 0.5rem; color: var(--ink-soft); font-size: var(--step--1); }
  .prodcard ul li { padding-left: 1.15rem; position: relative; }
  .prodcard ul li::before {
    content: ''; position: absolute; left: 0; top: 0.52em;
    width: 9px; height: 6px; clip-path: polygon(0 0, 100% 50%, 0 100%);
    background: var(--primary);
  }
  .prodcard.accent ul li::before { background: var(--accent); }
  .badge {
    align-self: flex-start; font-size: var(--step--2); font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; padding: 0.24rem 0.6rem; border-radius: 999px;
    background: var(--primary-wash); color: var(--primary-deep);
  }
  .prodcard.accent .badge { background: var(--accent-wash); color: var(--accent-deep); }
  .give {
    font-size: var(--step--1); color: var(--ink-faint); border-top: 1px solid var(--line-soft);
    padding-top: 0.8rem; margin-top: 0.8rem;
  }
  .give a { color: var(--ink-faint); text-underline-offset: 3px; }
  .give a:hover { color: var(--accent); }

  /* ---- bands ----------------------------------------------------------- */
  .band { background: var(--band-tint); border-block: 1px solid var(--band-line); }
  .dark { background: var(--ink); color: var(--paper); }
  .dark h2, .dark h3 { color: var(--paper); }
  .dark .lede { color: hsl(0 0% 100% / .78); }
  .dark .feat p { color: hsl(0 0% 100% / .72); }

  .feat h3 { font-size: var(--step-1); line-height: 1.16; letter-spacing: -0.022em; margin-bottom: 0.4rem; }
  .feat p { color: var(--ink-soft); font-size: var(--step--1); }
  .feat .pin { width: 26px; height: 15px; margin-bottom: 0.8rem; }

  /* ---- table ----------------------------------------------------------- */
  .tw { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--r); background: #fff; }
  table { border-collapse: collapse; width: 100%; min-width: 34rem; }
  th, td { padding: 0.85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line-soft); font-size: var(--step--1); }
  th {
    font-size: var(--step--2); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--ink-faint); background: var(--paper-2); border-bottom-color: var(--line);
  }
  td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
  td.num { font-weight: 600; }
  tbody tr:last-child td { border-bottom: 0; }

  /* ---- next ------------------------------------------------------------ */
  .idea { border: 1px dashed var(--band-line); border-radius: var(--r); padding: 1.3rem 1.4rem; background: hsl(0 0% 100% / .5); }
  .idea .status { font-size: var(--step--2); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 0.45rem; }
  .idea h3 { font-size: var(--step-1); line-height: 1.16; letter-spacing: -0.022em; margin-bottom: 0.4rem; }
  .idea p { color: var(--ink-soft); font-size: var(--step--1); }

  /* ---- footer ----------------------------------------------------------- */
  footer { background: var(--ink); color: hsl(0 0% 100% / .74); padding-block: clamp(2.5rem, 2rem + 3vw, 4rem); }
  footer .brand-name { color: var(--paper); }
  footer .brand-sub { color: hsl(0 0% 100% / .5); }
  .foot-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2.2rem; }
  @media (min-width: 46rem) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
  footer h4 { font-family: var(--ui); font-size: var(--step--2); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: hsl(0 0% 100% / .5); margin-bottom: 0.7rem; }
  footer ul { display: flex; flex-direction: column; gap: 0.45rem; }
  footer a { text-decoration: none; font-size: var(--step--1); }
  footer a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
  .notice {
    border-top: 1px solid hsl(0 0% 100% / .14); padding-top: 1.4rem;
    font-size: var(--step--1); color: hsl(0 0% 100% / .62); max-width: 62rem;
  }
  .notice strong { color: var(--paper); font-weight: 600; }
