:root {
  color-scheme: light;
  --sheet: #faf7f2;
  --text: #271e2c;
  --secondary: #615767;
  --ink-line: #dcd1dc;
  --accent: #78446f;
  --lilac: #efe3f2;
  --petal: #f3c7df;
  --night: #2a1d33;
  --gutter: clamp(1rem, 4.8vw, 5.5rem);
  --page-width: 83rem;
  --reading-width: 41rem;
  color: var(--text);
  background: var(--sheet);
}

.journal :focus-visible { outline: 2px solid #91467f; outline-offset: 4px; }
.journal :is(.site-head, .summit, .achievement, .orchid, .comic) :focus-visible { outline-color: #f8cbe8; }
.journal :is(main[id], section[id], article[id], aside[id]) { scroll-margin-top: 5.7rem; }
.sheet { width: min(100%, var(--page-width)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: fixed; left: 1rem; top: .5rem; z-index: 10; padding: .55rem; color: var(--text); background: var(--sheet); }
.skip:not(:focus) { clip-path: inset(50%); }

.journal-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 5;
  color: var(--text);
  border-bottom: 1px solid var(--ink-line);
  background: var(--sheet);
}
.journal-header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(.85rem, 2vw, 1.8rem);
  min-height: 4.4rem;
  max-width: var(--page-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.journal-brand {
  width: fit-content;
  color: inherit;
  font: 605 clamp(2.1rem, 3.1vw, 2.75rem)/.91 var(--display);
  letter-spacing: -.082em;
  text-decoration: none;
}
.journal-brand span { color: #ab5e95; }
.home :is(.summit, .achievement) { color: var(--snow); color-scheme: dark; }
.home .summit-photo img { filter: none; }
.home .summit-wash {
  /* Follow the portrait through the cover crop and the existing parallax. */
  --portrait-x: calc(51% - max(.7vw, .76svh));
  --portrait-y: calc(46.7% + max(6vw, 6.54svh));
  mask-image: radial-gradient(
    ellipse max(14vw, 15.26svh) max(18vw, 19.62svh)
    at var(--portrait-x) calc(var(--portrait-y) + var(--summit-shift, 0px)),
    transparent 48%, #000 100%
  );
}
.home :is(#sommet, #chemin) { scroll-margin-top: 0; }
.home :is(#carnet, #articles, #orchidee) { scroll-margin-top: 1rem; }
.ink-link { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .9rem; font-weight: 770; text-underline-offset: .32em; }
.journal-discover { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .9rem; font-weight: 770; text-underline-offset: .35em; }

.section-heading { margin-bottom: clamp(1.2rem, 3vw, 2.35rem); }
.section-heading h2, .story-head h1 {
  margin: 0;
  font: 550 clamp(2.65rem, 5.6vw, 5.5rem)/.91 var(--display);
  letter-spacing: -.063em;
}
.section-heading h2 em, .story-head h1 em { color: var(--accent); font-weight: 420; }
.notebook-section { padding-block: clamp(2.6rem, 6vw, 5.45rem); }
.notebook-section .section-heading { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.taza-stamp {
  display: grid;
  align-content: center;
  justify-items: center;
  flex: none;
  width: clamp(3.65rem, 7.55vw, 5.6rem);
  aspect-ratio: 1;
  border: 1px dashed #925f7d;
  border-radius: 50%;
  color: #724565;
  background: #f5e5ec;
  transform: rotate(-10deg);
  transition: transform .22s ease-out;
}
.taza-stamp:hover { transform: rotate(0deg); }
.taza-stamp span { font-size: clamp(.59rem, 1vw, .73rem); font-weight: 790; text-transform: uppercase; letter-spacing: .055em; }
.taza-stamp strong { font: 575 clamp(1.08rem, 2.7vw, 1.83rem)/1.03 var(--display); }
.notebook-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.65rem, 1.9vw, 1.45rem); }
.notebook-card {
  min-width: 0;
  border: 1px solid var(--ink-line);
  border-radius: .45rem;
  background: #fffdf9;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.notebook-card:hover { border-color: #987091; box-shadow: 0 .35rem 1.55rem #4c2c4320; }
.note-card-link { display: grid; grid-template-rows: auto 1fr; height: 100%; border-radius: inherit; text-decoration: none; }
.note-illustration {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  aspect-ratio: 2.55;
  overflow: hidden;
  border-radius: .4rem .4rem 0 0;
  border-bottom: 1px solid #36253c21;
}
.note-card-copy { padding: 1.05rem clamp(.85rem, 1.65vw, 1.35rem) 1.25rem; }
.note-topic, .section-kicker {
  margin: 0 0 .65rem;
  color: var(--accent);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.note-card-copy h3 { margin: 0; font: 560 clamp(1.43rem, 2.5vw, 2.48rem)/1.03 var(--display); letter-spacing: -.038em; text-wrap: balance; }
.note-card-link:hover h3 { color: var(--accent); }
.note-card-copy p:last-child { margin: .45rem 0 0; color: var(--secondary); line-height: 1.42; }
.note-mountains { background: linear-gradient(152deg, #adb6cc, #d9cfde 65%, #f6d4d4); }
.note-mountains::before, .note-ridge {
  position: absolute;
  inset: auto 0 0;
  height: 100%;
  background: #78869f;
  clip-path: polygon(0 92%, 18% 58%, 26% 67%, 43% 45%, 59% 64%, 75% 30%, 100% 74%, 100% 100%, 0 100%);
  content: "";
}
.note-ridge {
  z-index: 1;
  background: linear-gradient(35deg, #475873, #9a83a1);
  clip-path: polygon(0 89%, 23% 42%, 36% 60%, 47% 48%, 67% 76%, 79% 58%, 100% 84%, 100% 100%, 0 100%);
}
.note-sun { width: 17%; aspect-ratio: 1; border-radius: 50%; background: #f8ded7; transform: translate(120%, -30%); }
.note-books { background: radial-gradient(ellipse at 67% 60%, #f4e1c6, #e8c6b2); }
.note-page {
  position: absolute;
  width: 21%;
  height: 66%;
  border: 1px solid #8a626c;
  border-radius: .17rem .36rem .36rem .17rem;
  background: #aa6a78;
  box-shadow: 0 .2rem .35rem #462b4044;
  transform: translateX(-32%) rotate(-19deg);
}
.note-page:nth-child(2) { background: #caa1bb; transform: translateX(0) rotate(3deg); }
.note-page:nth-child(3) {
  background: repeating-linear-gradient(180deg, transparent 0 8px, #b78c9170 8px 9px) center 52% / 57% 62% no-repeat, #fbede3;
  transform: translateX(29%) rotate(16deg);
}
.note-korea {
  background: radial-gradient(ellipse at 62% 43%, #eebcda, #d2b6e4 68%, #c8b4dd);
}
.note-hangul { color: #4c2c55; font: 700 clamp(1.85rem, 5.35vw, 5rem)/1 var(--body); letter-spacing: -.10em; transform: translateX(-9%); }
.note-flower { position: absolute; top: 18%; right: 18%; color: #fcdeeb; font-size: clamp(1.5rem, 4vw, 3.4rem); line-height: 1; transform: rotate(-16deg); }

.press { padding-block: clamp(2.55rem, 5.4vw, 5rem); background: #f0eaf0; }
.press-inner { max-width: 76rem; }
.press-library {
  min-width: 0;
  padding: clamp(.78rem, 1.85vw, 1.45rem);
  border: 1px solid var(--ink-line);
  border-radius: .45rem;
  background: #fffdf9;
}
.press-views { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .8rem; }
.press-views button {
  min-height: 2.75rem;
  padding: .42rem .7rem;
  border: 1px solid #b4a1b0;
  border-radius: 2rem;
  color: var(--text);
  background: transparent;
  font-size: .86rem;
  font-weight: 740;
}
.press-views button[aria-pressed="true"] { background: var(--night); color: #fdf3f7; border-color: var(--night); }
.press-views button:hover { border-color: var(--night); }
.press-views span { padding-left: .25rem; font-variant-numeric: tabular-nums; }
.press-fields { display: grid; grid-template-columns: minmax(9rem,1.3fr) minmax(8rem,1fr) auto; gap: .48rem; }
.press-fields label { min-width: 0; font-size: .88rem; }
.press-fields input, .press-fields select, .outline-button {
  min-height: 2.8rem;
  border: 1px solid #a694a4;
  border-radius: .3rem;
  color: var(--text);
  background: #fffdf9;
}
.press-fields input, .press-fields select { width: 100%; font: inherit; padding: .5rem .62rem; }
.press-fields select {
  appearance: none;
  padding-right: 1.8rem;
  background-image: linear-gradient(45deg, transparent 50%, #684a67 52%), linear-gradient(135deg, #684a67 50%, transparent 52%);
  background-position: calc(100% - 17px) 53%, calc(100% - 12px) 53%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.outline-button { padding: .5rem .78rem; font-size: .85rem; font-weight: 740; white-space: nowrap; }
.outline-button:hover:not(:disabled) { background: var(--lilac); }
.outline-button:disabled { opacity: .62; cursor: default; }
.article-status, #press-empty { color: var(--secondary); margin: .75rem 0; font-size: .89rem; }
.article-status { min-height: 1.3rem; }
.press-list { margin: 0; padding: 0; list-style: none; }
.press-list li { display: flex; align-items: stretch; border-top: 1px solid var(--ink-line); }
.press-list li:last-child { border-bottom: 1px solid var(--ink-line); }
.press-list a {
  display: grid;
  grid-template-columns: minmax(4.25rem, .22fr) minmax(0, 1fr) auto;
  align-items: center;
  flex: 1;
  min-width: 0;
  min-height: 4rem;
  gap: .3rem clamp(.5rem, 1.5vw, 1.1rem);
  padding: .75rem .2rem;
  border-radius: .2rem;
  text-decoration: none;
}
.press-list a:hover { background: #f6edf5; }
.press-list a:focus-visible { outline-offset: -1px; }
.press-list .article-topic, .press-list .article-open { color: var(--accent); font-size: .8rem; font-weight: 760; }
.press-list .article-name { font: 515 clamp(1.02rem, 1.48vw, 1.28rem)/1.23 var(--display); overflow-wrap: anywhere; }
.bookmark {
  display: grid;
  align-self: center;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: .3rem;
  color: var(--accent);
  background: transparent;
}
.bookmark:hover { background: var(--lilac); }
.bookmark::before {
  width: .85rem;
  height: 1.07rem;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%, 0 0, 15% 13%, 15% 75%, 50% 57%, 85% 75%, 85% 13%, 15% 13%);
  content: "";
}
.bookmark[aria-pressed="true"]::before { clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%); }
.press-pick { margin-bottom: 1rem; background: #f3e7f1; }
.press-pick a { padding-inline: .45rem; }
#more-articles { margin-top: .95rem; }

.flowers { padding-block: clamp(2.6rem, 5.5vw, 5.2rem) 0; }
.journal .orchid {
  --margin: clamp(1.15rem, 5vw, 4.1rem);
  min-height: clamp(19rem, 35vw, 28rem);
  border-radius: .48rem;
  color: var(--snow);
  color-scheme: dark;
}
.journal .orchid .breath-copy { margin-bottom: 0; }
.journal .orchid .breath-copy h2 { font-size: clamp(2.85rem, 6.8vw, 6.5rem); }
.journal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  min-height: 6rem;
  padding-block: 1.65rem;
}
.journal-footer a:last-child { font-size: .9rem; text-underline-offset: .3em; }
.journal-signature { margin: 0; color: var(--secondary); font-size: .9rem; }

.story { padding-block: clamp(2.4rem, 6.1vw, 6rem); }
.story-head, .story-body { max-width: var(--reading-width); margin-inline: auto; }
.story-head h1 { font-size: clamp(3.25rem, 7.2vw, 6.4rem); text-wrap: balance; }
.story-intro { margin: 1.15rem 0 1.6rem; color: var(--secondary); font: 435 clamp(1.16rem, 2.5vw, 1.5rem)/1.45 var(--display); }
.story-body { font-size: 1.07rem; line-height: 1.68; }
.story-body h2 { margin: 2.35rem 0 .55rem; font: 550 clamp(1.55rem, 3.1vw, 2.55rem)/1.1 var(--display); letter-spacing: -.046em; }
.story-body p { margin: .65rem 0 1.15rem; }
.story-body ol { padding-left: 1.4rem; }
.story-body li { margin-bottom: .55rem; padding-left: .2rem; }
.story-body li::marker { color: var(--accent); font-weight: 750; }
.story-image {
  float: right;
  width: min(36%, 12rem);
  margin: .55rem 0 .9rem 1.4rem;
}
.story-image img { display: block; width: 100%; height: auto; }
.story-image figcaption { padding-top: .32rem; color: var(--secondary); font-size: .78rem; line-height: 1.35; }
.story-related { clear: both; margin-top: 2.3rem; padding-top: .8rem; border-top: 1px solid var(--ink-line); }
.story-related p { margin: 0; font-size: .88rem; font-weight: 750; }
.story-related a + a { margin-left: 1rem; }
.story-progress {
  position: fixed;
  z-index: 6;
  top: 0;
  width: 100%;
  height: 3px;
  background: none;
  appearance: none;
}
.story-progress::-webkit-progress-bar { background: transparent; }
.story-progress::-webkit-progress-value { background: #b367a3; }
.story-progress::-moz-progress-bar { background: #b367a3; }
.comic {
  margin: 2.1rem 0;
  padding: clamp(1rem, 4vw, 1.7rem);
  color: #faecf7;
  background: radial-gradient(ellipse at 96% 5%, #5d3a5d, transparent 74%), var(--night);
}
.comic .note-topic { margin: 0 0 .7rem; color: var(--petal); font-size: .75rem; }
.comic-line { display: flex; align-items: center; gap: .95rem; }
.comic-line img { flex: none; width: 3.65rem; height: 3.65rem; object-fit: cover; object-position: 47% 36%; border: 1px solid #f5c7e9; border-radius: 50%; }
.comic .comic-line p { margin: 0; font: 500 clamp(1.2rem, 2.6vw, 1.85rem)/1.13 var(--display); }
.comic .comic-trigger { margin-top: .8rem; padding: .5rem .7rem; min-height: 2.75rem; border: 1px solid #d0a7cf; border-radius: .3rem; color: var(--petal); background: transparent; font-size: .87rem; font-weight: 760; }
.comic .comic-trigger:hover { color: var(--night); background: var(--petal); }
.comic-reply { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem 1rem; margin: .85rem 0 0; }
.comic-reply img { display: block; width: min(10.6rem, 100%); height: auto; }
.comic-reply strong { display: block; font: 530 1.36rem/1.15 var(--display); }
.comic-reply small { color: #e2c7df; font-size: .81rem; }


@media (max-width: 900px) {
  .press-fields { grid-template-columns: minmax(0,1fr) auto; }
  .press-fields label:first-child { grid-column: 1 / -1; }
  .press-list a { grid-template-columns: minmax(0,1fr) auto; }
  .press-list .article-topic { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .home .summit-wash {
    --portrait-x: calc(53% - max(2.7vw, 2.94svh));
    --portrait-y: calc(43.5% + max(9vw, 9.81svh));
  }
  .journal :is(main[id], section[id], article[id], aside[id]) { scroll-margin-top: 4.8rem; }
  .notebook-grid { grid-template-columns: 1fr; grid-auto-rows: 1fr; gap: .62rem; }
  .note-card-link { grid-template-rows: auto; grid-template-columns: minmax(5.55rem, 29%) 1fr; }
  .note-illustration { aspect-ratio: auto; min-height: 7.2rem; border-radius: .4rem 0 0 .4rem; border-bottom: 0; border-right: 1px solid #36253c21; }
  .note-korea .note-flower { right: 11%; top: 22%; font-size: 1.4rem; }
  .note-books .note-page { width: 28%; height: 55%; }
  .note-card-copy { align-self: center; padding: .8rem .75rem; }
  .note-card-copy h3 { text-wrap: wrap; }
  .note-card-copy .note-topic { margin-bottom: .35rem; }
  .note-card-copy p:last-child { margin-top: .3rem; font-size: .92rem; }

  .journal .orchid .breath-copy { width: auto; }
}

@media (max-width: 385px) {
  .journal-header-inner { gap: .6rem; }
}
@media (max-width: 430px) {
  .story-image { width: 40%; margin-left: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .notebook-card, .taza-stamp { transition: none; }
}
