/* =========================================================
   57. — STYLESHEET
   1. Tokens          6. Menu + carousel
   2. Base            7. 57 Stories
   3. Utilities       8. Building 57
   4. Header + nav    9. Visit
   5. Hero           10. Footer
                     11. Motion + accessibility
   ========================================================= */


/* 0. FONTS (self-hosted, SIL Open Font License, see assets/fonts/)
   Variable fonts: one file covers every weight.
   ========================================================= */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/lora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/lora-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Lora";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/lora-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Lora";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/lora-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* 1. TOKENS
   ========================================================= */

:root {
  /* Color: "Forest + Yolk" (see CLAUDE.md) */
  --paper: #F4F0E8;
  --cream: #EAE1D2;
  --cream-deep: #DED3C1;      /* image placeholders on cream */
  --ink: #171717;
  --forest: #243A2E;
  --forest-deep: #1A2B21;
  --muted: #67635B;
  --sage: #C9D3C4;
  --sage-line: rgba(201, 211, 196, 0.28);
  --yolk: #E2A73B;
  --rule: rgba(23, 23, 23, 0.16);

  /* Type */
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;

  --fs-13: 0.8125rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-24: 1.5rem;
  --fs-section: clamp(3rem, 7vw, 6.5rem);   /* h2 of Menu, Stories, Visit */

  /* Layout */
  --maxw: 1320px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --col-gap: clamp(16px, 2vw, 32px);
  --header-h: 72px;
  --section-pad: clamp(88px, 11vw, 168px);

  --ease-out: cubic-bezier(0.2, 0.7, 0.1, 1);
}


/* 2. BASE
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-16);
  line-height: 1.55;
  font-optical-sizing: auto;
  font-variant-numeric: lining-nums;   /* keep "57" and prices even in the serif too */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure, dl, dd, ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
}

.stories :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--yolk);
}


/* 3. UTILITIES + SHARED COMPONENTS
   ========================================================= */

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* The yolk dot in every "57." */
.dot {
  color: var(--yolk);
}

/* Round = something you can press. Content blocks stay square. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--fs-16);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.button:hover {
  background: var(--forest);
}

.button--yolk {
  background: var(--yolk);
  color: var(--ink);
}

.button--yolk:hover {
  background: var(--paper);
}

.text-link {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition: text-decoration-color 0.2s;
}

.text-link:hover {
  text-decoration-color: var(--yolk);
  text-decoration-thickness: 2px;
}

.round-button {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  transition: background-color 0.2s, color 0.2s, opacity 0.2s;
}

.round-button svg {
  width: 18px;
  height: 18px;
}

.round-button:hover:not(:disabled) {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.round-button:disabled {
  opacity: 0.28;
  cursor: default;
}

.section-title {
  font-size: var(--fs-section);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

/* Missing content. Add ?preview=placeholders to the URL to highlight it. */
[data-placeholder] {
  color: var(--muted);
}

.show-placeholders [data-placeholder] {
  background: #FFE38A;
  color: var(--ink);
  outline: 1px dashed var(--ink);
}


/* 4. HEADER + NAVIGATION
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}

.site-header.is-scrolled {
  background: rgba(244, 240, 232, 0.92);
  border-bottom-color: var(--rule);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
}

.wordmark {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 1;
  text-decoration: none;
}

.site-nav {
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  gap: clamp(24px, 3.4vw, 52px);
}

.site-nav a {
  display: inline-block;
  padding-block: 10px;
  font-size: var(--fs-13);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(var(--ink), var(--ink)) no-repeat left 85% / 0 1px;
  transition: background-size 0.25s var(--ease-out);
}

.site-nav a:hover {
  background-size: 100% 1px;
}

.site-header__tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: clamp(24px, 3.4vw, 52px);
}

.lang-switch {
  display: flex;
  align-items: center;
}

.lang-switch button {
  min-width: 40px;
  height: 40px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: var(--fs-13);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.lang-switch button + button::before {
  content: "/";
  display: inline-block;   /* keeps the active underline off the slash */
  margin-right: 8px;
  color: var(--rule);
}

.lang-switch button[aria-pressed="true"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--yolk);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.nav-toggle {
  display: none;
}

@media (max-width: 760px) {
  :root {
    --header-h: 64px;
  }

  .site-header__tools {
    margin-left: auto;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    width: 48px;
    height: 48px;
    margin-right: -10px;
    padding: 0 10px;
    border: 0;
    background: none;
  }

  .nav-toggle__bar {
    display: block;
    width: 28px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.3s var(--ease-out);
  }

  .nav-open .nav-toggle__bar:first-child {
    transform: translateY(4.25px) rotate(45deg);
  }

  .nav-open .nav-toggle__bar:last-child {
    transform: translateY(-4.25px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    margin: 0;
    padding: 40px var(--gutter);
    background: var(--paper);
    border-top: 1px solid var(--rule);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s, visibility 0s 0.25s;
  }

  .nav-open .site-nav {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.25s;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 4px;
  }

  .site-nav a {
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    text-transform: none;
    background: none;
  }

  .nav-open body {
    overflow: hidden;
  }
}


/* 5. HERO
   ========================================================= */

.hero {
  overflow: hidden;
  padding-top: clamp(24px, 4vw, 56px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 28px;
}

.hero__title {
  font-size: clamp(2.75rem, 11.5vw, 5.25rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero__line {
  display: block;
}

.hero__line:last-child {
  color: var(--forest);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.hero__intro {
  max-width: 34ch;
  font-size: var(--fs-18);
  line-height: 1.5;
}

.hero__photo {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__photo--main {
  aspect-ratio: 4 / 5;
  max-height: 78svh;
}

.hero__mark {
  overflow: hidden;
  font-size: clamp(9rem, 52vw, 28rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.075em;
  margin-top: -0.08em;
  margin-bottom: -0.1em;
  pointer-events: none;
}

.hero__mark-inner {
  display: inline-block;
}

@media (min-width: 1024px) {
  .hero {
    padding-top: clamp(40px, 5vw, 80px);
  }

  /* Three rows that never share space: title, copy, then the 57.
     At least one screen tall; on short screens the hero simply grows
     instead of squeezing elements on top of each other. */
  .hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto 1fr;
    column-gap: var(--col-gap);
    row-gap: 0;
    min-height: calc(100svh - var(--header-h) - clamp(40px, 5vw, 80px));
  }

  /* Sized so the longest line ("Tvoja rečenica.") stays clear of the photo */
  .hero__title {
    grid-column: 1 / 7;
    grid-row: 1;
    font-size: clamp(3.25rem, min(5.4vw, 11svh), 6rem);
  }

  .hero__copy {
    grid-column: 1 / 5;
    grid-row: 2;
    margin-top: clamp(28px, 3vw, 44px);
  }

  /* One tall photo filling the right half, top to bottom of the hero.
     The image is positioned absolutely so it never stretches the hero;
     it simply fills whatever height the left column needs. */
  .hero__photo--main {
    grid-column: 7 / 13;
    grid-row: 1 / 4;
    aspect-ratio: auto;
    max-height: none;
    min-height: 460px;
  }

  .hero__photo--main img {
    position: absolute;
    inset: 0;
  }

  /* Bottom-left, below the copy. Its baseline lines up with the bottom of the photo. */
  .hero__mark {
    grid-column: 1 / 7;
    grid-row: 3;
    align-self: end;
    font-size: clamp(8rem, min(23vw, 38svh), 22rem);
    margin: 40px 0 -0.12em;
  }
}

/* Short laptop screens (e.g. 1366×657, 1536×730): tighten spacing so the
   whole hero, including the 57., fits on the first screen. */
@media (min-width: 1024px) and (max-height: 960px) {
  .hero {
    padding-top: 32px;
  }

  .hero__grid {
    min-height: calc(100svh - var(--header-h) - 32px);
  }

  .hero__title {
    font-size: clamp(3rem, min(5vw, 10svh), 5rem);
  }

  .hero__copy {
    margin-top: 24px;
    gap: 20px;
  }

  .hero__mark {
    font-size: clamp(7rem, min(23vw, 30svh), 16rem);
    margin-top: 24px;
  }
}


/* 6. MENU + CAROUSEL
   ========================================================= */

.menu {
  padding-top: var(--section-pad);
}

.menu__intro {
  display: grid;
  gap: 20px;
  padding-bottom: clamp(48px, 6vw, 88px);
}

.menu__title {
  font-size: var(--fs-section);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.menu__lede {
  max-width: 30ch;
  font-size: var(--fs-24);
  line-height: 1.35;
}

.menu__note {
  max-width: 48ch;
  color: var(--muted);
  font-size: var(--fs-14);
}

@media (min-width: 1024px) {
  /* The lede sits on the same baseline as "Menu"; the note goes underneath */
  .menu__intro {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    row-gap: 16px;
  }

  .menu__title {
    grid-column: 1 / 7;
    grid-row: 1;
    align-self: last baseline;
  }

  .menu__lede {
    grid-column: 7 / 12;
    grid-row: 1;
    align-self: last baseline;
  }

  .menu__note {
    grid-column: 7 / 12;
    grid-row: 2;
  }
}

.category {
  padding-block: clamp(56px, 7vw, 104px);
}

.category:nth-child(odd) {
  background: var(--cream);
}

.category:nth-child(odd) .product__media {
  background: var(--cream-deep);
}

.category__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px var(--col-gap);
  padding-bottom: 24px;
  margin-bottom: clamp(28px, 3vw, 40px);
  position: relative;
}

.category__head::after {
  content: "";
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0;
  height: 1px;
  background: var(--rule);
}

.category__title {
  grid-column: 1 / -1;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.5rem, 5.4vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.category__facts {
  font-size: var(--fs-18);
  line-height: 1.4;
}

.category__controls {
  display: flex;
  gap: 10px;
}

@media (min-width: 1024px) {
  .category__head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .category__title {
    grid-column: 1 / 7;
  }

  .category__facts {
    grid-column: 7 / 11;
  }

  .category__controls {
    grid-column: 11 / 13;
    justify-self: end;
  }
}

@media (max-width: 639px) {
  .category__controls {
    display: none;
  }
}

.carousel__track {
  --gap: clamp(14px, 1.8vw, 28px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 76%;
  gap: var(--gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2));
  scroll-padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2));
  padding-bottom: 8px;
  scrollbar-width: none;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__track:focus-visible {
  outline-offset: -2px;
}

@media (min-width: 640px) {
  .carousel__track {
    grid-auto-columns: calc((100% - 2 * var(--gap)) / 2.5);
  }
}

@media (min-width: 1024px) {
  .carousel__track {
    grid-auto-columns: calc((100% - 3 * var(--gap)) / 4);
  }
}

.product {
  scroll-snap-align: start;
  min-width: 0;
}

.product__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--cream);
}

.product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

.product__name {
  font-size: var(--fs-18);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.product__price {
  flex-shrink: 0;
  font-size: var(--fs-14);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.product__desc {
  max-width: 36ch;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.product__extra {
  margin-top: 8px;
  font-size: var(--fs-14);
}

.product__note {
  margin-top: 12px;
  font-size: var(--fs-13);
  color: var(--muted);
}

/* Jar label: set like a nutrition panel on packaging */
.label {
  margin-top: 16px;
  max-width: 260px;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-size: var(--fs-14);
  font-variant-numeric: tabular-nums;
}

.label__head {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--ink);
  font-size: var(--fs-13);
  font-weight: 700;
}

.label__row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}

.label__row + .label__row {
  border-top: 1px solid var(--rule);
}

.label dd {
  font-weight: 500;
}


/* 7. 57 STORIES
   ========================================================= */

.stories {
  background: var(--forest);
  color: var(--paper);
  padding-block: var(--section-pad);
}

.stories__grid {
  display: grid;
  gap: 48px;
}

.stories__title {
  font-size: var(--fs-section);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.stories__lede {
  margin-top: 28px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.625rem, 3vw, 2.5rem);
  line-height: 1.2;
  color: var(--sage);
}

.stories__lede span {
  display: block;
}

.stories__how {
  max-width: 50ch;
  margin-top: 24px;
  font-size: var(--fs-18);
  color: var(--sage);
}

.stories__tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--sage-line);
  border-radius: 999px;
}

.tab {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--sage);
  font-size: var(--fs-16);
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
}

.tab:hover {
  color: var(--paper);
}

.tab[aria-selected="true"] {
  background: var(--yolk);
  color: var(--ink);
}

.story {
  margin-top: clamp(32px, 4vw, 48px);
}

.story:focus-visible {
  outline-offset: 12px;
}

.story__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: var(--fs-14);
  color: var(--sage);
}

.story__sample {
  color: var(--yolk);
  font-weight: 500;
}

.story__title {
  margin-top: 8px;
  font-size: var(--fs-24);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.story__text {
  max-width: 40em;
  margin-top: 24px;
  font-family: var(--serif);
  font-size: clamp(1.375rem, 2.3vw, 1.875rem);
  line-height: 1.6;
}

/* One sentence = one visitor. Alternating tones show the hand-offs. */
.sentence {
  border-radius: 2px;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28em;
  transition: text-decoration-color 0.2s, color 0.2s;
}

.sentence:nth-child(even) {
  color: var(--sage);
}

.sentence:hover,
.sentence.is-active {
  color: var(--paper);
  text-decoration-color: var(--yolk);
}

.sentence__n {
  margin-right: 0.2em;
  font-family: var(--sans);
  font-size: 0.42em;
  font-weight: 700;
  color: var(--yolk);
  vertical-align: 0.9em;
  line-height: 0;
}

/* The empty line waiting for the next person */
.story__next {
  display: inline-block;
  position: relative;
  width: 3.2em;
  height: 1em;
  margin-left: 0.3em;
  border-bottom: 2px solid var(--yolk);
  vertical-align: -0.12em;
}

.story__next::before {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 0.12em;
  width: 2px;
  height: 0.95em;
  background: var(--yolk);
  animation: caret 1.1s steps(1) infinite;
}

@keyframes caret {
  50% { opacity: 0; }
}

.story__info {
  min-height: 3em;
  margin-top: 24px;
  font-size: var(--fs-14);
  color: var(--sage);
}

.story__nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  font-size: var(--fs-14);
  color: var(--sage);
}

.story__nav .round-button {
  color: var(--paper);
  border-color: var(--sage-line);
}

.story__nav .round-button:hover:not(:disabled) {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--forest);
}

.stories__film-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--forest-deep);
}

.stories__film-frame img,
.stories__film-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stories__film-caption {
  margin-top: 14px;
  font-size: var(--fs-14);
  color: var(--sage);
}

.stories__close {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-top: clamp(24px, 5vw, 72px);
  padding-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--sage-line);
  text-align: center;
}

.stories__statement {
  max-width: 22ch;
  font-family: var(--serif);
  font-size: clamp(1.875rem, 4vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

@media (min-width: 1024px) {
  .stories__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    row-gap: 56px;
  }

  .stories__head,
  .stories__reader {
    grid-column: 1 / 8;
  }

  .stories__film {
    grid-column: 9 / 13;
    grid-row: 1 / 3;
    align-self: start;
  }

  .stories__close {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1023px) {
  .stories__film {
    max-width: 460px;
  }
}


/* 8. BUILDING 57
   ========================================================= */

.building {
  padding-block: clamp(112px, 14vw, 208px);
}

.building__inner {
  display: grid;
  gap: 40px;
}

.building__title {
  max-width: 18ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 5.2vw, 4.75rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.building__body {
  max-width: 50ch;
  font-size: var(--fs-18);
  line-height: 1.65;
}

.building__body p + p {
  margin-top: 1em;
}

.building__sign {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-block: 32px 20px;
  font-size: var(--fs-16);
  color: var(--muted);
}

.building__sign::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}

@media (min-width: 1024px) {
  .building__inner {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    row-gap: 56px;
  }

  .building__title {
    grid-column: 3 / 12;
  }

  .building__body {
    grid-column: 7 / 12;
  }
}


/* 9. VISIT
   ========================================================= */

.visit {
  background: var(--cream);
  padding-block: var(--section-pad);
}

.visit__grid {
  display: grid;
  gap: 56px;
}

.visit__title {
  font-size: var(--fs-section);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.visit__lede {
  max-width: 38ch;
  margin-top: 24px;
  font-size: var(--fs-18);
}

.visit__photo {
  margin-top: 40px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--cream-deep);
}

.visit__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.details {
  border-bottom: 1px solid var(--rule);
}

.details__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding-block: 20px;
  border-top: 1px solid var(--rule);
}

.details dt {
  font-size: var(--fs-14);
  color: var(--muted);
}

.details dd {
  font-size: var(--fs-18);
  line-height: 1.45;
}

.details dd a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.details dd a:hover {
  text-decoration-color: var(--forest);
}

.hours {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  column-gap: 32px;
  row-gap: 2px;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

.visit__actions {
  margin-top: 32px;
}

.visit__map {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-top: 32px;
  border: 0;
  background: var(--cream-deep);
}

@media (min-width: 640px) {
  .details__row {
    grid-template-columns: 9rem minmax(0, 1fr);
    gap: 24px;
  }

  .details dt {
    padding-top: 0.2em;
  }
}

@media (min-width: 1024px) {
  .visit__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
  }

  .visit__lead {
    grid-column: 1 / 7;
  }

  .visit__info {
    grid-column: 8 / 13;
    align-self: end;
  }
}


/* 10. FOOTER
   ========================================================= */

.site-footer {
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding-top: clamp(64px, 8vw, 112px);
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 32px;
}

.site-footer__statement {
  max-width: 24ch;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.25;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
}

.site-footer__links a {
  display: inline-block;
  padding-block: 10px;
  font-size: var(--fs-13);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sage);
  transition: color 0.2s;
}

.site-footer__links a:hover {
  color: var(--paper);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(40px, 5vw, 72px);
  font-size: var(--fs-13);
  color: rgba(244, 240, 232, 0.6);
}

.site-footer__mark {
  margin-top: clamp(16px, 3vw, 40px);
  margin-bottom: -0.22em;
  font-size: clamp(7rem, 27vw, 24rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.075em;
  user-select: none;
}


/* 11. MOTION + ACCESSIBILITY
   ========================================================= */

/* The page's one orchestrated moment: the hero arrives on load. */
.js .hero__mark-inner {
  transform: translateY(102%);
}

.js .reveal {
  clip-path: inset(0 0 100% 0);
}

.is-ready .hero__mark-inner {
  transform: none;
  transition: transform 1.1s var(--ease-out) 0.15s;
}

.is-ready .reveal {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.1s cubic-bezier(0.65, 0, 0.15, 1);
}


@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .hero__mark-inner,
  .js .reveal {
    transform: none;
    clip-path: none;
    transition: none;
  }

  .story__next::before {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
