/* ==========================================================================
   TIERRA — Kay Pacha, el mundo que caminamos.
   La hoja del logo proyecta su sombra sobre un muro encalado de Sucre.
   Página clara de cal y tinta; de noche, la casa se oscurece.
   Tipografía geométrica fina como el logo, con texto en serif ligera.
   ========================================================================== */
:root {
  color-scheme: light;
  --bg: #e8e7e1;          /* cal de los muros de Sucre */
  --bg-2: #deddd4;
  --bg-3: #d0cec3;
  --fg: #161512;          /* tinta del logo */
  --fg-2: #4b4842;
  --fg-3: #77736a;
  --accent: #36502a;      /* hoja madura */
  --on-accent: #eeede7;
  --night: #121410;       /* la casa de noche */
  --night-2: #1b1e18;
  --night-fg: #e9e8e2;
  --line: rgba(22, 21, 18, 0.14);
  --line-strong: rgba(22, 21, 18, 0.38);
  --field-bg: rgba(22, 21, 18, 0.045);
  --hover-bg: rgba(22, 21, 18, 0.04);
  --nav-bg: rgba(232, 231, 225, 0.86);
  --menu-bg: rgba(232, 231, 225, 0.97);
  --cursor-ring: rgba(22, 21, 18, 0.45);
  --open: #4f8a34;
  --danger: #a3401f;
  --lb-bg: rgba(18, 20, 16, .96);
  --lb-fg: #e9e8e2;

  --f-display: "Jost", "Futura", "Century Gothic", Arial, sans-serif;
  --f-text: "Spectral", Georgia, "Times New Roman", serif;
  --t-md: 1.125rem;
}
body { font-weight: 300; }
h1, h2, h3 { font-weight: 250; letter-spacing: 0.01em; line-height: 1; }
.btn { font-family: var(--f-display); font-weight: 400; letter-spacing: .08em; text-transform: uppercase; font-size: .8125rem; }
.btn--lg { font-size: .875rem; }
.leafmark { width: 30px; height: 40px; fill: none; stroke: var(--fg); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nav__word { font-family: var(--f-display); font-weight: 300; letter-spacing: .32em; text-transform: uppercase; font-size: 1.05rem; }
.loader img { animation: sway 2.4s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding-block: 120px clamp(32px, 7vh, 72px); }
.hero__wrap { display: grid; gap: clamp(16px, 3vh, 30px); }
.hero__addr { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .24em; font-size: .8125rem; color: var(--fg-2); }
.hero__title { font-size: clamp(3.6rem, 10.5vw, 10.5rem); font-weight: 200; line-height: .92; letter-spacing: -0.01em; max-width: 9.5em; }
.hero__title span { display: inline-block; }
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.hero__lede { max-width: 38ch; color: var(--fg-2); font-size: 1.1875rem; }
.hero__cta { display: grid; gap: 14px; justify-items: start; }
.hero__hint { position: absolute; top: calc(100px + env(safe-area-inset-top, 0px)); right: max(var(--gutter), env(safe-area-inset-right, 0px)); font-style: italic; font-size: .9375rem; color: var(--fg-3); transition: opacity .8s; }
.hero__hint.is-gone { opacity: 0; }

/* ---------------------------------------------------------------- la casa */
.house { background: var(--bg); padding-block: 16vh 12vh; }
.house__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.house__img { grid-column: 1 / span 5; margin: 0; }
.house__img .shot { aspect-ratio: 6 / 7; }
.house__text { grid-column: 7 / span 6; display: grid; gap: 20px; }
.house__text h2 { font-size: clamp(2.4rem, 4.6vw, 4.4rem); }
.house__text > p { color: var(--fg-2); max-width: 52ch; }
.house__facts { margin: 10px 0 0; border-top: 1px solid var(--line); }
.house__facts div { display: grid; grid-template-columns: 8rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.house__facts dt { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; color: var(--fg-3); padding-top: 4px; }
.house__facts dd { margin: 0; }

/* ---------------------------------------------------------------- platos */
.dishes { background: var(--bg); padding-block: 8vh 16vh; }
.dishes__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; margin-bottom: 7vh; }
.dishes__head h2 { grid-column: 1 / span 6; font-size: clamp(3.6rem, 9vw, 8.6rem); font-weight: 200; }
.dishes__head p { grid-column: 8 / span 5; color: var(--fg-2); }
.dishes__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6vh 24px; }
.dish { margin: 0; display: grid; gap: 14px; align-content: start; align-self: start; }
.dish .shot { aspect-ratio: 1; }
.dish--a { grid-column: 1 / span 5; }
.dish--b { grid-column: 7 / span 5; margin-top: 16vh; }
.dish--c { grid-column: 2 / span 4; }
.dish--d { grid-column: 8 / span 5; margin-top: 10vh; }
.dish figcaption { display: grid; gap: 2px; padding-top: 12px; border-top: 1px solid var(--line-strong); }
.dish figcaption span { font-family: var(--f-display); font-weight: 300; font-size: 1.5rem; line-height: 1.2; }
.dish figcaption small { color: var(--fg-3); font-size: .9375rem; }

/* ---------------------------------------------------------------- macerados y noche */
.macer, .night { background: var(--night); color: var(--night-fg); --fg: var(--night-fg); --fg-2: #b5b3aa; --fg-3: #85837a; --line: rgba(233,232,226,.14); --line-strong: rgba(233,232,226,.35); --accent: #a9c98a; --on-accent: #121410; --cursor-ring: rgba(233,232,226,.4); }
.macer { padding-block: 16vh 10vh; }
.macer__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.macer__text { grid-column: 1 / span 5; display: grid; gap: 20px; }
.macer__text h2 { font-size: clamp(2.6rem, 5.4vw, 5rem); }
.macer__text > p { color: var(--fg-2); max-width: 44ch; }
.macer__note { font-style: italic; color: var(--accent) !important; }
.macer__img { grid-column: 7 / span 6; margin: 0; }
.macer__img .shot { aspect-ratio: 1.03; background: var(--night-2); }

.night { padding-block: 10vh 16vh; }
.night__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.night__text { grid-column: 1 / span 5; display: grid; gap: 20px; justify-items: start; }
.night__text h2 { font-size: clamp(2.8rem, 6vw, 5.6rem); font-weight: 200; }
.night__text > p:not(.status) { color: var(--fg-2); max-width: 44ch; }
.week { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.week li { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; padding: 8px 10px; border: 1px solid var(--line-strong); }
.week li.is-off { opacity: .4; text-decoration: line-through; }
.week li.is-today { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.dial { grid-column: 7 / span 6; max-width: 520px; width: 100%; justify-self: center; }
.dial svg { width: 100%; height: auto; display: block; overflow: visible; }
.dial .ring { fill: none; stroke: rgba(233,232,226,.18); stroke-width: 1; }
.dial .tick { stroke: rgba(233,232,226,.35); stroke-width: 1; }
.dial .tick.major { stroke: rgba(233,232,226,.7); stroke-width: 1.5; }
.dial .num { fill: #85837a; font: 400 13px var(--f-display); letter-spacing: .06em; }
.dial .service { fill: none; stroke: var(--accent); stroke-width: 14; stroke-linecap: butt; }
.dial .hand { stroke: var(--night-fg); stroke-width: 1.5; }
.dial .hand-dot { fill: var(--night-fg); }
.dial .center-t { fill: var(--night-fg); font: 200 64px var(--f-display); font-variant-numeric: tabular-nums; }
.dial .center-s { fill: #b5b3aa; font: 400 13px var(--f-display); letter-spacing: .2em; text-transform: uppercase; }
.dial .svc-l { fill: var(--accent); font: 400 13px var(--f-display); letter-spacing: .08em; }

/* ---------------------------------------------------------------- visítanos */
.visit { background: var(--bg); padding-block: 14vh 8vh; }
.visit__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.visit h2 { grid-column: 1 / span 4; font-size: clamp(2.6rem, 5.4vw, 5rem); }
.visit__facts { grid-column: 6 / span 7; margin: 0; border-top: 1px solid var(--line); }
.visit__facts > div { display: grid; grid-template-columns: 9rem 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.visit__facts dt { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; color: var(--fg-3); padding-top: 5px; }
.visit__facts dd { margin: 0; }
.visit__facts a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.visit__facts a:hover { border-color: var(--accent); }

/* ---------------------------------------------------------------- reservar */
.reserve { background: var(--bg); padding-block: 8vh 14vh; }
.reserve__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.reserve__text { grid-column: 1 / span 4; display: grid; gap: 18px; position: sticky; top: 110px; }
.reserve__text h2 { font-size: clamp(2.6rem, 5vw, 4.6rem); }
.reserve__text > p:not(.form__hours) { color: var(--fg-2); }
.reserve__form { grid-column: 6 / span 7; background: var(--bg-2); padding: clamp(22px, 3.2vw, 46px); }
.form__done-title { font-weight: 250; }

/* ---------------------------------------------------------------- pie */
.foot { background: var(--bg); padding-block: 4vh calc(28px + env(safe-area-inset-bottom, 0px)); }
.foot__word { font-family: var(--f-display); font-weight: 200; text-transform: uppercase; letter-spacing: .28em; padding-left: .28em; font-size: clamp(3.4rem, 15vw, 15rem); line-height: 1; text-align: center; margin-bottom: 6vh; color: var(--fg); }
.family__mark { width: 44px; height: 44px; fill: none; stroke: var(--accent); stroke-width: .3; }
.family strong { font-weight: 300; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1000px) {
  .house__img { grid-column: 1 / span 6; }
  .house__text { grid-column: 1 / -1; }
  .dishes__head h2, .dishes__head p { grid-column: 1 / -1; }
  .macer__text, .macer__img { grid-column: 1 / -1; }
  .night__text, .dial { grid-column: 1 / -1; }
  .visit h2, .visit__facts { grid-column: 1 / -1; }
  .reserve__text { grid-column: 1 / -1; position: static; }
  .reserve__form { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .hero__hint { top: auto; bottom: 52%; left: 50%; right: auto; transform: translateX(-50%); }
  .house__img { grid-column: 1 / -1; }
  .dishes__grid { grid-template-columns: 1fr 1fr; gap: 32px 14px; }
  .dish--a, .dish--b, .dish--c, .dish--d { grid-column: auto; margin-top: 0; }
  .dish--b, .dish--d { margin-top: 48px; }
  .dish figcaption span { font-size: 1.15rem; }
  .house__facts div, .visit__facts > div { grid-template-columns: 1fr; gap: 4px; }
}
