/* Loud Eyeball Studios — site styles. No framework, no third-party requests. */

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
}

/* Brand palette (from the master logo file) */
:root {
  --purple: #A472B1;   /* Eyeball Purple: mascot body, brand field */
  --brown: #562C18;    /* Bark Brown: outlines, ink */
  --orange: #F4921F;   /* Loud Orange: the one accent */
  --yellow: #FFF200;   /* Beak Yellow */
  --red: #ED1855;      /* Mouth Red */
  --sky: #B1E0E5;      /* Sky Blue */

  /* Light theme tokens (all text pairs meet WCAG AA) */
  --bg: #FBF7F1;
  --surface: #FFFFFF;
  --surface-2: #F4ECE2;
  --text: #2E1D15;       /* 15.1:1 on bg */
  --heading: #562C18;    /* 11.1:1 on bg */
  --muted: #6B5244;      /* 6.8:1 on bg */
  --line: #E6D9CB;
  --frame: #562C18;
  --link: #562C18;
  --link-deco: #F4921F;
  --accent: #F4921F;
  --accent-ink: #B35F00; /* orange as a text glyph on light surfaces: 4.6:1 on white */
  --on-accent: #2E1D15;  /* 6.9:1 on orange */
  --stage: #FFFFFF;
  --stage-glow: #E9F6F7;
  --focus: #7A4787;
  --shadow: 0 1px 0 rgba(86, 44, 24, .06), 0 8px 24px -12px rgba(86, 44, 24, .25);

  --font-display: "Barlow Condensed", "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", sans-serif-condensed, system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --wrap: 68rem;
  --gutter: clamp(1rem, 4vw, 2rem);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C120D;
    --surface: #261912;
    --surface-2: #2F1F17;
    --text: #F3E9DF;       /* 15.4:1 */
    --heading: #FFF4E6;
    --muted: #C9B5A6;      /* 9.3:1 */
    --line: #4A3226;
    --frame: #8A6A56;      /* UI boundaries: 3.75:1 on bg, 3.48:1 on surface (WCAG 1.4.11) */
    --link: #F6A04A;       /* 8.2:1 on surface */
    --link-deco: #F6A04A;
    --accent: #F4921F;
    --accent-ink: #F4921F;
    --on-accent: #1C120D;
    --stage: #F7F1EA;      /* the mascot keeps its light "poster" in dark mode so its brown outlines stay visible */
    --stage-glow: #DCEFF1;
    --focus: #C79AD3;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .7);
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  overflow-wrap: break-word;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.05;
  letter-spacing: .01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 7vw, 4.25rem); text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); text-transform: uppercase; letter-spacing: .02em; }
h3 { font-size: 1.35rem; letter-spacing: .02em; }
p, ul, ol, dl { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: .35rem; }
strong { font-weight: 650; }

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--link-deco);
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
}
a:hover { text-decoration-thickness: 3px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

address { font-style: normal; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  padding: .6rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Header */
.site-header { border-bottom: 4px solid var(--purple); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  flex-wrap: wrap;
  padding-top: .85rem;
  padding-bottom: .85rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--heading);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1;
}
.brand img { width: 2.5rem; height: 2.5rem; border-radius: 9px; }
.brand:hover img { animation: nod .5s ease-in-out; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem 1.25rem; flex-wrap: wrap; }
.site-nav li + li { margin-top: 0; }
.site-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  padding: .3rem 0;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--heading); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.9rem;
  padding: .6rem 1.2rem;
  border-radius: 999px;
  border: 3px solid var(--frame);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.1;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--brown); }
.btn-secondary { background: transparent; color: var(--heading); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--frame); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Hero: the brand's full-bleed purple field, the same in both themes */
.hero {
  padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem);
  background: var(--purple);
  border-bottom: 3px solid var(--brown);
  /* fixed tokens so dark mode never overrides the purple field */
  --heading: #1C120D;
  --text: #1C120D;     /* 4.9:1 on purple */
  --muted: #1C120D;
  --frame: var(--brown);
  --stage: #FFFFFF;
  --stage-glow: #E9F6F7;
  --focus: #1C120D;
  color: #1C120D;
}
.hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); }
.hero .status { background: #FFFFFF; border-color: var(--brown); color: var(--brown); }
.hero .btn-secondary { background: #FFFFFF; color: var(--brown); border-color: var(--brown); }
.hero .stage { box-shadow: 0 10px 0 -2px rgba(28, 18, 13, .28); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
@media (min-width: 52rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .75rem;
  text-wrap: balance;
}
.lede { font-size: clamp(1.15rem, 2.2vw, 1.35rem); line-height: 1.5; max-width: 34rem; }
.status {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: .5rem 0 0;
  padding: .4rem .9rem .4rem .75rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--heading);
}
.status::before {
  content: "";
  width: .7rem; height: .7rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}

/* Mascot stage */
.stage {
  position: relative;
  margin: 0;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 3px solid var(--frame);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(circle closest-side at 70% 46%, var(--stage-glow) 0 94%, transparent 95%),
    var(--stage);
  box-shadow: var(--shadow);
}
.lockup { width: 100%; overflow: visible; }

.le-lid { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); }
.le-beak { transform-box: fill-box; transform-origin: 50% 0; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.le-wing-left { transform-box: fill-box; transform-origin: 100% 100%; }
.le-wing-right { transform-box: fill-box; transform-origin: 0% 50%; }
.le-tuft { transform-box: fill-box; transform-origin: 50% 100%; }

.hello {
  position: absolute;
  right: 4%;
  top: 2%;
  padding: .35rem .85rem .4rem;
  background: #FFFFFF;
  color: #562C18;
  border: 3px solid #562C18;
  border-radius: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.6vw, 1.45rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1;
  opacity: 0;
  transform: translateY(6px) scale(.9);
  transform-origin: 20% 100%;
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.hello::after {
  content: "";
  position: absolute;
  left: 18%;
  bottom: -11px;
  width: 16px; height: 16px;
  background: #FFFFFF;
  border-right: 3px solid #562C18;
  border-bottom: 3px solid #562C18;
  transform: rotate(45deg) skew(8deg, 8deg);
}
.stage:hover .hello { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .le-lid { animation: blink 7s 2.5s infinite; }
  .le-tuft { animation: sway 6s ease-in-out infinite; }
  .stage:hover .le-wing-left { animation: wave .9s ease-in-out 2; }
  .stage:hover .le-beak { transform: scaleY(1.08); }
  .hello { animation: hello 3.6s 1s ease both; }
  .stage:hover .hello { animation: none; }
}

@keyframes blink {
  0%, 95%, 100% { transform: scaleY(0); }
  97% { transform: scaleY(1); }
}
@keyframes sway {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-4deg); }
}
@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(14deg); }
}
@keyframes hello {
  0% { opacity: 0; transform: translateY(6px) scale(.9); }
  10%, 80% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes nod {
  0%, 100% { transform: rotate(0); }
  40% { transform: rotate(-8deg); }
  70% { transform: rotate(5deg); }
}

/* Sections */
.section { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.section-alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.card {
  background: var(--surface);
  border: 3px solid var(--frame);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3.5vw, 2rem);
  box-shadow: var(--shadow);
}

.grid-2 { display: grid; gap: clamp(1.25rem, 3vw, 2rem); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 52rem) { .grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } }

.facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; }
.facts > div { padding: .8rem 0; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; padding-top: 0; }
.facts > div:last-child { padding-bottom: 0; }
@media (max-width: 34rem) {
  .hero .eyebrow { font-size: .95rem; }
}
@media (min-width: 34rem) {
  .facts > div { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: 1rem; }
}
.facts dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: .1rem;
}
.facts dd { margin: 0; color: var(--text); }

.links { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); list-style: none; padding: 0; margin: 0; }
@media (min-width: 40rem) { .links { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.links li + li { margin-top: 0; }
.link-card {
  display: block;
  height: 100%;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 3px solid var(--frame);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.link-card:hover { transform: translateY(-3px); box-shadow: 0 5px 0 var(--accent); }
.link-card h3 { margin-bottom: .35rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; text-transform: uppercase; }
.link-card h3::after { content: "→"; font-family: var(--font-body); font-weight: 400; color: var(--accent-ink); }
.link-card p { margin: 0; color: var(--muted); font-size: 1rem; }

/* Long-form legal / support pages */
.page-head { padding: clamp(2rem, 6vw, 3.5rem) 0 1.25rem; }
.page-head .meta { color: var(--muted); margin: 0; }
.prose { max-width: 44rem; padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.prose h2 { margin-top: 2.25rem; font-size: clamp(1.4rem, 3vw, 1.7rem); }
.prose h3 { margin-top: 1.5rem; margin-bottom: .35rem; font-family: var(--font-body); font-size: 1.1rem; font-weight: 650; letter-spacing: 0; line-height: 1.4; }
.summary {
  background: var(--surface);
  border: 3px solid var(--frame);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 0 0 1.5rem;
}
.summary h2 { margin-top: 0; font-size: 1.35rem; }
.summary > :last-child { margin-bottom: 0; }
.callout {
  border-left: 5px solid var(--accent);
  background: var(--surface-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }

.faq details {
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin: 0 0 .75rem;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: .85rem 1.1rem .85rem 2.6rem;
  font-weight: 650;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  position: absolute;
  left: 1.1rem;
  top: .85rem;
  font: 700 1.35rem/1.75rem var(--font-display);
  color: var(--accent-ink);
}
.faq details[open] summary::before { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details > div { padding: .85rem 1.1rem .1rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2rem;
  font-size: .95rem;
  color: var(--muted);
}
.site-footer .wrap { display: flex; gap: 1rem; align-items: flex-start; }
.site-footer img { width: 2.25rem; height: 2.25rem; border-radius: 8px; flex: none; margin-top: .1rem; }
/* Items wrap only as whole units. Every item carries a leading separator, and the
   negative margin + clip-path hide the one that starts each line. */
.site-footer p {
  margin: 0 0 0 -1.1rem;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .15rem 0;
  clip-path: inset(-.5rem -.5rem -.5rem 1.1rem);
}
.site-footer a { color: var(--muted); text-decoration-color: currentColor; text-decoration-thickness: 1px; }
.site-footer a:hover { color: var(--link); text-decoration-color: var(--link-deco); }
.fi { white-space: nowrap; }
.fi-addr { white-space: normal; padding-left: 1.1rem; text-indent: -1.1rem; }  /* the address may break only at its comma */
.fi-addr > span { white-space: nowrap; }
.fi-addr::before { text-indent: 0; }
.fi::before { content: "·"; display: inline-block; width: 1.1rem; text-align: center; }

/* 404 */
.lost { text-align: center; padding-top: clamp(2.5rem, 8vw, 5rem); padding-bottom: clamp(2.5rem, 8vw, 5rem); }
.lost .peek {
  width: min(12rem, 55vw);
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 auto 1.5rem;
  padding: 1.25rem 1.5rem .75rem;
  background: var(--sky);
  border: 3px solid var(--frame);
  border-radius: 50%;
  transform: rotate(-12deg);
}
.lost .btn-row { justify-content: center; }
.lost p { max-width: 32rem; margin-left: auto; margin-right: auto; }
@media (prefers-reduced-motion: no-preference) {
  .lost .peek { animation: peek 3.2s ease-in-out infinite; }
}
@keyframes peek {
  0%, 100% { transform: rotate(-12deg) translateY(0); }
  50% { transform: rotate(-6deg) translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

@media print {
  .site-nav, .skip-link, .stage, .btn-row { display: none; }
  body { background: #fff; color: #000; }
}
