/* Feed The Well — Brand Assets page
   Palette is the brand palette from the guidelines, nothing else:
   black #000000 · dark gray #231f20 · gray #424142 · red #bd202e · white #ffffff */

:root {
  --black: #000000;
  --ink: #231f20;
  --gray: #424142;
  --red: #bd202e;
  --white: #ffffff;
  --mist: #f3f2f1;        /* tint of the gray for section bands */
  --line: rgba(35, 31, 32, .12);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Bebas Neue", "Impact", "Arial Narrow", sans-serif;
  --script: "Kaushan Script", "Brush Script MT", cursive;
  --max: 1120px;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: var(--mist); padding: .05em .35em; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6vw, 60px); letter-spacing: .01em; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0; }
.section-head p, .lede, .note, .which dd, .rules li, .type-card p, .guide-meta p { color: var(--gray); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.brand img { width: 40px; height: auto; }
.brand em { font-style: normal; font-weight: 400; color: var(--gray); }
.brand em::before { content: "/ "; color: var(--line); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn small { font-weight: 500; opacity: .85; font-size: 13px; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: #a51c28; }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--black); }

/* ---------- hero ---------- */
main { display: block; }
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(56px, 9vw, 110px) clamp(16px, 4vw, 40px) clamp(40px, 6vw, 72px);
}
.eyebrow { font-family: var(--script); font-size: clamp(22px, 3vw, 30px); color: var(--red); margin-bottom: 6px; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(72px, 13vw, 150px); letter-spacing: .005em; line-height: .92; }
.lede { max-width: 640px; font-size: clamp(17px, 1.6vw, 20px); margin-top: 22px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-size: 14px; font-weight: 500; }
.jump a { text-decoration: none; color: var(--gray); padding-bottom: 2px; border-bottom: 2px solid var(--line); }
.jump a:hover { color: var(--red); border-color: var(--red); }

/* ---------- sections ---------- */
.section { padding: clamp(48px, 7vw, 88px) clamp(16px, 4vw, 40px); }
.section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.band { background: var(--mist); }
.section-head { margin-bottom: 32px; }
.section-head p { max-width: 640px; margin-top: 10px; font-size: 17px; }

/* ---------- logo cards ---------- */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.logo-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--white); display: flex; flex-direction: column; }
.logo-card .preview { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 8%; }
.logo-card .preview img { max-height: 100%; width: auto; max-width: 100%; }
.logo-card.is-light .preview { background: var(--white); border-bottom: 1px solid var(--line); }
.logo-card.is-dark .preview { background: var(--ink); }
.logo-card .meta { padding: 22px 22px 24px; }
.logo-card .meta p { margin-top: 6px; color: var(--gray); font-size: 15px; }

.files { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.files a {
  display: inline-flex; flex-direction: column; gap: 1px;
  min-width: 118px; padding: 10px 14px;
  border: 1.5px solid var(--ink); border-radius: 8px;
  text-decoration: none; line-height: 1.2;
  transition: background .12s ease, color .12s ease;
}
.files a b { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: .03em; }
.files a span { font-size: 12px; color: var(--gray); }
.files a small { font-size: 11px; color: var(--gray); opacity: .8; margin-top: 3px; }
.files a:hover { background: var(--ink); color: var(--white); }
.files a:hover span, .files a:hover small { color: var(--white); }

.two-col { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; margin-top: 40px; align-items: start; }
.more .files-row { margin-top: 14px; }
.note { font-size: 14px; margin-top: 14px; }
.which { background: var(--mist); border-radius: var(--radius); padding: 22px 24px; }
.which dl { margin: 12px 0 0; }
.which dt { font-weight: 600; margin-top: 12px; }
.which dt:first-child { margin-top: 0; }
.which dd { margin: 2px 0 0; font-size: 15px; }
.which dd b { color: var(--red); }

/* ---------- guidelines ---------- */
.guide { display: grid; grid-template-columns: minmax(260px, 520px) 1fr; gap: 32px; align-items: center; }
.guide-cover { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px -24px rgba(0,0,0,.45); transition: transform .15s ease; }
.guide-cover:hover { transform: translateY(-3px); }
.guide-meta .spec { margin-top: 6px; font-size: 14px; }
.toc { margin: 16px 0 22px; padding-left: 22px; columns: 2; column-gap: 24px; font-size: 15px; color: var(--gray); }
.toc li { break-inside: avoid; padding: 2px 0; }
.pages { display: flex; gap: 12px; overflow-x: auto; margin-top: 36px; padding-bottom: 8px; scroll-snap-type: x proximity; }
.pages img { flex: 0 0 auto; width: 260px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); scroll-snap-align: start; }

/* ---------- colors & type ---------- */
.swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.swatch {
  width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 10px 12px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.swatch:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(0,0,0,.4); }
.swatch .chip { display: block; height: 84px; border-radius: 8px; background: var(--c); margin-bottom: 10px; }
.swatch .chip-outline { border: 1px solid var(--line); }
.swatch b { display: block; font-size: 15px; }
.swatch code { background: none; padding: 0; color: var(--gray); }

.type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 36px; }
.type-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px 20px; }
.type-card .sample { line-height: 1; margin-bottom: 18px; color: var(--ink); }
.sample-script { font-family: var(--script); font-size: 44px; }
.sample-bebas { font-family: var(--display); font-size: 58px; letter-spacing: .01em; }
.sample-myriad { font-family: "Myriad Pro", "Myriad", var(--sans); font-weight: 700; font-size: 34px; }
.type-card p:not(.sample) { font-size: 15px; margin-top: 6px; }

.tagline { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; font-family: var(--display); font-size: clamp(26px, 4vw, 40px); letter-spacing: .04em; color: var(--red); }

/* ---------- usage ---------- */
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.rule-col { background: var(--white); border-radius: var(--radius); padding: 24px 26px 26px; border-top: 5px solid var(--ink); }
.rule-col.dont { border-top-color: var(--red); }
.rule-col h3 { font-family: var(--display); font-weight: 400; font-size: 34px; }
.rule-col ul { margin: 12px 0 0; padding-left: 20px; }
.rule-col li { margin: 8px 0; }
.rule-col li b { color: var(--ink); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px clamp(16px, 4vw, 40px) 48px; text-align: center; font-size: 15px; color: var(--gray); }
.footer p { margin: 4px 0; }
.footer .fine { font-size: 13px; margin-top: 16px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px);
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .two-col, .guide { grid-template-columns: 1fr; }
  .brand span { font-size: 14px; }
  .btn small { display: none; }
  .toc { columns: 1; }
}
@media (max-width: 480px) {
  .brand em { display: none; }
  .btn { padding: 9px 14px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .swatch, .guide-cover, .toast { transition: none; }
}
