@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  color-scheme: light;
  --paper: #f8f4ea;
  --ink: #251d20;
  --muted: #605153;
  --line: #d8cdc4;
  --plum: #3e263b;
  --lavender: #e8dbed;
  --gutter: clamp(20px, 5vw, 88px);
  --display: 'Instrument Serif', Georgia, serif;
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #8c3b1c; outline-offset: 4px; }
.skip { position: absolute; left: 12px; top: 12px; z-index: 2; background: var(--paper); padding: 12px; transform: translateY(-200%); }
.skip:focus { transform: none; }
.header, footer {
  min-height: 76px;
  padding: 10px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.wordmark { font: 38px/.95 var(--display); width: fit-content; white-space: nowrap; }
.wordmark span { font-style: italic; }
nav { display: flex; gap: clamp(16px, 4vw, 44px); }
nav a { display: flex; align-items: center; min-height: 44px; }
nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.bag { justify-self: end; min-height: 44px; border: 0; background: transparent; padding: 8px 0 8px 10px; }
.bag span { display: inline-grid; place-items: center; min-width: 1.8em; min-height: 1.8em; margin-left: 5px; border-radius: 50%; background: var(--lavender); }
.hero { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 68px); padding: clamp(32px, 5vw, 76px) var(--gutter); align-items: center; }
.eyebrow { margin: 0 0 14px; font-size: .86rem; font-weight: 600; color: var(--muted); }
h1,h2,h3 { margin: 0; font: 400 1rem/.94 var(--display); letter-spacing: -.035em; }
h1 { font-size: clamp(56px, 7.15vw, 112px); }
h2 { font-size: clamp(48px, 7vw, 94px); }
h3 { font-size: clamp(38px, 4.5vw, 63px); }
.intro { margin: 24px 0; max-width: 31ch; color: var(--muted); line-height: 1.55; }
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 1px solid var(--ink); border-radius: 99px; background: transparent; font-size: .9rem; font-weight: 600; transition: background-color 150ms, color 150ms; }
.pill:hover, .primary { background: var(--plum); color: var(--paper); }
.primary:hover { background: #61394d; }
.hero-photo { margin: 0; }
.hero-photo img, .sample img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; background: #bc542d; }
figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; font-size: .83rem; color: var(--muted); }
.coffee,.journal { padding: clamp(36px, 6vw, 88px) var(--gutter); border-top: 1px solid var(--line); }
.section-head, .details { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.section-head p { color: var(--muted); }
.coffees { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(22px, 5vw, 80px); margin-top: 30px; }
.sample img { aspect-ratio: 1.6; }
.sample { margin-bottom: 18px; }
article p:not(.eyebrow) { color: var(--muted); margin: 8px 0 18px; }
article .eyebrow { margin-bottom: 6px; }
.journal { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1fr); gap: clamp(24px,7vw,100px); background: var(--lavender); }
.journal p { max-width: 39ch; line-height: 1.55; }
.storage-note { color: var(--muted); font-size: .88rem; }
#tasting-form { display: grid; gap: 8px; }
#tasting-form label { font-weight: 600; }
#tasting-form select, #tasting-form textarea { width: 100%; min-height: 44px; border: 1px solid #806b81; border-radius: 4px; padding: 10px 12px; background: var(--paper); margin-bottom: 8px; }
#tasting-form button { justify-self: start; }
#journal-status { margin: 0; }
#tasting-notes { list-style: none; margin: 0; padding: 0; overflow-wrap: anywhere; }
#tasting-notes li { border-top: 1px solid #bba9c1; padding: 16px 0; margin-top: 12px; }
#tasting-notes p { margin: 6px 0 0; white-space: pre-wrap; }
footer { grid-template-columns: 1fr auto; border-bottom: 0; }
footer > span { color: var(--muted); font-size: .82rem; }
dialog { width: min(470px, calc(100% - 32px)); border: 1px solid var(--line); color: var(--ink); background: var(--paper); padding: 24px; }
dialog::backdrop { background: #251d2099; }
dialog h2 { font-size: 49px; }
dialog ul { list-style: none; padding: 0; }
dialog li { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding: 10px 0; }
.bag-note { color: var(--muted); font-size: .86rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 760px) {
  .hero,.journal { grid-template-columns: minmax(0,1fr); }
  h1 { font-size: clamp(51px, 11vw, 85px); }
}
@media (max-width: 540px) {
  .header { grid-template-columns: 1fr auto; gap: 0 12px; }
  nav { grid-row: 2; grid-column: 1/-1; }
  .coffees { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .section-head { flex-wrap: wrap; gap: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { .pill { transition: none; } }

/* Lilac Hour's storefront palette and responsive editorial layout. */
:root {
  --paper: #f7f1ed;
  --ink: #261b2a;
  --muted: #5c4b59;
  --line: #d8cbd4;
  --plum: #231828;
  --lavender: #eadcf7;
  --light-type: #f4e7ff;
}
.header {
  position: relative;
  color: var(--light-type);
  background: var(--plum);
  border-color: #59495e;
}
.header .bag span { color: var(--plum); }
.header :focus-visible, .hero :focus-visible { outline-color: #efc5fd; }
.hero {
  background: var(--plum);
  color: var(--light-type);
  align-items: stretch;
  gap: 0;
  padding: 0;
  min-height: min(680px, 68vw);
  grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
}
.hero-copy {
  align-self: center;
  padding: clamp(40px, 7vw, 110px) clamp(20px, 3vw, 50px) clamp(40px, 7vw, 110px) var(--gutter);
}
.hero .eyebrow, .hero .intro { color: #dfcce6; }
.hero h1 { font-size: clamp(56px, 7.05vw, 120px); line-height: .88; }
.hero .intro { margin: 27px 0 25px; max-width: 32ch; }
.hero .primary { background: var(--lavender); color: var(--plum); border-color: var(--lavender); }
.hero .primary:hover { background: #fff2ff; }
.hero-photo { min-width: 0; }
.hero-photo img { height: 100%; aspect-ratio: auto; object-position: 50% 48%; }
.coffee { padding-top: clamp(44px, 7vw, 108px); }
.section-head { align-items: end; }
.section-head h2 { max-width: 15ch; }
.section-head p { margin: 0 0 4px; white-space: nowrap; }
.taste-picker { margin-top: 28px; padding-block: 14px; border-block: 1px solid var(--line); display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
.taste-picker[hidden] { display: none; }
.taste-options { display: flex; gap: 8px; flex-wrap: wrap; }
.taste-options button { min-height: 44px; padding: 8px 14px; background: transparent; border: 1px solid var(--muted); border-radius: 99px; }
.taste-options button:hover { background: var(--lavender); }
.taste-options button[aria-pressed="true"] { background: var(--plum); color: var(--light-type); }
#taste-result { margin: 0; color: var(--muted); }
.coffees article { position: relative; padding: 12px 12px 16px; border: 1px solid transparent; transition: border-color 180ms, background-color 180ms; }
.coffees article.recommended { border-color: var(--plum); background: var(--lavender); }
.sample { overflow: hidden; }
.sample img { aspect-ratio: 1.48; }
.journal-link { display: inline-flex; align-items: center; min-height: 44px; margin-left: 10px; text-decoration: underline; text-underline-offset: 4px; }
.journal {
  background: var(--lavender);
  align-items: start;
}
.journal h2 { max-width: 10ch; }
#tasting-form { padding: clamp(16px, 3vw, 34px); background: var(--paper); border: 1px solid var(--line); }
@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0,1fr); }
  .hero-copy { padding: 40px var(--gutter); }
  .hero h1 { font-size: clamp(55px, 12vw, 88px); }
  .hero-photo img { height: auto; aspect-ratio: 1.24; }
  .section-head { align-items: start; gap: 10px; }
}
@media (max-width: 540px) {
  .coffees article { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .coffees article { transition: none; }
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: clamp(560px, 78svh, 840px);
}
.hero-copy { z-index: 1; max-width: 700px; padding-block: clamp(60px, 12vh, 145px); }
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 { font-size: clamp(72px, 9.3vw, 145px); }
.hero .intro { color: #f4e7ff; }
.hero-film {
  position: absolute;
  inset: 0 0 0 22%;
  overflow: hidden;
}
.hero-film img, .hero-film video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}
.hero-film video { visibility: hidden; }
.hero-film.has-video video { visibility: visible; }
.hero-film::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--plum) 0%, #231828d9 18%, #23182838 58%, transparent 83%),
    linear-gradient(0deg, #160e1ba6 0%, transparent 30%);
}
.film-control {
  position: absolute;
  z-index: 2;
  right: clamp(10px, 2.2vw, 32px);
  bottom: clamp(10px, 2.2vw, 32px);
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  color: white;
  background: transparent;
  border: 0;
  border-radius: 50%;
}
.film-control[hidden] { display: none; }
.film-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: #231828dc;
  border-radius: 50%;
}
.film-control:hover .film-icon { background: #231828; }
.film-icon::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}
.film-control.is-playing .film-icon::before {
  box-sizing: border-box;
  width: 9px;
  height: 10px;
  margin: 0;
  border: 0;
  border-inline: 3px solid currentColor;
}
@media (max-width: 950px) {
  .hero h1 { font-size: clamp(64px, 9vw, 96px); }
  .hero-film::after { background: linear-gradient(90deg, var(--plum), #231828ae 36%, #23182813 75%); }
}
@media (max-width: 760px) {
  .hero { display: flex; flex-direction: column-reverse; min-height: 0; }
  .hero-film {
    position: relative;
    inset: auto;
    flex: none;
    width: 100%;
    height: clamp(220px, 77vw, 585px);
  }
  .hero-copy { width: 100%; }
  .hero-film img, .hero-film video { object-position: 58% 50%; }
  .hero-film::after { background: linear-gradient(0deg, #231828 0%, #23182830 38%, transparent 58%); }
  .hero-copy { padding: 12px var(--gutter) 36px; }
  .hero h1 { font-size: clamp(61px, 13vw, 93px); }
  .hero .eyebrow { margin-bottom: 12px; }
  .hero .intro { margin-block: 19px; }
  .film-control { right: 10px; bottom: 8px; }
}
