/* The Garrick site: layout for the pages. Colours, type and components come
   from tokens.css and components.css; this file only arranges them. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-size: var(--body-size); line-height: var(--body-line); }
img { max-width: 100%; height: auto; }
a { color: var(--jester-blue); }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, var(--display-size)); line-height: var(--display-line); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); }
h2 { font-size: clamp(1.9rem, 4vw, var(--heading-1-size)); line-height: var(--heading-1-line); font-weight: var(--heading-1-weight); }
h3 { font-size: var(--heading-3-size); line-height: var(--heading-3-line); font-weight: var(--heading-3-weight); }
p { margin: 0; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding-inline: var(--space-6); }
.section { padding-block: var(--space-18); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-size: var(--label-size); line-height: var(--label-line); font-weight: var(--label-weight); letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--space-3); }
.lead { font-size: var(--body-lg-size); line-height: var(--body-lg-line); color: var(--ink-muted); max-width: 36em; }
.section__lead { margin-top: var(--space-4); }
.fineprint { font-size: 14px; color: var(--ink-muted); }
.icon { width: 24px; height: 24px; fill: none; stroke: var(--jester-blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Header */
.site-header { padding-block: var(--space-4); }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--ink); text-decoration: none; }
.brand__name { display: flex; flex-direction: column; font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1; }
.brand__name small { margin-top: 2px; font-family: var(--font-sans); font-weight: 500; font-size: 12px; color: var(--ink-muted); }
.site-header nav a { color: var(--ink); font-size: var(--body-sm-size); font-weight: 500; text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: var(--space-12); padding-block: var(--space-8) var(--space-18); }
.hero__scribble { margin-bottom: var(--space-2); }
.hl { color: var(--jester-blue); text-decoration: underline wavy var(--gold) 3px; text-underline-offset: 7px; text-decoration-skip-ink: none; }
.hero .lead { margin-top: var(--space-6); }
.hero__mark { justify-self: center; width: min(100%, 300px); }

.scan { margin-top: var(--space-8); gap: var(--space-3); max-width: 40rem; }
.scan__fields { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--space-3); margin: 0; padding: 0; border: 0; min-width: 0; }
.scan__field { min-width: 0; }
.scan__field .bf-input { width: 100%; font-size: 14px; }
.scan__note { font-size: 14px; color: var(--ink-muted); }
.scan :disabled { cursor: not-allowed; }
.scan .bf-btn:disabled { opacity: .55; transform: none; box-shadow: var(--sticker-sm); }
.scan .bf-input:disabled { opacity: .75; }
.tags { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); margin-top: var(--space-6); }
.tags .bf-tag { font-size: 13px; }

/* What you get */
.get { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-8); margin-top: var(--space-12); align-items: start; }
.get__side { display: flex; flex-direction: column; gap: var(--space-8); }
.get .bf-card h3 { font-size: 24px; }
.weights { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.weights li { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); }
.weights__name { font-weight: 700; font-size: 16px; }
.weights__name small { display: block; font-weight: 500; font-size: 13px; line-height: 1.4; color: var(--ink-muted); }
.weights__pct { font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--jester-blue); }
.get__info { font-size: 13px; line-height: 1.5; color: var(--ink-muted); margin-top: var(--space-2); }
.example { font: var(--code-weight) 13px/1.5 var(--font-mono); color: var(--ink); }

/* Large cards tilt less than the small tags. */
.get .bf-tilt-l, .claim.bf-tilt-l { transform: rotate(calc(var(--tilt-sm) * -1)); }
.get .bf-tilt-r { transform: rotate(var(--tilt-sm)); }

/* The score */
.band-section { background: var(--paper-raised); border-block: var(--border-sticker) solid var(--ink); }
.bands { list-style: none; margin: var(--space-12) 0 var(--space-8); padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--space-4); text-align: center; }
.bands li { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.bands img { width: 80px; height: 80px; }
.bands b { font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.bands .gk-band { min-height: 32px; padding: 0 12px; font-size: 13px; white-space: normal; line-height: 1.15; text-align: center; }

/* Trust */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-8); margin-top: var(--space-12); }
.trust h3 { margin-top: var(--space-3); font-size: 20px; }
.trust p { margin-top: var(--space-2); font-size: var(--body-sm-size); font-weight: 400; color: var(--ink-muted); }

/* Claim */
.claim { flex-direction: row; align-items: center; gap: var(--space-12); padding: var(--space-12); }
.claim__text { flex: 1 1 0; }
.claim__text p { margin-top: var(--space-3); font-size: var(--body-sm-size); color: var(--ink-muted); }
.claim__badge { flex: 1 1 0; display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.claim__badge .eyebrow { margin: 0; }
.badge { display: inline-flex; align-self: flex-start; font: 600 18px/1 var(--font-sans); border-radius: 4px; overflow: hidden; max-width: 100%; }
.badge__label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--navy); color: var(--on-navy); }
.badge__label img { width: 22px; height: 22px; }
.badge__value { padding: 10px 12px; background: var(--signal-good); color: #fff; }
.code { padding: var(--space-2) var(--space-3); border: var(--border-thin) solid var(--ink); border-radius: var(--radius-sm); background: var(--paper); font: var(--code-weight) 13px/1.5 var(--font-mono); overflow-x: auto; white-space: nowrap; }

/* Why Garrick */
.why-wrap { padding-block: var(--space-18) var(--space-18); }
.why { flex-direction: row; align-items: center; gap: var(--space-8); padding: var(--space-8); border-radius: var(--radius-xl); }
.why img { width: 160px; height: auto; flex: 0 0 auto; }
.why h2 { color: var(--on-navy); font-size: 32px; }
.why p { margin-top: var(--space-3); color: var(--on-navy); }

/* Footer */
.site-footer { border-top: var(--border-sticker) solid var(--ink); padding-block: var(--space-6); font-size: 14px; color: var(--ink-muted); }
.site-footer a { color: var(--jester-blue); }

@media (max-width: 860px) {
  .hero, .get { grid-template-columns: minmax(0, 1fr); }
  .hero__mark { order: -1; width: 200px; }
  .bands { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: var(--space-8); }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .claim { flex-direction: column; align-items: stretch; padding: var(--space-6); gap: var(--space-6); }
  .why { flex-direction: column; text-align: center; }
}

@media (max-width: 520px) {
  .section { padding-block: var(--space-12); }
  .scan__fields { grid-template-columns: minmax(0, 1fr); }
  .bands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust { grid-template-columns: minmax(0, 1fr); }
}
