/* Happyland Matcha, concept demo.
   Type: system serif and sans stacks as design stand-ins.
   The brand's original typeface is unverified and is not used here. */

:root {
  --cream: #F4ECD5;      /* sampled from the avatar background */
  --paper: #FBF7EC;
  --blue: #19498B;       /* sampled from the avatar */
  --matcha: #779124;     /* sampled from photo 06 */
  --matcha-ink: #4E6217; /* darker matcha for text on cream */
  --wood: #9F613C;       /* sampled from photo 11 */
  --ink: #1F2418;
  --muted: #5B5A4C;
  --line: rgba(31, 36, 24, .16);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(20px, 5vw, 64px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 12px; top: -60px;
  background: var(--blue); color: var(--paper);
  padding: 10px 14px; z-index: 20; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--pad);
  background: rgba(244, 236, 213, .92);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.top.scrolled { border-bottom-color: var(--line); }
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font: 500 15px/1 var(--sans); letter-spacing: .01em;
}
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.top nav { display: flex; gap: clamp(14px, 3vw, 32px); }
.top nav a {
  color: var(--ink); text-decoration: none; font-size: 14px;
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.top nav a:hover { border-bottom-color: var(--ink); }

/* Shared */
section { padding: 0 var(--pad); max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; }
.eyebrow {
  margin: 0 0 14px;
  font: 600 12px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--matcha-ink);
}
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; margin: 0 0 16px; }
h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; }
h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; }
p { margin: 0 0 16px; max-width: 34em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px;
  border: 1px solid var(--ink); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: 15px;
  transition: background-color .2s, color .2s;
}
.btn:hover { background: var(--ink); color: var(--cream); }
.btn-solid { background: var(--blue); border-color: var(--blue); color: var(--paper); }
.btn-solid:hover { background: var(--ink); border-color: var(--ink); }

/* A print with its wall label */
.print { margin: 0; }
.print img { width: 100%; background: #e9dfc4; }
.label {
  margin-top: 10px;
  font-size: 13px; line-height: 1.4; color: var(--muted);
}
.label .no { color: var(--ink); font-weight: 600; margin-right: 6px; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 6vw, 88px);
  align-items: center;
  min-height: calc(100svh - 61px);
  padding-top: clamp(24px, 4vh, 48px); padding-bottom: clamp(24px, 4vh, 48px);
}
.hero-print img { max-height: calc(100svh - 160px); width: auto; margin-left: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.hero-print .label { text-align: right; }
.lede { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--ink);
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); margin: 4px 0 24px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.status.open .dot { background: var(--matcha); box-shadow: 0 0 0 4px rgba(119, 145, 36, .2); }
.status.closed .dot { background: var(--wood); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* The wall: offset prints */
.wall {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
  padding-top: clamp(64px, 10vw, 140px); padding-bottom: clamp(64px, 10vw, 140px);
  align-items: start;
}
.p-pour { grid-column: 1 / span 5; }
.wall-note {
  grid-column: 7 / span 5; align-self: start;
  font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3;
  margin: 0;
}
.p-frame { grid-column: 7 / span 5; }
@media (min-width: 821px) {
  .wall-note { grid-row: 1; margin-top: 18%; }
  .p-pour { grid-row: 1 / span 2; }
  .p-frame { grid-row: 2; margin-top: 48px; }
}

/* Seasonal */
.seasonal {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 88px); align-items: center;
  padding-top: clamp(48px, 8vw, 110px); padding-bottom: clamp(48px, 8vw, 110px);
  border-top: 1px solid var(--line);
}
.picker { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 20px; }
.picker button {
  font: inherit; font-size: 15px; cursor: pointer;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: transparent; color: var(--ink); border: 1px solid var(--ink);
  transition: background-color .2s, color .2s, border-color .2s;
}
.picker button:hover { border-color: var(--matcha-ink); color: var(--matcha-ink); }
.picker button[aria-pressed="true"] { background: var(--matcha-ink); border-color: var(--matcha-ink); color: var(--paper); }
.fine { font-size: 13px; color: var(--muted); }
.cups { max-width: 460px; justify-self: end; width: 100%; }
.cups-frame { position: relative; overflow: hidden; }
/* Soft spotlight on the chosen cup; centres measured from photo 05 */
.spot {
  position: absolute; inset: 0;
  background: rgba(244, 236, 213, .7);
  --x: 50%;
  -webkit-mask-image: radial-gradient(ellipse 19% 40% at var(--x) 66%, transparent 62%, #000 100%);
          mask-image: radial-gradient(ellipse 19% 40% at var(--x) 66%, transparent 62%, #000 100%);
  opacity: 0; transition: opacity .35s ease;
  pointer-events: none;
}
.cups[data-active] .spot { opacity: 1; }
.cups[data-active="0"] .spot { --x: 18%; }
.cups[data-active="1"] .spot { --x: 50.5%; }
.cups[data-active="2"] .spot { --x: 82%; }

/* Irwin */
.irwin {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 6vw, 88px); align-items: end;
  padding-top: clamp(48px, 8vw, 110px); padding-bottom: clamp(48px, 8vw, 110px);
}
.irwin .print { max-width: 380px; }
.irwin-text { padding-bottom: 32px; }

/* Listen */
.listen {
  display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 6vw, 88px); align-items: center;
  padding-top: clamp(48px, 8vw, 110px); padding-bottom: clamp(48px, 8vw, 110px);
}
.listen .print { order: 2; max-width: 400px; justify-self: end; width: 100%; }
.listen-text { order: 1; }

/* Visit */
.visit {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 88px);
  padding-top: clamp(48px, 8vw, 110px); padding-bottom: clamp(48px, 8vw, 110px);
  border-top: 1px solid var(--line);
}
.hours { border-collapse: collapse; width: 100%; max-width: 440px; margin: 8px 0 28px; }
.hours th, .hours td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; }
.hours tr.today th::after {
  content: "Today"; margin-left: 10px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--matcha-ink); font-weight: 600;
}
.order { list-style: none; margin: 8px 0 0; padding: 0; max-width: 440px; }
.order a {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 56px; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 22px;
  transition: color .2s, padding .25s;
}
.order li:first-child a { border-top: 1px solid var(--line); }
.order a:hover { color: var(--blue); padding-left: 6px; }

/* Footer */
.foot {
  display: flex; gap: 16px; align-items: center;
  max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto;
  padding: 28px var(--pad) 40px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.foot p { margin: 0; max-width: 60em; }
.foot strong { color: var(--ink); }
.foot-mark { width: 40px; height: 40px; border-radius: 50%; flex: none; }

/* Gentle reveal, motion only when allowed */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* Mobile */
@media (max-width: 820px) {
  .hero, .seasonal, .irwin, .listen, .visit { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding-top: 20px; gap: 24px; }
  .hero-print img { height: 40svh; max-height: none; width: 100%; margin: 0; aspect-ratio: auto; object-position: 50% 45%; }
  .hero-print .label { text-align: left; }
  .wall { grid-template-columns: 1fr; gap: 36px; }
  .p-pour, .wall-note, .p-frame { grid-column: 1; grid-row: auto; margin-top: 0; }
  .p-pour { width: 82%; }
  .p-frame { width: 82%; justify-self: end; }
  .cups, .listen .print { justify-self: start; }
  .listen .print { order: 1; }
  .listen-text { order: 2; }
  .irwin .print { width: 70%; }
  .irwin-text { padding-bottom: 0; }
}
@media (max-width: 420px) {
  .brand span { font-size: 14px; }
  .top nav { gap: 14px; }
  .top nav a { font-size: 13px; }
}
