:root {
  color-scheme: light;
  --paper: #eee8dc;
  --paper-light: #f7f3ea;
  --ink: #20231f;
  --ink-soft: #5e625b;
  --line: rgba(32, 35, 31, 0.22);
  --sea: #768a8e;
  --accent: #866849;
  --header-height: 92px;
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 6%, rgba(255, 255, 255, 0.42), transparent 26rem),
    var(--paper);
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--paper-light);
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(100%, 1800px);
  margin: 0 auto;
  padding: 0 28px;
}

.site-header {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: flex-start;
  justify-self: start;
  text-decoration: none;
}

.wordmark-main {
  font-family: Didot, "Bodoni 72", "Times New Roman", serif;
  font-size: clamp(1.75rem, 2.4vw, 2.55rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.wordmark-mark {
  margin: -0.18rem 0 0 0.35rem;
  color: var(--accent);
  font-size: 0.78rem;
}

.place,
.private-link,
.site-footer,
.gesture-hint,
.quote-meta,
.image-caption {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.place {
  margin: 0;
  color: var(--ink-soft);
}

.private-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  justify-self: end;
  padding: 13px 0 13px 18px;
  text-decoration: none;
}

.private-link svg,
.nav-button svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.private-link svg {
  transition: transform 260ms ease;
}

.private-link:hover svg,
.private-link:focus-visible svg {
  transform: translateX(5px);
}

.private-link[data-cloud-status="preparing"] {
  cursor: default;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(360px, 0.72fr);
  min-height: calc(100svh - var(--header-height) - 59px);
  border-bottom: 1px solid var(--line);
}

.landscape {
  position: relative;
  min-height: 610px;
  margin-right: 0;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: #a9b3b0;
}

.landscape img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 57% center;
  transform: scale(1.015);
  animation: arrive 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.image-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(238, 232, 220, 0.1), transparent 34%, rgba(26, 29, 25, 0.08)),
    linear-gradient(90deg, transparent 72%, rgba(238, 232, 220, 0.12));
  mix-blend-mode: soft-light;
}

.image-caption {
  position: absolute;
  bottom: 20px;
  left: 22px;
  margin: 0;
  color: rgba(250, 247, 238, 0.88);
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.28);
}

.quote-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(38px, 5.2vw, 88px) clamp(30px, 5vw, 76px) 28px;
}

.quote-meta {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--ink-soft);
}

.quote-meta .rule {
  width: 38px;
  height: 1px;
  background: var(--line);
}

.quote-meta .total::before {
  content: "/ ";
}

.quote-frame {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-height: 330px;
  margin: 0;
  padding: 48px 0 32px;
}

.quote-frame.is-leaving {
  animation: quote-out 280ms ease forwards;
}

.quote-frame.is-entering {
  animation: quote-in 680ms cubic-bezier(0.22, 0.75, 0.22, 1) both;
}

blockquote {
  max-width: 15ch;
  margin: 0;
  font-family: Didot, "Bodoni 72", Georgia, serif;
  font-size: clamp(2.15rem, 3.45vw, 4.7rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.048em;
  white-space: pre-line;
  text-wrap: balance;
}

.quote-frame[data-length="long"] blockquote {
  font-size: clamp(1.7rem, 2.55vw, 3.45rem);
  line-height: 1.08;
}

.quote-frame[data-length="very-long"] blockquote {
  max-width: 18ch;
  font-size: clamp(1.42rem, 2.05vw, 2.75rem);
  line-height: 1.12;
}

figcaption {
  max-width: 34rem;
  margin-top: 30px;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
  font-style: italic;
  line-height: 1.45;
}

figcaption::before {
  content: "— ";
}

.quote-navigation {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  gap: 16px;
}

.nav-button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  place-items: center;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-button:hover,
.nav-button:focus-visible {
  color: var(--paper-light);
  background: var(--ink);
  transform: scale(1.04);
}

.nav-button:focus-visible,
.private-link:focus-visible,
.wordmark:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.progress {
  position: relative;
  height: 1px;
  overflow: hidden;
  background: var(--line);
}

.progress::after {
  position: absolute;
  inset: 0;
  content: "";
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
}

.progress.is-running::after {
  animation: progress 14s linear forwards;
}

.gesture-hint {
  margin: 17px 0 0;
  color: var(--ink-soft);
  text-align: center;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 59px;
  align-items: center;
  color: var(--ink-soft);
}

.site-footer p {
  margin: 0;
}

.site-footer p:nth-child(2) {
  justify-self: center;
}

.privacy-note {
  justify-self: end;
}

.noscript-note {
  position: fixed;
  z-index: 10;
  bottom: 12px;
  left: 50%;
  margin: 0;
  padding: 10px 14px;
  background: var(--paper-light);
  transform: translateX(-50%);
}

.cloud-notice {
  position: fixed;
  z-index: 12;
  right: 28px;
  bottom: 24px;
  max-width: min(320px, calc(100vw - 36px));
  margin: 0;
  padding: 13px 16px;
  color: var(--paper-light);
  background: var(--ink);
  box-shadow: 0 12px 42px rgba(30, 31, 28, 0.18);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.cloud-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes arrive {
  from { opacity: 0; transform: scale(1.055); }
  to { opacity: 1; transform: scale(1.015); }
}

@keyframes quote-out {
  to { opacity: 0; transform: translateY(-9px); }
}

@keyframes quote-in {
  from { opacity: 0; transform: translateY(13px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes progress {
  to { transform: scaleX(1); }
}

@media (max-width: 900px) {
  :root {
    --header-height: 76px;
  }

  .page-shell {
    padding: 0 18px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .place {
    display: none;
  }

  .hero {
    display: flex;
    min-height: auto;
    flex-direction: column;
  }

  .landscape {
    height: clamp(280px, 50svh, 520px);
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .landscape img {
    object-position: 61% center;
  }

  .quote-panel {
    min-height: max(420px, calc(100svh - var(--header-height)));
    padding: 34px 7vw 24px;
  }

  .quote-frame {
    min-height: 290px;
    padding: 38px 0 28px;
  }

  blockquote {
    max-width: 18ch;
    font-size: clamp(2.15rem, 9.5vw, 4rem);
  }

  .quote-frame[data-length="long"] blockquote {
    font-size: clamp(1.72rem, 7.25vw, 3rem);
  }

  .quote-frame[data-length="very-long"] blockquote {
    font-size: clamp(1.38rem, 5.8vw, 2.35rem);
    line-height: 1.14;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer p:nth-child(2) {
    justify-self: end;
  }

  .privacy-note {
    display: none;
  }
}

@media (max-width: 520px) {
  .page-shell {
    padding: 0 14px;
  }

  .private-link span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
  }

  .private-link {
    padding-left: 14px;
  }

  .landscape {
    height: 35svh;
    min-height: 220px;
    max-height: 360px;
  }

  .image-caption {
    left: 16px;
    bottom: 15px;
  }

  .quote-panel {
    min-height: auto;
    padding: 27px 18px max(84px, calc(28px + env(safe-area-inset-bottom)));
  }

  .quote-frame {
    min-height: 0;
    padding: 30px 0 26px;
  }

  blockquote {
    max-width: 20ch;
    font-size: clamp(1.72rem, 8.3vw, 2.55rem);
    line-height: 1.04;
  }

  .quote-frame[data-length="long"] blockquote {
    font-size: clamp(1.32rem, 6.35vw, 2.05rem);
    line-height: 1.12;
  }

  .quote-frame[data-length="very-long"] blockquote {
    max-width: 22ch;
    font-size: clamp(1.08rem, 5.15vw, 1.68rem);
    line-height: 1.18;
  }

  figcaption {
    margin-top: 24px;
  }

  .gesture-hint {
    margin-top: 14px;
    font-size: 0.56rem;
  }

  .cloud-notice {
    right: 18px;
    bottom: 18px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
