/* ==========================================================================
   components.css — the b-* components.
   One display face big, one quiet text face, hairline rules, square corners.
   ========================================================================== */

/* ---------------------------------------------------------------- layout -- */
.b-wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.b-section {
  padding-block: var(--section-y);
}
.b-section--tight-top {
  padding-top: calc(var(--section-y) * 0.5);
}

.b-grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: clamp(16px, 2.4vw, 40px);
  row-gap: var(--space-8);
}
@media (min-width: 1024px) {
  .b-grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .b-span-5  { grid-column: span 5; }
  .b-span-6  { grid-column: span 6; }
  .b-span-7  { grid-column: span 7; }
  .b-span-8  { grid-column: span 8; }
  .b-span-12 { grid-column: span 12; }
  .b-col-1-10 { grid-column: 1 / 11; }
}

/* Escape the page gutter to the viewport edge (inside a .b-wrap item). */
.b-bleed {
  margin-inline: calc(-1 * var(--gutter));
}

.b-ratio-4x5   { aspect-ratio: 4 / 5; }
.b-ratio-3x4   { aspect-ratio: 3 / 4; }
.b-ratio-1x1   { aspect-ratio: 1 / 1; }
.b-ratio-16x9  { aspect-ratio: 16 / 9; }
.b-ratio-16x10 { aspect-ratio: 16 / 10; }

/* ------------------------------------------------------------- eyebrow ---- */
.b-eyebrow {
  font-size: var(--step--1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--stone);
}

/* -------------------------------------------------------------- header ---- */
.b-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ui-dur) var(--ease);
}
.b-header.is-scrolled {
  border-bottom-color: var(--line);
}
.b-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: var(--header-h);
}
.b-wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.01em;
}
/* Header wordmark hides while the hero wordmark is on screen, fades in after.
   Gate on scripting so JS-off keeps it visible, and so there is no flash on
   first paint (the hidden state applies before the script runs). */
.b-header__wordmark {
  transition: opacity var(--ui-dur) var(--ease);
}
@media (scripting: enabled) {
  .b-header__wordmark {
    opacity: 0;
  }
  .b-header__wordmark.is-visible {
    opacity: 1;
  }
}
.b-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
}
.b-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 44px;
  font-size: var(--step--1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
}
.b-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.34em;
}
@media (max-width: 700px) {
  .b-nav .b-nav__link {
    display: none;
  }
}

/* --------------------------------------------------------------- button ---- */
.b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding-inline: var(--space-6);
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font-text);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--ui-dur) var(--ease),
    color var(--ui-dur) var(--ease);
}
.b-btn--primary {
  background: var(--cape);
  color: var(--on-cape);
}
.b-btn--primary:hover {
  background: var(--ink);
  text-decoration: none;
}
.b-btn--invert {
  background: var(--paper);
  color: var(--cape);
}
.b-btn--invert:hover {
  background: var(--on-cape);
  text-decoration: none;
}

/* secondary: a text link whose underline thickens on hover */
.b-btn--link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
  padding: 0;
  font-size: var(--step--1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.34em;
  transition: text-decoration-thickness var(--ui-dur) var(--ease);
}
.b-btn--link:hover {
  text-decoration-thickness: 2px;
}

.b-note {
  font-size: var(--step--1);
  color: var(--stone);
}

/* ----------------------------------------------------------------- hero ---- */
/* The signature: a full-width display wordmark, then a split body. */
.b-hero__mark {
  padding: clamp(16px, 2.5vw, 40px) var(--gutter) 0;
}
.b-hero__wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--hero-mark-size);
  line-height: 0.82;
  letter-spacing: -0.035em;
}
.b-hero__body {
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  row-gap: var(--space-7);
  padding-block: clamp(24px, 4vw, 56px) 0;
}
.b-hero__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.b-hero__lead {
  font-size: var(--step-1);
  line-height: 1.3;
  max-width: 30ch;
}
.b-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.b-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 34%;
}
@media (max-width: 1023px) {
  .b-hero__media {
    aspect-ratio: 4 / 5;
    margin-inline: calc(-1 * var(--gutter));
  }
}
@media (min-width: 1024px) {
  .b-hero__body {
    grid-template-columns: repeat(12, 1fr);
    column-gap: clamp(16px, 2.4vw, 40px);
  }
  .b-hero__text {
    grid-column: 1 / 5;
    align-self: end;
  }
  .b-hero__media {
    grid-column: 6 / 13;
    height: 78vh;
    /* bleed off the right edge of the viewport, past the page gutter */
    margin-right: calc(
      -1 * max(var(--gutter), (100vw - var(--wrap)) / 2 + var(--gutter))
    );
  }
}

/* ------------------------------------------------------------ statement ---- */
.b-statement {
  font-family: var(--font-display);
  font-size: var(--statement-size);
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: none;
}

/* -------------------------------------------------------- section head ---- */
.b-section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

/* -------------------------------------------------------------- figure ---- */
.b-figure {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.b-figure__media {
  overflow: hidden;
}
.b-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.b-figure figcaption {
  font-size: var(--step--1);
  color: var(--stone);
}

/* ---------------------------------------------------------------- menu ---- */
.b-menu {
  max-width: 920px;
  border-top: 1px solid var(--line);
}
.b-menu__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  column-gap: var(--space-5);
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}
.b-menu__name {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.05;
}
.b-menu__meta {
  display: inline-flex;
  align-items: baseline;
  gap: clamp(16px, 3vw, 48px);
}
.b-menu__dur {
  font-size: var(--step--1);
  color: var(--stone);
}
.b-menu__price {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-variant-numeric: tabular-nums lining-nums;
}
@media (max-width: 520px) {
  /* Printed-menu feel on phones: name left, price right on the same row,
     duration on its own small line under the name. */
  .b-menu__row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "name price"
      "dur  dur";
    column-gap: var(--space-4);
    row-gap: var(--space-1);
    padding-block: 20px;
    align-items: baseline;
  }
  .b-menu__name { grid-area: name; }
  .b-menu__meta { display: contents; }
  .b-menu__dur { grid-area: dur; }
  .b-menu__price { grid-area: price; text-align: right; }
}

/* --------------------------------------------------------------- quote ---- */
.b-quote {
  max-width: none;
}
.b-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-3);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.b-quote__attr {
  margin-top: var(--space-5);
  font-size: var(--step--1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--stone);
}

/* ---------------------------------------------------------------- info ---- */
.b-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.b-info__name {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.b-info__addr {
  color: var(--stone);
  max-width: 30ch;
}
.b-info__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.b-info__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 44px;
  font-size: var(--step--1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.34em;
}
.b-info__links a:hover {
  text-decoration-thickness: 2px;
}
.b-info__links .b-info__email {
  text-transform: none;
  letter-spacing: 0;
}

/* ----------------------------------------------------------------- cta ---- */
.b-cta {
  background: var(--cape);
  color: var(--on-cape);
}
.b-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-8);
  width: 100%;
  max-width: none;
  padding-inline: var(--gutter);
  padding-block: var(--section-y);
}
.b-cta__title {
  font-size: var(--cta-mark-size);
  line-height: 0.9;
  letter-spacing: -0.03em;
  max-width: none;
}
@media (max-width: 767px) {
  .b-cta__title {
    font-size: 15vw;
  }
}

/* -------------------------------------------------------------- footer ---- */
.b-footer {
  border-top: 1px solid var(--line);
  padding-block: var(--space-8);
}
.b-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-6) var(--space-9);
}
.b-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}
.b-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--step--1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
}
.b-footer__fine {
  font-size: var(--step--1);
  color: var(--stone);
  max-width: 42ch;
}
.b-footer--cape {
  background: var(--cape);
  color: var(--on-cape);
  border-top-color: var(--on-cape-line);
}
.b-footer--cape .b-footer__fine {
  color: var(--on-cape);
}
.b-footer--cape .b-wordmark {
  color: var(--on-cape);
}

/* ------------------------------------------------------------- bookbar ---- */
.b-bookbar {
  display: none;
}
@media (max-width: 860px) {
  .b-bookbar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 40;
    display: flex;
    align-items: center;
    padding: var(--space-3) var(--gutter);
    padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
    background: var(--cape);
    visibility: hidden;
    transform: translateY(115%);
    transition: transform var(--ui-dur) var(--ease),
      visibility 0s linear var(--ui-dur);
  }
  .b-bookbar.is-visible {
    visibility: visible;
    transform: translateY(0);
    transition: transform var(--ui-dur) var(--ease), visibility 0s;
  }
  .b-bookbar__link {
    width: 100%;
  }
}

/* -------------------------------------------------------------- reveal ---- */
/* JS adds .js to <html>; hidden state only exists when JS can reveal it. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
}
.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity var(--reveal-dur) var(--ease),
    transform var(--reveal-dur) var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
