/* ---------- Fonts ---------- */
@font-face { font-family: "Oswald"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/oswald-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/oswald-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/open-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/open-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Ms Madi"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/ms-madi-latin-400-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --navy: #0f2f4e;
  --navy-deep: #0a2238;
  --cream: #f9f7f0;
  --cream-dark: #e9e3d4;
  --rose: #d2afae;
  --rose-dark: #c39695;
  --teal: #3c8c8c;
  --white: #ffffff;
  --ink: var(--navy);
  --muted: #5a6b7c;
  --font-heading: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;
  --font-script: "Ms Madi", cursive;
  --measure: 70ch;
  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 0;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--cream); }
img, picture, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 500; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.75rem, 8vw, 6.25rem); font-weight: 400; }
h2 { font-size: clamp(1.75rem, 4vw, 2.8rem); }
h3 { font-size: 1.375rem; }
p { margin: 0 0 1em; max-width: var(--measure); }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--navy); color: var(--white); padding: 0.5rem 1rem; z-index: 100; }
.skip-link:focus { top: 1rem; }
.script { font-family: var(--font-script); font-weight: 400; font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.2; color: var(--muted); letter-spacing: 0; margin-bottom: 0.25em; }
.center { text-align: center; }
.center p { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-family: var(--font-heading); font-weight: 500; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 2px; text-decoration: none; padding: 0.75rem 1.75rem; border: 1px solid var(--navy); border-radius: var(--radius); background: var(--navy); color: var(--white); cursor: pointer; transition: background 0.15s, color 0.15s; }
.btn:hover { background: var(--navy-deep); }
.btn--outline { background: transparent; color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--rose { background: var(--rose); border-color: var(--rose); color: var(--navy); }
.btn--rose:hover { background: var(--rose-dark); border-color: var(--rose-dark); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: var(--white); font-size: 0.8rem; font-weight: 600; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 2.25rem; gap: 1rem; }
.topbar ul { display: flex; gap: 1.25rem; }
.topbar li + li::before { content: "•"; margin-right: 1.25rem; opacity: 0.6; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
@media (max-width: 600px) { .topbar .topbar__tags { display: none; } .topbar .wrap { justify-content: flex-end; } }

/* ---------- Header ---------- */
.site-header { background: var(--cream); border-bottom: 1px solid var(--cream-dark); position: relative; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.75rem; }
.site-header__logo img { width: 150px; height: auto; }
.site-nav ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { font-family: var(--font-heading); font-weight: 500; text-transform: uppercase; letter-spacing: 2px; font-size: 1rem; text-decoration: none; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--navy); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--rose); }
.nav-toggle { display: none; font: inherit; font-size: 1rem; text-decoration: none; font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 2px; background: none; border: 1px solid var(--navy); border-radius: var(--radius); padding: 0.4rem 0.9rem; color: var(--navy); cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--cream-dark); padding: 1rem var(--gutter); z-index: 10; }
  .site-nav.is-open, .site-nav:target { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.75rem; }
}

/* ---------- Home hero ---------- */
.home-hero { padding-block: clamp(2.5rem, 6vw, 5rem); overflow: hidden; }
.home-hero .wrap { display: grid; gap: var(--gutter); grid-template-columns: 1fr; align-items: center; }
.home-hero h1 { margin-bottom: 0.15em; line-height: 1; }
.home-hero h2 { margin: 0; }
.home-hero__photos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.75rem, 2vw, 1.5rem); }
.arch { aspect-ratio: 5 / 9; border-radius: 999px; overflow: hidden; }
.arch picture, .photo picture, .hero__media picture { height: 100%; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch + .arch { margin-top: 3rem; }
@media (min-width: 860px) { .home-hero .wrap { grid-template-columns: 1fr 1.35fr; } }

/* ---------- Page hero ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: clamp(14rem, 32vw, 20rem); color: var(--white); isolation: isolate; background: var(--navy); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 34, 56, 0.7) 0%, rgba(10, 34, 56, 0.25) 100%); z-index: -1; }
.hero h1 { margin: 0; font-size: clamp(2.5rem, 6vw, 3.75rem); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); }
.breadcrumb { display: flex; gap: 0.5rem; font-size: 0.9rem; margin-top: 0.75rem; }
.breadcrumb a { color: inherit; }
.breadcrumb li + li::before { content: "›"; margin-right: 0.5rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section--navy { background: var(--navy); color: var(--white); }
.section--white { background: var(--white); }
.intro { text-align: center; }
.intro h1 { margin-bottom: 0.25em; }
.intro h2 { font-weight: 500; color: var(--navy); }
.rule { border: 0; border-top: 1px solid var(--cream-dark); margin: 0 0 2rem; }
.grid-2 { display: grid; gap: var(--gutter); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }
.grid-3 { display: grid; gap: var(--gutter); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.photo { aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); }
.photo--square { aspect-ratio: 1; }
.photo--contain img { object-fit: contain; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.prose h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-top: 1.5em; }
.prose h2:first-child, .prose .script + h2 { margin-top: 0; }

/* ---------- Marquee strip (About) ---------- */
.strip { background: var(--navy); color: var(--white); font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.2em; padding: 0.75rem 0; overflow: hidden; white-space: nowrap; }
.strip span { display: inline-block; padding-inline: 1.5rem; }

/* ---------- Menu (Baked Goods) ---------- */
.menu { display: grid; gap: var(--gutter); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.menu-item { background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 3px rgba(15, 47, 78, 0.08); }
.menu-item__body { padding: 1.25rem; text-align: center; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.menu-item h3 { font-size: 1.15rem; margin: 0; }
.menu-item__price { font-family: var(--font-heading); font-size: 2.25rem; line-height: 1; margin: 0.25rem auto 0.75rem; }
.menu-item__price small { font-family: var(--font-body); font-size: 0.85rem; color: var(--muted); }
.menu-item .btn { margin-top: auto; }

/* ---------- Flyer (Book Nook) ---------- */
.flyer { display: grid; gap: var(--gutter); }
.flyer img { border-radius: var(--radius); }
.definition { font-style: italic; color: #2f6f6f; }

/* ---------- Events (Home) ---------- */
.events { margin-block: 1.5rem; }
.events summary { cursor: pointer; font-weight: 600; }
.events ul { padding-left: 1.25rem; margin: 0.75rem 0 0; }
.events li { margin-bottom: 0.4rem; }

/* ---------- Form (Contact) ---------- */
.form { display: grid; gap: 1rem; max-width: 760px; margin-inline: auto; }
.form__row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.25rem; }
.form input, .form textarea { width: 100%; font: inherit; padding: 0.75rem; border: 1px solid #c9c2b2; border-radius: var(--radius); background: var(--white); color: var(--ink); }
.form textarea { min-height: 10rem; resize: vertical; }
.form__status { min-height: 1.5rem; font-weight: 600; margin: 0; }
.form .btn { justify-self: stretch; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--white); padding-block: clamp(3rem, 8vw, 5rem); font-size: 0.9rem; }
.site-footer .wrap { display: grid; gap: var(--gutter); grid-template-columns: 1fr; }
.site-footer__tagline { font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 22ch; }
.site-footer__cols { display: grid; gap: var(--gutter); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.site-footer h3 { font-size: 1.1rem; }
.site-footer address { font-style: normal; }
.site-footer a { color: var(--white); }
.social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social a { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.5); padding: 0.3rem 0.8rem; }
.social a:hover { background: rgba(255, 255, 255, 0.12); }
.site-footer__legal { grid-column: 1 / -1; margin: 1rem 0 0; font-size: 0.8rem; opacity: 0.8; max-width: none; }
@media (min-width: 860px) { .site-footer .wrap { grid-template-columns: 1fr 1.2fr; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
