:root {
  --bg: #11100f;
  --bg-soft: #171513;
  --surface: #1c1917;
  --text: #e8e0d6;
  --text-soft: #aaa099;
  --accent-olieve: #788f61;
  --accent-beige: #b8a892;
  --overlay: rgba(90, 85, 80, 0.55);
  --line: rgba(232, 224, 214, 0.14);
  --serif: "Cormorant Garamond", serif;
  --sans: "Noto Sans JP", sans-serif;
  --page-pad: clamp(24px, 5vw, 76px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.9;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid #d8c8b5;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-200%);
}

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

img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 65px;
  padding: 5px var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.08);
  background:
  linear-gradient(
  180deg,
  rgba(255,255,255,.08),
  rgba(255,255,255,.03)
  );
  }

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  letter-spacing: 0.03em;
}

.brand-main {
  font-family: var(--serif);
  font-size: 1.7rem;
}

.brand-sub {
  color: var(--text-soft);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.global-nav {
  display: flex;
  gap: 34px;
  font-family: var(--serif);
  font-size: 1.05rem;
}

.global-nav a {
  position: relative;
  color: var(--text-soft);
  transition: color 0.3s ease;
}

.global-nav a:hover,
.global-nav a:focus-visible {
  color: var(--accent-olieve);
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  padding: 8px;
}

.menu-button span {
  display: block;
  width: 100%;
  height: 1px;
  margin: 8px 0;
  background: var(--text);
}

.hero {
  min-height: 100vh;
  padding: 160px var(--page-pad) 70px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 540px;
  height: 540px;
  top: 18%;
  right: 12%;
  background: radial-gradient(circle, rgba(121, 87, 102, 0.22), transparent 68%);
  filter: blur(4px);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  margin-left: 0;
  justify-self: end;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--text);
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.about-copy h2,
.letter-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
}

.hero h1 {
  font-size: clamp(3.7rem, 8vw, 8.8rem);
  letter-spacing: -0.04em;
  color: var(--accent-olieve);
}

.hero-text {
  max-width: 510px;
  margin: 36px 0 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.hero-number {
  position: relative;
  z-index: 1;
  align-self: end;
  padding-bottom: 60px;
  color: rgba(232, 224, 214, 0.11);
  font-family: var(--serif);
  font-size: clamp(8rem, 10vw, 20rem);
  line-height: 0.7;
}

.scroll-cue {
  position: absolute;
  bottom: 48px;
  left: var(--page-pad);
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--text-soft);
  font-family: var(--serif);
  font-size: 0.9rem;
  letter-spacing: 0.09em;
}

.scroll-line {
  width: 72px;
  height: 1px;
  background: var(--accent-olieve);
}

.journal-section {
  padding: 140px var(--page-pad);
  background: #24201d;
  position: relative;
  overflow: hidden;
}
.journal-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background:radial-gradient(circle at top left,rgba(255,255,255,.025),transparent 40%),
  linear-gradient(180deg,#27231f,#24201d);
  background-image: url("./images/noise-180.webp");
  background-repeat: repeat;
  background-size: 180px 180px;
  mix-blend-mode: soft-light;
}

.journal-section > * {
  position: relative;
  z-index: 1;
}
.section-heading {
  width: 50%;
  margin: 0 auto 72px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}

.section-heading > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.section-heading .eyebrow {
  margin-bottom: 0;
}

.section-number {
  margin: 0;
  color: var(--accent-olieve);
  font-family: var(--serif);
  font-size: 10rem;
  line-height: 0.82;
}

.section-heading h2 {
  font-size: clamp(3.2rem, 7vw, 7rem);
  color: rgba(232, 224, 214, 0.92);
  transform: translateY(8px);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 34px);
}

.article-card {
  position: relative;
  min-height: 0;
  display: block;
  overflow: visible;
  background: transparent;
}

.article-card--wide {
  grid-column: span 2;
}

.article-card a {
  position: relative;
  display: block;
  width: min(82%, 880px);
  height: clamp(320px, 42vw, 540px);
  margin-inline: auto;
  overflow: hidden;
  border-radius: 25px;
}

.article-card--wide a {
  height: clamp(420px, 58vw, 680px);
}

.article-date {
  font-family: var(--serif);
  font-size: 1.5rem;
  display: block;
  width: min(82%, 880px);
  margin: 14px auto 0;
}

.article-card img {
  filter: saturate(0.72) contrast(0.88) brightness(0.78);
  transition: transform 1.1s cubic-bezier(0.2, 0.65, 0.2, 1), filter 0.7s ease;
}

.article-card picture,
.hero-visual picture {
  display: block;
  width: 100%;
  height: 100%;
}


.article-overlay {
  position: absolute;
  inset: 0;
  padding: clamp(14px, 2vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--overlay);
  opacity: 0;
  transition: opacity 0.55s ease;
}

.article-card a:hover .article-overlay,
.article-card:focus-within .article-overlay {
  opacity: 1;
}

.article-card a:hover img,
.article-card:focus-within img {
  transform: scale(1.035);
  filter: saturate(0.55) contrast(0.78) brightness(0.62);
}

.article-category {
  margin: 0 0 12px;
  color: #d8c8b5;
  font-family: var(--serif);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-overlay h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2.6rem);
  font-weight: 400;
  line-height: 1;
}

.article-excerpt {
  max-width: 260px;
  margin: 11px 0 14px;
  color: rgba(255, 250, 244, 0.8);
  font-size: 0.78rem;
  line-height: 1.65;
}

.read-more {
  width: fit-content;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 250, 244, 0.55);
  font-family: var(--serif);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
}

.archive-link {
  margin-top: 54px;
  text-align: right;
}

.archive-link a,
.text-link {
  color: var(--accent-beige);
  font-family: var(--serif);
  font-size: 1.08rem;
  letter-spacing: 0.04em;
}

.archive-link span,
.text-link span {
  margin-left: 10px;
}

.quote-section {
  min-height: 70vh;
  padding: 120px var(--page-pad);
  display: grid;
  place-content: center;
  text-align: center;
  background: linear-gradient(rgba(17, 16, 15, 0.77), rgba(17, 16, 15, 0.92));
}

.quote-section.is-visible,
html:not(.js) .quote-section {
  background:
    linear-gradient(rgba(17, 16, 15, 0.77), rgba(17, 16, 15, 0.92)),
    url("./images/quote-800.webp") center/cover;
}

.quote-mark {
  margin: 0;
  color: var(--accent-olieve);
  font-family: var(--serif);
  font-size: 8rem;
  line-height: 0.65;
}

blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 5rem);
  font-weight: 400;
  line-height: 1.22;
}

.quote-credit {
  margin-top: 28px;
  color: var(--text-soft);
  font-family: var(--serif);
  letter-spacing: 0.12em;
}

.about-section {
  position: relative;
  min-height: 80vh;
  padding: 150px var(--page-pad);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 80px;
  background: #151211;
  overflow: hidden;
}

.about-number {
  color: rgba(232, 224, 214, 0.07);
  font-family: var(--serif);
  font-size: clamp(14rem, 26vw, 28rem);
  line-height: 0.7;
}

.about-copy {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.about-copy h2,
.letter-copy h2 {
  font-size: clamp(3rem, 3vw, 6rem);
}

.about-copy > p:not(.eyebrow),
.letter-copy > p:not(.eyebrow) {
  margin: 34px 0;
  color: var(--text-soft);
}

.letter-section {
  padding: 120px var(--page-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: end;
  background:#505F42
}

.letter-copy .eyebrow {
  color: #f0dfca;
}

.letter-copy > p:not(.eyebrow) {
  color: rgba(255, 246, 238, 0.86);
}

.letter-form {
  display: flex;
  border-bottom: 1px solid rgba(255, 250, 244, 0.42);
}

.letter-form input {
  flex: 1;
  min-width: 0;
  padding: 18px 0;
  border: 0;
  background: transparent;
  color: white;
}

.letter-form input::placeholder {
  color: rgba(255, 250, 244, 0.76);
}

.letter-form button {
  border: 0;
  background: transparent;
  color: white;
  font-family: var(--serif);
  letter-spacing: 0.08em;
  cursor: pointer;
}

.site-footer {
  min-height: 220px;
  padding: 30px var(--page-pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 28px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  color: var(--text-soft);
  font-size: 0.78rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  font-family: var(--serif);
  font-size: 0.95rem;
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .article-card.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.js .article-card.reveal > a {
  opacity: 0;
  transform: translateX(-64px);
  transition:
    opacity 1.05s ease,
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .article-card.reveal.is-visible > a {
  opacity: 1;
  transform: translateX(0);
}

.js .article-card.reveal .article-date {
  opacity: 0;
  transition: opacity 0.65s ease 0.35s;
}

.js .article-card.reveal.is-visible .article-date {
  opacity: 1;
}

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

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

  .js .reveal,
  .js .article-card.reveal > a,
  .js .article-card.reveal .article-date {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 801px) {
  .quote-section.is-visible,
  html:not(.js) .quote-section {
    background-image:
      linear-gradient(rgba(17, 16, 15, 0.77), rgba(17, 16, 15, 0.92)),
      url("./images/quote-1280.webp");
  }
}

@media (min-width: 1281px) {
  .quote-section.is-visible,
  html:not(.js) .quote-section {
    background-image:
      linear-gradient(rgba(17, 16, 15, 0.77), rgba(17, 16, 15, 0.92)),
      url("./images/quote-1920.webp");
  }
}

@media (max-width: 860px) {
  .menu-button {
    display: block;
    position: relative;
    z-index: 22;
  }

  .global-nav {
    position: fixed;
    inset: 0;
    z-index: 21;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    background: rgba(17, 16, 15, 0.98);
    font-size: 2.2rem;
    opacity: 0;
    visibility: hidden;
    transition: 0.35s ease;
  }

  .global-nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .article-grid,
  .about-section,
  .letter-section {
    grid-template-columns: 1fr;
  }

  .article-card,
  .article-card--wide {
    grid-column: auto;
    height: 520px;
  }

  .article-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(54, 47, 43, 0.62), rgba(54, 47, 43, 0.03) 70%);
  }

  .about-section {
    gap: 20px;
  }

  .about-number {
    position: absolute;
    left: -18px;
    top: 160px;
  }

  .letter-section {
    gap: 40px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 72px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .brand-main {
    font-size: 1.35rem;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 16vw, 5.4rem);
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 20px;
  }

  .article-card,
  .article-card--wide {
    height: 430px;
  }

  .article-card a,
  .article-card--wide a {
    width: 100%;
    height: 360px;
  }

  .article-overlay h3 {
    font-size: 1.35rem;
  }

  .article-excerpt {
    display: none;
  }

  .quote-section,
  .journal-section,
  .about-section,
  .letter-section {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .letter-form {
    flex-direction: column;
    border-bottom: 0;
    gap: 16px;
  }

  .letter-form input {
    border-bottom: 1px solid rgba(255, 250, 244, 0.42);
  }

  .letter-form button {
    align-self: flex-start;
    padding: 10px 0;
  }
}

/* =========================
   Hero — fixed background layer
   Text and framed image flow above it
========================= */

.hero {
  position: relative;
  min-height: 165vh;
  padding: 0;
  display: block;
  overflow: visible;
  isolation: isolate;
  background: #171411;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    radial-gradient(circle at 76% 28%, rgba(121, 87, 102, 0.18), transparent 42%),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.02),
      rgba(17, 16, 15, 0.12)
    );
  pointer-events: none;
}

.hero-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  padding: 130px var(--page-pad) 70px;
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(340px, 520px);
  justify-content: center;
  align-items: center;
  gap: clamp(32px, 5vw, 90px);
  overflow: hidden;
}

/* Fixed-looking rear layer */
.hero-background {
  position: absolute;
  z-index: 0;
  inset: -8%;
  overflow: hidden;
  pointer-events: none;
}

.hero-background img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 48%;
  transform: scale(1.24);
  filter:
    blur(2px)
    saturate(0.7)
    contrast(0.88)
    brightness(0.78)
    sepia(0.08);
}

.hero-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(17, 16, 15, 0.58) 0%,
      rgba(17, 16, 15, 0.25) 48%,
      rgba(17, 16, 15, 0.14) 68%,
      rgba(17, 16, 15, 0.42) 100%
    ),
    linear-gradient(
      180deg,
      rgba(217, 194, 166, 0.05),
      rgba(83, 101, 66, 0.06) 58%,
      rgba(17, 16, 15, 0.42)
    );
  pointer-events: none;
}

.hero-copy,
.hero-visual,
.hero-number,
.scroll-cue {
  position: relative;
  z-index: 2;
}

.hero-copy {
  width: 100%;
  max-width: 680px;
  margin: 0;
  padding: 0;
  justify-self: end;
  border: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.38);
  transform: none;
}

.hero h1 {
  margin: 0;
  color: var(--accent-olieve);
  font-family: var(--serif);
  font-size: clamp(3.7rem, 8vw, 8.8rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-shadow: 0 3px 30px rgba(0, 0, 0, 0.25);
}

.hero-text {
  max-width: 510px;
  margin: 36px 0 0;
  color: rgba(232, 224, 214, 0.64);
  font-size: 0.95rem;
}

.hero-visual {
  position: relative;
  z-index: 2;
  width: min(100%, 480px);
  aspect-ratio: 2 / 3;
  margin: 0;
  padding:
    clamp(8px, 0.9vw, 13px)
    clamp(8px, 0.9vw, 13px)
    clamp(34px, 2.6vw, 44px);
  justify-self: start;
  overflow: hidden;
  background: #24201d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.3);
  transform:
    rotate(3deg);
  transform-origin: center;
}

.hero-visual picture {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 1px;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter:
    saturate(0.62)
    contrast(0.92)
    brightness(0.76)
    sepia(0.06);
  transition: filter 0.8s ease;
}

.hero-visual:hover img {
  filter:
    saturate(0.56)
    contrast(0.88)
    brightness(0.7)
    sepia(0.1);
}

.hero-visual::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset:
    clamp(8px, 0.9vw, 13px)
    clamp(8px, 0.9vw, 13px)
    clamp(34px, 2.6vw, 44px);
  background: linear-gradient(
    to top,
    rgba(17, 16, 15, 0.3),
    transparent 42%
  );
  pointer-events: none;
}

.hero-visual figcaption {
  position: absolute;
  z-index: 2;
  left: clamp(14px, 1.4vw, 22px);
  bottom: 9px;
  color: rgba(232, 224, 214, 0.72);
  font-family: var(--serif);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}

.hero-number {
  position: absolute;
  right: clamp(12px, 2.4vw, 42px);
  bottom: 104px;
  padding: 0;
  color: rgba(232, 224, 214, 0.08);
  font-family: var(--serif);
  font-size: clamp(8rem, 10vw, 20rem);
  line-height: 0.7;
  pointer-events: none;
}

.scroll-cue {
  position: absolute;
  bottom: 48px;
  left: var(--page-pad);
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--text-soft);
  font-family: var(--serif);
  font-size: 0.9rem;
  letter-spacing: 0.09em;
}

/* The hero content fades in without changing its fixed position. */
.js .hero-copy.reveal,
.js .hero-visual.reveal {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.js .hero-copy.reveal {
  transform: none;
}

.js .hero-visual.reveal {
  transform: rotate(3deg);
}

.js .hero-copy.reveal.is-visible,
.js .hero-visual.reveal.is-visible {
  opacity: 1;
}

/* Tablet and mobile: normal flow, no sticky parallax */
@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero-sticky {
    position: relative;
    top: auto;
    height: auto;
    min-height: 100vh;
    padding: 130px var(--page-pad) 110px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 48px;
  }

  .hero-background {
    inset: -6%;
  }

  .hero-background img {
    object-position: 54% center;
    transform: scale(1.34);
    filter:
      blur(2px)
      saturate(0.66)
      contrast(0.86)
      brightness(0.68);
  }

  .hero-copy {
    max-width: 620px;
    justify-self: start;
  }

  .hero-visual {
    width: min(78vw, 500px);
    height: auto;
    justify-self: end;
  }

  .hero-number {
    right: var(--page-pad);
    bottom: 72px;
  }
}

@media (max-width: 640px) {
  .hero-sticky {
    padding-top: 120px;
    padding-bottom: 100px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 16vw, 5.4rem);
  }

  .hero-copy {
    width: 100%;
  }

  .hero-visual {
    width: 100%;
  }

  .hero-number {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero {
    min-height: auto;
  }

  .hero-sticky {
    position: relative;
    height: auto;
    min-height: 100vh;
  }

  .hero-background img {
    transform: scale(1.24);
    will-change: auto;
  }
}
