/* OvenSpring — "Retro Diner" brand. Mobile first. No external resources. */

@font-face {
  font-family: "Barlow Condensed";
  font-style: italic;
  font-weight: 900;
  font-display: swap;
  src: url("/fonts/barlow-condensed-latin-900-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/rubik-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/rubik-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Kalam";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/kalam-latin-400-normal.woff2") format("woff2");
}

:root {
  --cream: #FBF3E1;
  --cream-deep: #F2E4C4;
  --ink: #12393B;
  --muted: #4B6564;
  --line: #E3D3B0;
  --teal: #17666A;
  --teal-deep: #0E4F52;
  --tomato: #D63F24;
  --tomato-deep: #A42F18;
  --mustard: #F5C342;
  --aqua-soft: #CDEBE6;

  --outline: 2px solid var(--teal-deep);
  --shadow: 4px 4px 0 var(--teal-deep);

  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Kalam", "Comic Sans MS", cursive;

  --wrap: 68rem;
  --gutter: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 25px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }

:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--teal-deep);
  border-radius: 2px;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.005em;
  margin: 0 0 1rem;
  color: var(--ink);
}
h1 { font-size: clamp(2.75rem, 11vw, 5.5rem); }
h2 { font-size: clamp(2rem, 7vw, 2.75rem); }
h3 { font-size: 1.6rem; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 10;
  background: var(--ink);
  color: var(--cream);
  padding: 0.5rem 0.75rem;
  font-weight: 500;
}
.skip-link:focus { top: 1rem; color: var(--cream); }

/* Checkerboard trim — teal deep and cream. Use once or twice per page at most. */
.checker {
  height: 16px;
  background-color: var(--cream);
  background-image:
    linear-gradient(45deg, var(--teal-deep) 25%, transparent 25%, transparent 75%, var(--teal-deep) 75%),
    linear-gradient(45deg, var(--teal-deep) 25%, transparent 25%, transparent 75%, var(--teal-deep) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
  border-block: 2px solid var(--teal-deep);
}

/* Header */
.site-header {
  border-bottom: 2px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

/* Wordmark slot. Swap the text for the supplied wordmark artwork — see AGENTS.md. */
.wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: 1.85rem;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { color: var(--ink); }
.wordmark img { height: 2rem; width: auto; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
}
.site-nav a {
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--teal); color: var(--ink); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--teal-deep); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: 1.4rem;
  line-height: 1.1;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.4rem 0.8rem;
  border: var(--outline);
  border-radius: 6px;
  box-shadow: var(--shadow);
  text-decoration: none;
  text-align: center;
  transition: transform 80ms ease, box-shadow 80ms ease;
}
.btn-primary { background: var(--tomato); color: #FFFFFF; }
a.btn-primary[href]:hover { color: #FFFFFF; transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--teal-deep); }
a.btn-primary[href]:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--teal-deep); }
/* Not a link yet: an <a> without href is not focusable or clickable. */
.btn:not([href]) { cursor: default; }

.fine {
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--muted);
  margin-top: 1rem;
}

.label {
  display: inline-block;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.6rem;
}

/* Hero */
.hero { padding-block: 3rem 3.5rem; }
.hero h1 { max-width: 14ch; }
.hero .mark {
  background: linear-gradient(transparent 58%, var(--mustard) 58%, var(--mustard) 92%, transparent 92%);
  padding: 0 0.1em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.lede { font-size: 1.1875rem; line-height: 1.55; max-width: 36rem; margin-bottom: 1.75rem; }

/* Sections */
.section { padding-block: 3rem; }
.section + .section { border-top: 2px solid var(--line); }

.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
.card {
  background: var(--cream);
  border: var(--outline);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 1.5rem 1.35rem;
}
.card h2 { font-size: clamp(1.9rem, 6.5vw, 2.4rem); }

.inset {
  background: var(--cream-deep);
  border-radius: 10px;
  padding: 1.75rem 1.35rem;
}
.callout {
  background: var(--aqua-soft);
  border: var(--outline);
  border-radius: 10px;
  padding: 1.75rem 1.35rem;
}

.dark {
  background: var(--ink);
  color: var(--cream);
}
.dark h2 { color: var(--cream); }
.dark .label { color: var(--mustard); }
.dark a { color: var(--aqua-soft); }

.letter { max-width: 40rem; }
.signoff {
  font-family: var(--font-hand);
  font-size: 1.75rem;
  line-height: 1.3;
  color: var(--mustard);
  margin-top: 1.5rem;
}

/* Text pages */
.page-head { padding-block: 2.75rem 1.5rem; }
.prose { max-width: 42rem; }
.prose p { margin-bottom: 1.15rem; }
.prose strong { font-weight: 500; }
.effective { color: var(--muted); font-weight: 500; }

/* FAQ */
.faq { max-width: 44rem; margin: 0; padding: 0; }
.faq details {
  border: var(--outline);
  border-radius: 10px;
  background: var(--cream);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  padding: 1rem 3rem 1rem 1.15rem;
  position: relative;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.75rem;
  color: var(--teal);
}
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { border-bottom: 2px solid var(--line); }
.faq .answer { padding: 1rem 1.15rem 1.15rem; }

/* 404 */
.notfound { padding-block: 4rem 5rem; }
.notfound .code { color: var(--tomato-deep); }

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--cream);
}
main { padding-bottom: 3rem; }
main:has(> .dark:last-child) { padding-bottom: 0; }
.site-footer .wrap {
  padding-top: 2rem;
  padding-bottom: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.site-footer a { color: var(--cream); font-weight: 500; }
.site-footer a:hover { color: var(--mustard); }
.site-footer .copy { color: var(--cream); margin: 0; font-size: 0.9375rem; }

@media (min-width: 48rem) {
  :root { --gutter: 2rem; }
  .hero { padding-block: 5rem 5rem; }
  .section { padding-block: 4.5rem; }
  .cards { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .card { padding: 2rem 1.85rem; }
  .card.wide { grid-column: 1 / -1; }
  .inset, .callout { padding: 2.5rem 2.25rem; }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
  .page-head { padding-block: 4rem 2rem; }
  .site-footer .wrap { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
