/*
 * Haiku Teahouse site (2026-10 refresh, Tim picked mockup 4 "Anniversary, grown up").
 * The look: cream paper, dark-brown ink, a thin brown frame, Archivo Black for the one big line,
 * Gaegu handwriting for notes and buttons, Figtree for reading text, yellow highlighter on key
 * words, small line doodles, and the capybara. Phone first: 16px+ gutters, 44px tap targets.
 */
:root {
  --ink: #3B2414;
  --ink-soft: #4A3526;
  --brown: #8A6447;
  --paper: #F6EFE2;
  --card: #FFFCF6;
  --line: #E2D6C2;
  --hl: #FFE36E;
  --radius: 20px;
  --frame: 2px solid var(--brown);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 Figtree, system-ui, sans-serif; }
img { max-width: 100%; display: block; }
/* width/height attributes stop layout shift; CSS sets the real shape, so height must follow it */
.hero-photo img.photo, .visit figure img, .insta img { height: auto; }
a { color: var(--ink); }
a:hover { color: #1f130a; }
:focus-visible { outline: 3px solid var(--hl); outline-offset: 2px; border-radius: 6px; }

.hand { font-family: Gaegu, "Comic Sans MS", cursive; font-weight: 700; }
.display { font-family: "Archivo Black", Figtree, sans-serif; font-weight: 400; line-height: .98; letter-spacing: -.005em; }
.hl { background: linear-gradient(transparent 40%, var(--hl) 40%, var(--hl) 90%, transparent 90%); padding: 0 .2em; }
.outlined { box-shadow: 0 0 0 2px var(--ink); }

.page { position: relative; max-width: 1180px; margin: 10px auto; border: var(--frame); border-radius: 24px; overflow: hidden; }
@media (min-width: 900px) { .page { margin: 24px auto; } }
.wrap { padding: 0 20px; }
@media (min-width: 900px) { .wrap { padding: 0 48px; } }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 4px 20px; }
@media (min-width: 900px) { .top { padding: 18px 40px 6px 48px; } }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 25px; min-height: 44px; }
.brand img { width: 36px; height: 36px; }
.nav-desktop { display: none; align-items: center; gap: 4px; }
.nav-desktop a { text-decoration: none; font-size: 22px; padding: 10px 12px; }
@media (min-width: 900px) { .nav-desktop { display: flex; } .nav-phone { display: none; } }
.nav-phone summary { list-style: none; width: 46px; height: 46px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); display: grid; place-items: center; cursor: pointer; }
.nav-phone summary::-webkit-details-marker { display: none; }
.nav-phone[open] .nav-list { display: flex; }
.nav-list { display: none; position: absolute; right: 14px; top: 66px; z-index: 5; flex-direction: column; min-width: 200px; background: var(--card); border: 2px solid var(--ink); border-radius: 18px; padding: 8px; box-shadow: 0 14px 30px rgba(59,36,20,.18); }
/* 2026-10-15: iPhone Safari (and Instagram's browser) closed the menu but left the card painted on screen, so it
   looked stuck open. Its own layer makes it disappear when it closes. tools/audit.cjs checks this stays. */
.nav-list { will-change: transform; }
.nav-list a { text-decoration: none; font-size: 23px; padding: 10px 14px; border-radius: 12px; }
.nav-list a:hover { background: var(--paper); }

/* buttons */
.btn { display: block; text-align: center; text-decoration: none; font-size: 24px; padding: 9px 22px; border-radius: 999px; border: 2px solid var(--ink); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { color: #fff; background: #2a190d; }
.btn-light { background: var(--card); }
.btn-pill { display: inline-block; font-size: 22px; padding: 8px 20px; }
.buttons { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 900px) { .buttons { flex-direction: row; } .buttons .btn { min-width: 200px; } }

/* hero */
.hero { display: grid; gap: 28px; padding: 18px 0 8px; position: relative; }
@media (min-width: 900px) { .hero { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; padding: 40px 0 24px; } }
.hero .kicker { font-size: 22px; align-self: start; }
.hero h1 { margin: 10px 0 0; font-size: clamp(40px, 11vw, 70px); }
.hero .lead { margin: 16px 0 24px; font-size: 18px; color: var(--ink-soft); max-width: 30em; }
.sparkle { position: absolute; color: var(--brown); }
.sparkle.big { right: 18px; top: 22px; }
.sparkle.small { right: 54px; top: 52px; }
@media (max-width: 899px) { .sparkle.small { right: 50px; top: 2px; } }
.hero-photo { position: relative; margin: 0 6px 30px; }
.hero-photo img.photo { width: 100%; aspect-ratio: 334 / 360; object-fit: cover; object-position: center 35%; border-radius: 22px; }
.hero-photo .capy { position: absolute; left: -22px; bottom: -36px; width: 124px; height: 124px; }
.ribbon { position: absolute; right: -8px; top: -14px; background: var(--brown); color: var(--card); font-size: 20px; line-height: 1.1; padding: 10px 12px 14px; text-align: center; border-radius: 4px 4px 12px 12px; }
.hero-photo .note { position: absolute; right: 8px; bottom: -32px; font-size: 22px; display: flex; align-items: center; gap: 4px; }
@media (min-width: 900px) { .hero-photo { margin: 0 0 34px; } .hero-photo .capy { width: 150px; height: 150px; left: -40px; bottom: -44px; } }

/* sections */
section { padding: 52px 0 0; }
h2.display { font-size: clamp(30px, 6vw, 44px); margin: 0 0 18px; }

.haiku { margin: 52px 0 0; background: var(--card); border: 2px solid var(--ink); border-radius: 22px; padding: 26px 22px; text-align: center; }
.haiku p { margin: 6px 0 0; font-family: Gaegu, cursive; font-size: clamp(20px, 5.2vw, 32px); line-height: 1.35; }

.visit { display: grid; gap: 18px; }
@media (min-width: 900px) { .visit { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; } }
.visit figure { margin: 0; }
.visit figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 20px; }
.visit figcaption { font-size: 22px; margin-top: 10px; text-wrap: balance; }
.address { font-size: 18px; margin: 0 0 6px; }
.hours { background: var(--card); border-radius: 16px; padding: 14px 18px; margin: 14px 0 16px; font-size: 22px; display: grid; gap: 6px; }
.hours div { display: flex; justify-content: space-between; gap: 12px; }
.hours .today { background: var(--hl); border-radius: 8px; margin: 0 -8px; padding: 0 8px; }

.insta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .insta { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.insta img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }

footer { margin-top: 56px; background: var(--ink); color: var(--paper); padding: 32px 24px 40px; display: grid; gap: 22px; }
@media (min-width: 900px) { footer { grid-template-columns: 1.2fr 1fr auto; align-items: center; padding: 40px 48px 48px; } }
footer a { color: var(--paper); }
footer a:hover { color: #fff; }
.foot-brand { display: flex; align-items: center; gap: 12px; font-size: 26px; }
.foot-brand img { width: 44px; height: 44px; filter: invert(1); }
.foot-small { font-family: Figtree, sans-serif; font-weight: 400; font-size: 15px; line-height: 2; color: #E9E2D2; margin-top: 8px; }
.foot-small a { display: inline-block; padding: 8px 0; }
.foot-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; font-size: 22px; }
.foot-links a { padding: 7px 0; text-decoration: none; }
.foot-capy { display: flex; align-items: center; gap: 12px; font-size: 26px; }
.foot-capy img { width: 80px; height: 80px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.follow { margin-top: 14px; }
@media (min-width: 900px) { .follow { display: inline-block; } }

/* favorites as a photo grid (2026-10-12, Tim: "too many words"): just the name under each photo */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
.tile { text-decoration: none; display: flex; flex-direction: column; gap: 8px; }
.tile img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 18px; }
.tile .hand { font-size: 20px; line-height: 1.15; }
.hero .buttons { margin-top: 26px; }
@media (min-width: 900px) { .visit { align-items: center; } }
#ig-h a { display: inline-block; padding: 8px 0; }
.tile .nm { display: block; min-height: 2.3em; }

/* inner pages (menu / about / visit) */
.page-head { padding: 22px 0 6px; }
.page-head h1, .hero h1.display { margin: 8px 0 0; }
.page-head h1 { font-size: clamp(40px, 10vw, 64px); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 6px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: 0 0 auto; text-decoration: none; font-size: 20px; padding: 8px 16px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); }
@media (min-width: 900px) { .chips { flex-wrap: wrap; margin: 0; padding: 18px 0 6px; } }
.menu-sec { padding-top: 40px; scroll-margin-top: 12px; }
.menu-sec h2.display { margin-bottom: 4px; }
.menu-sec .sec-note { font-size: 21px; color: var(--brown); margin-bottom: 10px; }
.menu-list { list-style: none; margin: 0; padding: 0; display: grid; }
@media (min-width: 900px) { .menu-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }
.menu-list li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.menu-list img, .menu-list .noimg { width: 64px; height: 64px; border-radius: 999px; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 2px var(--ink); background: #2A2620; }
.menu-list .nm { flex: 1 1 auto; font-weight: 600; font-size: 17px; line-height: 1.25; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.menu-list .d { flex-basis: 100%; font-weight: 400; font-size: 14px; color: var(--ink-soft); }
.menu-list .tag { font-size: 16px; background: var(--hl); border-radius: 6px; padding: 0 6px; font-weight: 700; }
.menu-list .pr { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.allergy { margin: 36px 0 0; font-size: 14px; color: var(--ink-soft); }
.hero .lead { margin: 14px 0 0; }
.grid.three { grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 700px) { .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.fact { background: var(--card); border-radius: 20px; padding: 18px; display: grid; grid-template-columns: 72px 1fr; column-gap: 14px; align-items: center; }
.fact img { width: 72px; height: 72px; border-radius: 999px; grid-row: span 2; box-shadow: 0 0 0 2px var(--ink); }
.fact .t { font-size: 24px; line-height: 1.1; }
.fact .d { font-size: 15px; color: var(--ink-soft); }
@media (min-width: 700px) { .fact { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 10px; } .fact img { width: 110px; height: 110px; grid-row: auto; } }
.links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .links { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.link-card { display: flex; flex-direction: column; gap: 2px; text-decoration: none; background: var(--card); border-radius: 18px; padding: 16px; font-size: 24px; min-height: 96px; justify-content: center; }
.link-card .sub { font-family: Figtree, sans-serif; font-weight: 500; font-size: 14px; color: var(--ink-soft); overflow-wrap: anywhere; }
.nav-desktop a[aria-current="page"], .nav-list a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.haiku p { margin: 0; }
.brand span { white-space: nowrap; }
@media (max-width: 360px) { .brand { font-size: 21px; gap: 8px; } .brand img { width: 30px; height: 30px; } .top { padding-left: 16px; } }
/* in-between widths (tablets, phones sideways): keep the hero photo a sensible size, 4-up grids */
@media (min-width: 560px) and (max-width: 899px) {
  .hero-photo { max-width: 460px; width: 100%; margin-left: auto; margin-right: auto; }
  .grid, .insta { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .tile .hand { font-size: 18px; }
  .buttons { flex-direction: row; } .buttons .btn { flex: 1 1 0; }
}
