/* Tannour Bakehouse. Cream, cocoa, ember. The oven arch is the motif. */
:root {
  --cream: #FBF3E6;
  --cocoa: #3A2116;
  --ember: #E08A3C;
  --ember-deep: #B85F1F;
  --ember-hot: #F6C27A;
  --dough: #F4DDB8;
  --blister: #B8692C;
  --crust: #D98B3E;
  --zaatar: #4F4A22;
  --clay: #B9774A;
  --cavity: #1F110A;
  --heat: rgba(246, 194, 122, .55);

  --page: #FBF3E6;
  --display: "Fraunces", Georgia, serif;
  --text: "Instrument Sans", system-ui, sans-serif;
  --gutter: clamp(16px, 4.5vw, 56px);
  --arch: 999px 999px 0 0;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --page: #1A100B;
  --dough: #EBCFA3;
  --cavity: #170C07;
  color-scheme: dark;
}

/* One surface per room. */
.s-hero   { --s-bg: #FBF3E6; --s-ink: #3A2116; --s-muted: #6E4B39; --s-accent: #9A4A12; }
.s-oven   { --s-bg: #3A2116; --s-ink: #FBF3E6; --s-muted: #D8C0A8; --s-accent: #F0A15A; }
.s-bakes  { --s-bg: #F3E0C3; --s-ink: #3A2116; --s-muted: #654330; --s-accent: #8E4410;
            --f-cream: #FBF3E6; --f-sand: #E6C79B; }
.s-gather { --s-bg: #E08A3C; --s-ink: #2A170E; --s-muted: #3A2116; --s-accent: #2A170E;
            --slip-bg: #FBF3E6; --slip-ink: #3A2116; --slip-muted: #6E4B39; }
.s-visit  { --s-bg: #EBD2B5; --s-ink: #3A2116; --s-muted: #5E3E2C; --s-accent: #8E4410; }
.s-foot   { --s-bg: #2A170E; --s-ink: #F4E6D3; --s-muted: #CDB59C; --s-accent: #F0A15A; }

:root[data-theme="dark"] .s-hero   { --s-bg: #1A100B; --s-ink: #F5E7D4; --s-muted: #CDB49B; --s-accent: #F0A15A; }
:root[data-theme="dark"] .s-oven   { --s-bg: #3A2116; --s-ink: #FBF3E6; --s-muted: #D8C0A8; --s-accent: #F0A15A; }
:root[data-theme="dark"] .s-bakes  { --s-bg: #261710; --s-ink: #F5E7D4; --s-muted: #C8AE95; --s-accent: #F0A15A;
                                     --f-cream: #4A2E1F; --f-sand: #5C3B27; }
:root[data-theme="dark"] .s-gather { --s-bg: #C9712C; --s-ink: #1A0E07; --s-muted: #24130A; --s-accent: #1A0E07;
                                     --slip-bg: #2A1A12; --slip-ink: #F5E7D4; --slip-muted: #CDB49B; }
:root[data-theme="dark"] .s-visit  { --s-bg: #2F1D14; --s-ink: #F5E7D4; --s-muted: #CDB49B; --s-accent: #F0A15A; }
:root[data-theme="dark"] .s-foot   { --s-bg: #110A06; --s-ink: #F4E6D3; --s-muted: #CDB59C; --s-accent: #F0A15A; }

[class^="s-"], [class*=" s-"] { background: var(--s-bg); color: var(--s-ink); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: #3A2116;
  font-family: var(--text);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.6;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { text-wrap: balance; font-family: var(--display); font-optical-sizing: auto; font-variation-settings: "SOFT" 100; margin: 0; }
p { margin: 0; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

:focus-visible { outline: 3px solid var(--s-ink, #3A2116); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 12px 16px; background: #3A2116; color: #FBF3E6; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Buttons: shaped like the oven mouth. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 26px;
  border-radius: 26px 26px 6px 6px;
  background: var(--s-ink); color: var(--s-bg);
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-ember { background: var(--ember); color: #2A170E; }
:root[data-theme="dark"] .btn-ember { color: #1A100B; }
.btn-ember:hover { background: #E89A52; }

/* Header */
.site-head { position: relative; z-index: 5; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.brand .mark { width: 42px; height: 42px; }
.wordmark { font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: 640; font-size: 1.3rem; letter-spacing: -.01em; }
.wordmark span { font-weight: 400; font-style: italic; color: var(--s-muted); }
.nav-desk { display: none; gap: 4px; }
.nav-desk a, .nav-mob a { white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; text-decoration: none; font-weight: 500; border-radius: 22px 22px 4px 4px; }
.nav-desk a:hover { background: color-mix(in srgb, var(--s-ink) 8%, transparent); }
.head-actions { display: flex; align-items: center; gap: 8px; }
.toggle {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1.5px solid color-mix(in srgb, var(--s-ink) 30%, transparent); border-radius: 50%;
  background: transparent; color: var(--s-ink); cursor: pointer;
}
.toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.toggle .moon { fill: currentColor; stroke: none; }
.toggle .sun { display: none; }
:root[data-theme="dark"] .toggle .sun { display: inline; }
:root[data-theme="dark"] .toggle .moon { display: none; }
.nav-mob { position: relative; }
.nav-mob summary {
  list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center;
  padding: 0 18px; border-radius: 22px 22px 4px 4px; background: var(--s-ink); color: var(--s-bg); font-weight: 600;
}
.nav-mob summary::-webkit-details-marker { display: none; }
.nav-mob nav {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px;
  display: grid; padding: 8px; background: var(--s-bg); border: 1.5px solid var(--s-ink); border-radius: 18px 18px 6px 6px;
}
@media (min-width: 760px) {
  .nav-desk { display: flex; }
  .nav-mob { display: none; }
  .wordmark { white-space: nowrap; }
}

/* Hero */
.hero { padding-block: clamp(24px, 4vw, 56px) clamp(48px, 6vw, 88px); }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: end; }
.hero-copy { padding-bottom: clamp(8px, 4vw, 72px); }
h1 {
  font-size: clamp(2.6rem, 1.4rem + 5vw, 5.4rem);
  font-weight: 560; line-height: 1.02; letter-spacing: -.025em; max-width: 12ch;
}
h1 em { font-style: italic; font-weight: 420; color: var(--s-accent); display: inline-block; padding-bottom: .06em; }
.lede { margin-top: clamp(18px, 2vw, 28px); max-width: 40ch; font-size: clamp(1.06rem, 1rem + .35vw, 1.25rem); color: var(--s-muted); }
.cta-row { margin-top: clamp(24px, 3vw, 36px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.link-quiet { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.hero-art { justify-self: center; width: min(100%, 460px); }
.arch-panel { background: var(--cocoa); border-radius: var(--arch); padding: 10% 6% 0; aspect-ratio: 4 / 4.6; display: flex; align-items: flex-end; }
:root[data-theme="dark"] .arch-panel { background: #3A2116; }
.arch-panel svg { width: 100%; }
.arch-panel { position: relative; }
.arch-panel::after { content: ""; position: absolute; left: -14px; right: -14px; bottom: -12px; height: 12px; border-radius: 6px; background: var(--s-ink); }
.steam { fill: none; stroke: var(--cream); stroke-width: 12; stroke-linecap: round; }
@media (min-width: 760px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
  .hero-art { justify-self: end; }
}
@media (max-width: 759px) {
  .hero-art { width: min(78%, 340px); }
}

/* The oven: the section rises like the dome. */
.oven {
  border-radius: 50% 50% 0 0 / clamp(70px, 11vw, 190px) clamp(70px, 11vw, 190px) 0 0;
  padding-block: clamp(96px, 13vw, 200px) clamp(72px, 9vw, 128px);
}
.oven-grid { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
.oven h2 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.9rem); font-weight: 540; line-height: 1.05; letter-spacing: -.02em; max-width: 14ch; }
.oven-copy > p { margin-top: 20px; max-width: 52ch; color: var(--s-muted); }
.callouts { list-style: none; margin: clamp(28px, 4vw, 44px) 0 0; padding: 0; display: grid; gap: 22px; }
.callouts li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--s-ink) 22%, transparent); }
.callouts h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.2; }
.callouts p { margin-top: 4px; color: var(--s-muted); max-width: 44ch; }
.num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--s-accent); color: var(--s-bg); font-weight: 700; font-size: 1.05rem; }
.diagram { margin: 0; }
.diagram svg { width: 100%; max-width: min(560px, 100%); margin-inline: auto; overflow: visible; }
@media (max-width: 899px) {
  .diagram svg { max-width: 480px; }
}
@media (min-width: 900px) {
  .oven-grid { grid-template-columns: 1fr 1.05fr; }
  .diagram { order: 2; }
}

/* Morning bakes: a shelf of arched windows. */
.bakes { padding-block: clamp(72px, 9vw, 132px); }
.bakes-head { display: grid; gap: 14px; max-width: 640px; }
.bakes h2 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.9rem); font-weight: 540; line-height: 1.05; letter-spacing: -.02em; }
.bakes-head p { color: var(--s-muted); max-width: 46ch; }
.shelf {
  list-style: none; padding: 0; margin: clamp(40px, 6vw, 72px) 0 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 18px;
}
.loaf { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; }
.frame { position: relative; align-self: end; border-radius: var(--arch); display: flex; align-items: flex-end; justify-content: center; padding: 18% 8% 6%; }
.frame::after { content: ""; position: absolute; left: -6px; right: -6px; bottom: -9px; height: 9px; border-radius: 5px; background: var(--s-ink); }
.frame svg { width: 100%; }
.f-cocoa { background: var(--cocoa); }
:root[data-theme="dark"] .f-cocoa { background: #3A2116; }
.f-ember { background: var(--ember); }
.f-cream { background: var(--f-cream); }
.f-sand { background: var(--f-sand); }
.l-bread .frame   { aspect-ratio: 3 / 3.7; }
.l-zaatar .frame  { aspect-ratio: 3 / 3.4; }
.l-baguette .frame{ aspect-ratio: 3 / 4.3; }
.l-fatayer .frame { aspect-ratio: 3 / 3.5; }
.l-pastry .frame  { aspect-ratio: 3 / 3.9; }
.loaf h3 { margin-top: 26px; font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); font-weight: 600; line-height: 1.15; }
.loaf p { margin-top: 6px; color: var(--s-muted); font-size: .95rem; }
.l-pastry { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 18px; }
.l-pastry .frame { grid-column: 1; }
.l-pastry h3, .l-pastry p { grid-column: 2; }
.l-pastry h3 { grid-row: 1; align-self: end; margin: 0 0 4px; }
.l-pastry p { grid-row: 2; }
.also { margin-top: clamp(48px, 6vw, 80px); max-width: 64ch; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--s-muted); padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--s-ink) 22%, transparent); }
.also strong { color: var(--s-ink); font-weight: 600; }
@media (min-width: 700px) {
  .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }
  .l-pastry { grid-column: auto; display: grid; grid-template-columns: none; }
  .l-pastry .frame, .l-pastry h3, .l-pastry p { grid-column: auto; grid-row: auto; }
  .l-pastry h3 { margin: 26px 0 0; align-self: auto; }
  .l-fatayer { grid-column: 1 / span 1; }
}
@media (min-width: 700px) and (max-width: 1079px) {
  .l-fatayer { grid-column: 1 / 2; }
  .l-pastry { grid-column: 2 / 3; }
}
@media (min-width: 1080px) {
  .shelf { grid-template-columns: 1fr 1.18fr .82fr 1fr .95fr; gap: 0 28px; }
  .l-fatayer, .l-pastry { grid-column: auto; }
}

/* Gatherings: the ember band. */
.gather { padding-block: clamp(72px, 9vw, 128px); }
.gather-grid { display: grid; gap: clamp(40px, 6vw, 88px); align-items: center; }
.gather h2 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4.2rem); font-weight: 600; line-height: 1.03; letter-spacing: -.025em; max-width: 13ch; }
.gather-copy p { margin-top: 18px; max-width: 46ch; color: var(--s-muted); }
.gather-copy p + p { margin-top: 12px; }
.gather-copy .btn { margin-top: 30px; }
.slip {
  margin: 0; background: var(--slip-bg); color: var(--slip-ink);
  padding: clamp(24px, 3vw, 40px); border-radius: 4px;
  box-shadow: 0 18px 40px -22px rgba(42, 23, 14, .55);
  max-width: 460px; justify-self: center; width: 100%;
  border-top: 2px dashed color-mix(in srgb, var(--slip-ink) 35%, transparent);
}
.slip figcaption { font-family: var(--display); font-style: italic; font-size: 1.15rem; color: var(--slip-muted); }
.slip blockquote { margin: 18px 0 0; font-size: 1.05rem; }
.slip ul { margin: 12px 0; padding: 0; list-style: none; }
.slip li { padding: 8px 0; border-bottom: 1px dotted color-mix(in srgb, var(--slip-ink) 30%, transparent); }
.slip-note { margin-top: 18px; font-size: .9rem; color: var(--slip-muted); }
@media (min-width: 900px) {
  .gather-grid { grid-template-columns: 1.15fr .85fr; }
  .slip { transform: rotate(-1.4deg); }
}

/* Visit: an arched doorway. */
.visit { padding-block: clamp(72px, 9vw, 132px) clamp(88px, 10vw, 150px); }
.door {
  position: relative; max-width: 680px; margin-inline: auto; text-align: center;
  border: 2px solid var(--s-ink); border-bottom: 0;
  border-radius: 50% 50% 0 0 / clamp(110px, 16vw, 200px) clamp(110px, 16vw, 200px) 0 0;
  padding: clamp(76px, 9vw, 112px) clamp(20px, 5vw, 64px) clamp(40px, 5vw, 64px);
}
.door::after { content: ""; position: absolute; left: -24px; right: -24px; bottom: -10px; height: 10px; border-radius: 5px; background: var(--s-ink); }
.door h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); font-weight: 560; line-height: 1.05; letter-spacing: -.02em; }
.facts { margin: clamp(28px, 4vw, 40px) 0 clamp(28px, 4vw, 40px); display: grid; gap: 0; text-align: left; }
.facts div { display: grid; grid-template-columns: minmax(0, 11ch) 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid color-mix(in srgb, var(--s-ink) 22%, transparent); }
.facts div:last-child { border-bottom: 1px solid color-mix(in srgb, var(--s-ink) 22%, transparent); }
.facts dt { color: var(--s-muted); font-size: .95rem; }
.facts dd { margin: 0; font-weight: 600; }
@media (max-width: 479px) {
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .door::after { left: -8px; right: -8px; }
}

/* Footer */
.site-foot { padding-block: 48px; }
.foot-row { display: grid; gap: 20px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand .mark { width: 44px; height: 44px; }
.foot-name { font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: 1.4rem; }
.foot-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--s-accent); text-underline-offset: 5px; }
.credit { color: var(--s-muted); font-size: .9rem; }
@media (min-width: 760px) {
  .foot-row { grid-template-columns: 1fr auto auto; gap: 40px; }
}

@media (prefers-reduced-motion: no-preference) {
  .steam { stroke-dasharray: 1; stroke-dashoffset: 1; animation: rise 1.6s .4s cubic-bezier(.3, .7, .2, 1) forwards; }
  .steam-2 { animation-delay: .7s; }
  @keyframes rise { to { stroke-dashoffset: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
