/* Emilia's: the maroon scalloped awning is the page's one shape. */
@font-face { font-family: "Cormorant"; src: url(../fonts/cormorant-garamond-normal.woff2) format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(../fonts/cormorant-garamond-italic.woff2) format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken"; src: url(../fonts/hanken-grotesk-var.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ground: #EDE9E2;
  --cloth: #F7F5F0;
  --ink: #2B1B20;
  --muted: #6A5559;
  --maroon: #5E2233;
  --awning: #7A3042;
  --gold: #E3D3A1;
  --gold-soft: #CDBB8A;
  --pad: clamp(20px, 4vw, 32px);
  --gap-section: clamp(88px, 13vw, 200px);
  --settle: cubic-bezier(.22, 1, .36, 1);
  --inout: cubic-bezier(.65, 0, .25, 1);
  --t-control: 220ms;
  --t-enter: 900ms;
  --t-scene: 1200ms;
  --solid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' preserveAspectRatio='none'%3E%3Crect width='10' height='10'/%3E%3C/svg%3E");
  --arc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2 1'%3E%3Cpath d='M0 0H2A1 1 0 0 1 0 0z' fill='%23000'/%3E%3C/svg%3E");
  --scallop: 36px; /* width of one awning scallop */
  --display: "Cormorant", Georgia, serif;
  --text: "Hanken", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.55 var(--text); caret-color: var(--maroon); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
::selection { background: var(--maroon); color: var(--gold); }
:focus-visible { outline: 3px solid var(--awning); outline-offset: 3px; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; line-height: 1; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(44px, 6vw, 88px); }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--maroon); color: var(--gold); padding: 12px 16px; }
.skip:focus { top: 12px; }

/* The scallop: maroon half-discs hanging from a straight edge, like the awning. */
.drop { height: calc(var(--scallop) / 2); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2 1'%3E%3Cpath d='M0 0H2A1 1 0 0 1 0 0z' fill='%235E2233'/%3E%3C/svg%3E") 0 0 / var(--scallop) 100% repeat-x; }

/* Buttons: square, flat, one fill. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; font: 600 16px/1.2 var(--text); text-decoration: none; border: 0; border-radius: 0; cursor: pointer; transition: background-color var(--t-control) ease, transform 160ms var(--settle); font-variant-numeric: tabular-nums; }
.btn:active, .motion:active, .plates button:active { transform: scale(0.97); }
.btn-gold { background: var(--gold); color: var(--maroon); }
.btn-maroon { background: var(--maroon); color: var(--gold); }
.btn-cloth { background: var(--cloth); color: var(--maroon); }
@media (hover: hover) and (pointer: fine) {
  .btn-gold:hover { background: #EEE2B9; }
  .btn-maroon:hover { background: var(--awning); }
  .link:hover, .link-light:hover { text-decoration-thickness: 2px; }
}
.link, .link-light { display: inline-flex; align-items: center; min-height: 48px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; }
.link { color: var(--maroon); }
.link-light { color: var(--cloth); }

/* Nav sits over the brick above the sign. */
.nav { position: absolute; z-index: 10; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 28px; padding: 18px var(--pad); color: var(--cloth); }
.mark { font: italic 500 32px/1 var(--display); text-decoration: none; color: var(--gold); margin-right: auto; }
.nav nav { display: flex; gap: 24px; }
.nav nav a { font-weight: 600; font-size: 15px; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav-call { min-height: 44px; padding: 10px 18px; }
.motion { min-height: 44px; padding: 0 4px; background: none; border: 0; color: inherit; font: 600 14px var(--text); text-decoration: underline; text-underline-offset: .25em; cursor: pointer; transition: transform 160ms var(--settle); }
@media (hover: hover) and (pointer: fine) { .nav nav a:hover { text-decoration: underline; } }

/* Hero: the storefront, with its bottom edge cut as the awning. */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: var(--ink); border-bottom: 10px solid var(--maroon); }
.hero-photo, .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo img { object-fit: cover; object-position: 50% 30%; transform-origin: 50% 30%; }
.js:not(.still) .hero-photo img { animation: settle var(--t-scene) var(--settle) both; }
@keyframes settle { from { transform: scale(1.04); opacity: .6; } to { transform: none; opacity: 1; } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(43, 27, 32, .55) 0, rgba(43, 27, 32, 0) 14%, rgba(43, 27, 32, 0) 45%, rgba(43, 27, 32, .78) 72%, rgba(43, 27, 32, .9) 100%); pointer-events: none; } /* taste-skill-ignore: scrim over the photo */
.hero-text { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: clamp(32px, 6vh, 64px); color: var(--cloth); max-width: 44rem; }
.hero h1 { font-style: italic; font-size: clamp(76px, 10vw, 150px); color: var(--gold); letter-spacing: -0.01em; line-height: .95; }
.hero-line { margin-top: 14px; font: 500 clamp(22px, 2.2vw, 30px)/1.25 var(--display); }
.hero-facts { margin-top: 10px; font-size: 16px; color: #E9DFD2; font-variant-numeric: tabular-nums; }
.hero-ctas { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; }

/* Statement with scalloped inline thumbnails. */
.statement { padding: var(--gap-section) var(--pad) 0; }
.statement p { max-width: 46ch; margin-left: 25%; font: 500 clamp(26px, 2.6vw, 36px)/1.3 var(--display); }
.thumb { display: inline-block; width: 1.05em; height: .9em; vertical-align: -0.12em; margin: 0 .1em; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb { -webkit-mask: var(--solid) top / 100% calc(100% - 4.5px) no-repeat, var(--arc) bottom / 9px 4.5px repeat-x; mask: var(--solid) top / 100% calc(100% - 4.5px) no-repeat, var(--arc) bottom / 9px 4.5px repeat-x; }

/* What guests order: a ranked list with scallop bullets. */
.dishes { padding: var(--gap-section) var(--pad) 0; }
.dishes-head { display: grid; grid-template-columns: 33% minmax(0, 1fr); align-items: end; gap: 0 0; }
.dishes-head h2 { grid-column: 2; max-width: 12ch; }
.dishes-head p { grid-column: 2; margin-top: 20px; max-width: 54ch; color: var(--muted); }
.dish-cols { margin: 56px 0 0 33%; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; }
.dish-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; }
.dish-list li { display: grid; grid-template-columns: 72px 1fr; column-gap: 20px; align-items: start; }
.bullet, .tab { grid-row: span 2; width: 72px; aspect-ratio: 4 / 5; overflow: hidden; -webkit-mask: var(--solid) top / 100% calc(100% - 6px) no-repeat, var(--arc) bottom / 12px 6px repeat-x; mask: var(--solid) top / 100% calc(100% - 6px) no-repeat, var(--arc) bottom / 12px 6px repeat-x; }
.bullet img { width: 100%; height: 100%; object-fit: cover; }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 6px; background: var(--maroon); color: var(--gold); font-size: 13px; line-height: 1; }
.tab b { font: 500 38px/1 var(--display); font-variant-numeric: tabular-nums; }
.tab-e b { font-style: italic; font-size: 44px; margin: 0; }
.dish-name { font: 600 clamp(26px, 2.4vw, 34px)/1.1 var(--display); padding-top: 4px; }
.dish-note { margin-top: 6px; color: var(--muted); font-size: 16px; max-width: 38ch; }
.need { margin: 48px 0 0 33%; font-weight: 600; color: var(--maroon); }

/* From the tables: a maroon field hung from the awning, one frame that changes. */
.tables { margin-top: var(--gap-section); background: var(--maroon); color: var(--gold); }
.tables-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(32px, 6vw, 96px); padding: clamp(72px, 9vw, 140px) var(--pad) clamp(88px, 11vw, 160px); align-items: start; }
.tables h2 { color: var(--gold); }
.tables-copy > p { margin-top: 20px; max-width: 38ch; color: #EADFC0; }
.plates { list-style: none; margin: 40px 0 0; padding: 0; }
.plates button { display: block; width: 100%; text-align: left; min-height: 48px; padding: 6px 0; background: none; border: 0; cursor: pointer; color: #D9C7A0; font: 500 clamp(26px, 2.6vw, 38px)/1.15 var(--display); transition: color var(--t-control) ease, transform 160ms var(--settle); }
.plates button[aria-pressed="true"] { color: var(--cloth); font-style: italic; }
@media (hover: hover) and (pointer: fine) { .plates button:hover { color: var(--cloth); } }
.frame { margin: 0; justify-self: end; width: min(100%, 520px); }
.frame-photos { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; background: var(--awning); cursor: pointer; overflow: hidden; }
.frame-photos { -webkit-mask: var(--solid) top / 100% calc(100% - 14px) no-repeat, var(--arc) bottom / 28px 14px repeat-x; mask: var(--solid) top / 100% calc(100% - 14px) no-repeat, var(--arc) bottom / 28px 14px repeat-x; }
.frame-photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 600ms var(--inout); }
.frame-photos img.on { opacity: 1; }
.frame figcaption { margin-top: 16px; font-size: 15px; color: #EADFC0; min-height: 3em; }

/* The room and the patio: offset split. */
.room { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(16px, 2vw, 32px); padding: var(--gap-section) var(--pad) 0; }
.room h2 { grid-column: 5 / 13; margin-bottom: 48px; }
.room figure { margin: 0; }
.room figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); }
.room-a { grid-column: 1 / 7; grid-row: 2 / 4; margin-left: calc(var(--pad) * -1) !important; }
.room-a img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.room-a figcaption { padding-left: var(--pad); }
.room-copy { grid-column: 8 / 13; grid-row: 2; }
.room-copy > p { max-width: 46ch; }
.room blockquote { margin: 40px 0 0; }
.room blockquote p { font: italic 500 clamp(26px, 2.4vw, 34px)/1.2 var(--display); color: var(--maroon); max-width: 22ch; }
.room blockquote footer { margin-top: 10px; font-size: 15px; color: var(--muted); }
.room-b { grid-column: 9 / 13; grid-row: 3; margin-top: 56px; }
.room-b img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

/* Visit: the awning's address, set large. */
.visit { margin-top: var(--gap-section); padding: clamp(80px, 10vw, 140px) var(--pad) clamp(96px, 12vw, 180px); background: var(--cloth); }
.address { margin-top: 20px; font: italic 500 clamp(52px, 10.4vw, 168px)/.95 var(--display); letter-spacing: -0.02em; color: var(--maroon); white-space: nowrap; }
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px clamp(32px, 6vw, 96px); margin-top: 56px; }
.visit-where { color: var(--muted); }
.visit-status { margin-top: 14px; font: 600 clamp(26px, 2.4vw, 34px)/1.15 var(--display); }
.visit-rating { margin-top: 10px; font-variant-numeric: tabular-nums; }
.visit-ctas { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center; }
.hours { border-collapse: collapse; width: 100%; max-width: 30rem; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 10px 0; font-weight: 400; }
.hours td { text-align: right; }
.hours tbody tr + tr th, .hours tbody tr + tr td { border-top: 1px solid #DED5C6; }
.hours tr.today th, .hours tr.today td { color: var(--maroon); font-weight: 700; }
.hours tfoot td { text-align: left; padding-top: 18px; color: var(--muted); font-size: 15px; }

/* Footer: the sign board. */
.foot { background: var(--maroon); color: var(--gold); padding: 0 var(--pad) 120px; }
.foot-name { margin-top: clamp(48px, 7vw, 96px); font: italic 500 clamp(96px, 23vw, 360px)/.85 var(--display); letter-spacing: -0.02em; white-space: nowrap; }
.foot-line { margin-top: 32px; font-size: 17px; color: #EADFC0; font-variant-numeric: tabular-nums; }
.foot-note { margin-top: 16px; font-size: 14px; color: #D9C7A0; max-width: 70ch; }

/* Phone bar. */
.bar { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: none; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--ground); transform: translateY(110%); transition: transform 250ms var(--settle); }
.bar.show { transform: none; }
.bar .btn { flex: 1; padding: 12px 10px; font-size: 15px; white-space: nowrap; }
.bar .btn-maroon { flex: 1.5; }

/* Entrances: visible by default; JS adds the start state. */
.js:not(.still) .rise:not(.in) { opacity: 0; transform: translateY(16px); }
.rise { transition: opacity var(--t-enter) var(--settle) var(--d, 0ms), transform var(--t-enter) var(--settle) var(--d, 0ms); }
.js:not(.still) .reveal:not(.in) img { clip-path: inset(0 0 100% 0); }
.reveal img { transition: clip-path var(--t-scene) var(--settle); }
.still .rise, .still .reveal img { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .js .hero-photo img { animation: none !important; }
  .js .rise:not(.in) { transform: none !important; }
  .js .reveal:not(.in) img { clip-path: none !important; }
  .reveal img { transition: none; }
  .frame-photos img { transition-duration: 200ms; }
}

/* Phone: its own composition. */
@media (max-width: 860px) {
  :root { --scallop: 28px; }
  .nav nav { display: none; }
  .nav { gap: 14px; }
  .hero { min-height: 560px; }
  .hero-photo img { object-position: 50% 50%; }
  .hero::after { background: linear-gradient(to bottom, rgba(43, 27, 32, .55) 0, rgba(43, 27, 32, 0) 12%, rgba(43, 27, 32, 0) 38%, rgba(43, 27, 32, .8) 64%, rgba(43, 27, 32, .92) 100%); } /* taste-skill-ignore: scrim over the photo */
  .statement p { margin-left: 0; font-size: 24px; }
  .dishes-head { display: block; }
  .dish-cols { margin-left: 0; grid-template-columns: 1fr; }
  .dish-list li { grid-template-columns: 56px 1fr; column-gap: 16px; }
  .bullet, .tab { width: 56px; }
  .tab b { font-size: 28px; }
  .tab-e b { font-size: 36px; }
  .need { margin-left: 0; }
  .tables-in { grid-template-columns: 1fr; }
  .frame { justify-self: start; width: 100%; margin-top: 32px; grid-row: 2; }
  .plates { display: flex; gap: 6px 20px; flex-wrap: wrap; margin-top: 28px; }
  .plates li { flex: none; }
  .plates button { width: auto; font-size: 22px; }
  .tables-copy { grid-row: 1; }
  .room { display: block; }
  .room h2 { margin-bottom: 32px; }
  .room-a { margin-right: 15% !important; }
  .room-copy { margin-top: 40px; }
  .room-b { margin: 48px 0 0 30%; }
  .visit-grid { grid-template-columns: 1fr; }
  .address { white-space: normal; font-size: clamp(52px, 15vw, 96px); }
  .foot { padding-bottom: 104px; }
  .bar { display: flex; }
}
