/* Layout: a quiet page in the manner of a well-made book. Pale stone ground, near-black type, soft grey for the
   second voice of each headline. Labels sit left, short text sits right, hairlines between sections.
   A small lowercase serif carries the salt rose. wordmark; a neutral grotesque carries everything else. */
:root {
  --bg: #f1f2ef;
  --paper: #e7e9e5;
  --fg: #1b1d1d;
  --soft: #969c9b;
  --muted: #5f6665;
  --line: #dcdfdb;
  --accent: #3f6a70;
  --rose: #9d5a68;

  --sans: "Geist", "Helvetica Neue", Arial, system-ui, sans-serif;
  --serif: "EB Garamond", "Garamond", "Iowan Old Style", Georgia, serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 80rem;
  --radius: 12px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 1rem; line-height: 1.6; font-weight: 400; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--fg); color: var(--bg); }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.small { font-size: 0.875rem; }
.soft { color: var(--soft); }
.serif { font-family: var(--serif); }

/* ---------- Top bar ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 2rem; padding-block: 0.95rem; }
.id { margin-right: auto; display: grid; line-height: 1.3; }
.id b { font-weight: 500; font-size: 0.95rem; }
.id span { font-size: 0.8rem; color: var(--soft); font-variant-numeric: tabular-nums; }
.top ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; list-style: none; padding: 0; }
.top ul a { font-size: 0.9rem; color: var(--soft); }
.top ul a:hover, .top ul a[aria-current="page"] { color: var(--fg); }
@media (max-width: 640px) { .top ul { width: 100%; gap: 1.2rem; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; } .top ul li { flex-shrink: 0; } }

/* ---------- Two-tone headlines ---------- */
.headline { font-size: clamp(2.2rem, 5vw, 4.1rem); line-height: 1.04; letter-spacing: -0.035em; color: var(--soft); }
.headline b { font-weight: 400; color: var(--fg); }
.headline.sm { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem clamp(2rem, 5vw, 4rem); padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem); align-items: center; }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); } }
.hero .text { display: grid; gap: 1.5rem; align-content: center; }
.hero p { color: var(--muted); max-width: 30rem; }
.photo { overflow: hidden; border-radius: var(--radius); background: var(--paper); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter 0.8s ease; }
.photo:hover img { transform: scale(1.02); filter: saturate(1); }
.hero .photo { aspect-ratio: 4 / 4.6; }
@media (max-width: 860px) { .hero .photo { order: -1; aspect-ratio: 4 / 4.2; } }
.status { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--soft); }
.status i { width: 6px; height: 6px; border-radius: 50%; background: #5e9e86; }

/* Buttons */
.links { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; font: 500 0.88rem var(--sans); padding: 0.6rem 1.1rem; border-radius: 999px; border: 1px solid var(--fg); background: var(--fg); color: var(--bg); cursor: pointer; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.btn::after { content: "→"; transition: transform 0.25s; }
.btn.out::after { content: "↗"; }
.btn.dl::after { content: "↓"; }
.btn:hover::after { transform: translateX(2px); }
.btn.dl:hover::after { transform: translateY(2px); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--fg); }
.btn:not(.ghost):hover { background: var(--accent); border-color: var(--accent); }

/* ---------- Sections: label left, content right ---------- */
.section { border-top: 1px solid var(--line); padding-block: clamp(3rem, 7vw, 5.5rem); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem clamp(2rem, 5vw, 4rem); }
@media (max-width: 760px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split > .lab { font-size: 0.95rem; }
.prose { display: grid; gap: 1rem; max-width: 34rem; color: var(--muted); }
.prose .lead { color: var(--fg); font-size: 1.15rem; line-height: 1.5; }

/* ---------- Cover: the definition, set like a book cover ---------- */
.cover { position: relative; background: var(--paper); border-radius: var(--radius); min-height: clamp(20rem, 42vw, 30rem); padding: clamp(1.5rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; overflow: hidden; }
.cover .entry { max-width: 28rem; display: grid; gap: 0.6rem; }
.cover .pron { font-size: 0.8rem; color: var(--soft); letter-spacing: 0.02em; }
.cover .pron i { font-family: var(--serif); font-size: 0.95rem; }
.cover .def { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.45; color: var(--fg); }
.cover .def i { font-style: italic; }
.cover .also { font-size: 0.9rem; color: var(--muted); }
.mark { align-self: flex-end; font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3.6vw, 2.8rem); letter-spacing: -0.01em; line-height: 1; }
.cover .mark { opacity: 0; transform: translateY(6px); animation: arrive 1.6s 0.3s ease forwards; }
@keyframes arrive { to { opacity: 1; transform: none; } }

/* ---------- Characteristics ---------- */
.traits { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem clamp(1rem, 2vw, 2rem); }
@media (max-width: 960px) { .traits { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .traits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.trait { display: grid; gap: 0.35rem; border-top: 1px solid var(--line); padding-top: 0.9rem; transition: border-color 0.3s; }
.trait:hover { border-top-color: var(--rose); }
.trait h3 { font-family: var(--serif); font-style: italic; font-size: 1.2rem; }
.trait p { font-size: 0.88rem; color: var(--muted); line-height: 1.45; }

/* ---------- Row lists ---------- */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.3rem clamp(2rem, 5vw, 4rem); padding-block: 1.15rem; border-bottom: 1px solid var(--line); align-items: baseline; transition: padding 0.3s; }
@media (max-width: 760px) { .row { grid-template-columns: minmax(0, 1fr); } }
.row h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
.row p { color: var(--muted); font-size: 0.95rem; display: flex; justify-content: space-between; gap: 1rem; }
.row .go { color: var(--soft); transition: transform 0.25s, color 0.25s; flex-shrink: 0; }
a.row:hover { padding-left: 0.4rem; }
a.row:hover .go { color: var(--fg); transform: translateX(3px); }
.soon { font-size: 0.78rem; color: var(--rose); border: 1px solid color-mix(in srgb, var(--rose) 40%, var(--line)); border-radius: 999px; padding: 0.05rem 0.6rem; margin-left: 0.6rem; vertical-align: 0.15em; white-space: nowrap; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.5rem, 1.2vw, 1rem); margin-top: clamp(1.5rem, 3vw, 2.25rem); }
@media (max-width: 600px) { .gallery { grid-template-columns: minmax(0, 1fr); } }
.gallery .photo { aspect-ratio: 3 / 4; }

/* ---------- Page heads ---------- */
.page-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 2.5rem clamp(2rem, 5vw, 4rem); padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem); align-items: end; }
@media (max-width: 860px) { .page-head { grid-template-columns: minmax(0, 1fr); } }
.page-head .text { display: grid; gap: 1.4rem; }
.page-head p { color: var(--muted); max-width: 32rem; }
.page-head .photo { aspect-ratio: 4 / 5; }
.page-head .photo img { object-position: 50% 30%; }

/* About: pair */
.pair { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(0.5rem, 1.2vw, 1rem); align-items: end; margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.pair .p1 { aspect-ratio: 4 / 5; }
.pair .p2 { aspect-ratio: 7 / 8; }
.caption { font-size: 0.8rem; color: var(--soft); margin-top: 0.5rem; }

/* ---------- Contact ---------- */
.email-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.25rem; }
.email { font-size: clamp(1.5rem, 3.4vw, 2.4rem); letter-spacing: -0.03em; user-select: all; overflow-wrap: anywhere; }
.copy { font: 400 0.85rem var(--sans); color: var(--soft); background: none; border: 0; border-bottom: 1px solid var(--line); padding: 0; cursor: pointer; }
.copy:hover { color: var(--fg); border-bottom-color: currentColor; }
.copy-status { font-size: 0.8rem; color: var(--accent); min-height: 1.3em; }

footer { border-top: 1px solid var(--line); padding-block: 1.5rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; font-size: 0.82rem; color: var(--soft); }
footer ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; list-style: none; padding: 0; }
footer a:hover { color: var(--fg); }
footer em { font-family: var(--serif); font-size: 0.95rem; }

/* Gentle reveal from a visible resting state */
.js .reveal { transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.pending { opacity: 0.35; transform: translateY(14px); }
@media (prefers-reduced-motion: no-preference) {
  .hero, .page-head { animation: settle 1s ease-out both; }
  @keyframes settle { from { opacity: 0.5; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .cover .mark { opacity: 1; transform: none; }
  .js .reveal.pending { opacity: 1; transform: none; }
}

/* ---------- Publicity additions ---------- */
.id .wordmark { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; letter-spacing: -0.01em; }
.id .wordmark small { font-family: var(--sans); font-size: 0.8rem; color: var(--soft); margin-left: 0.35rem; letter-spacing: 0; }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); }
@media (max-width: 600px) { .compare { grid-template-columns: minmax(0, 1fr); } }
.compare h3 { font-size: 0.9rem; color: var(--soft); margin-bottom: 0.75rem; }
.compare ul { list-style: none; padding: 0; display: grid; gap: 0.5rem; border-top: 1px solid var(--line); padding-top: 0.9rem; }
.compare li { font-size: clamp(1.05rem, 1.8vw, 1.25rem); letter-spacing: -0.015em; line-height: 1.35; }
.compare .then li { color: var(--soft); }
.compare .now ul { border-top-color: var(--rose); }
.hip { margin-top: clamp(1.5rem, 3vw, 2.25rem); font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.for { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 5vw, 4rem); align-items: end; }
@media (max-width: 760px) { .for { grid-template-columns: minmax(0, 1fr); } }
.for .photo { aspect-ratio: 4 / 5; max-width: 24rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.1rem; }
.tags span { font-size: 0.85rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.8rem; transition: border-color 0.25s, color 0.25s; }
.tags span:hover { border-color: var(--fg); color: var(--fg); }

.map { margin: 0; }
.map img { width: 100%; height: auto; display: block; }
.places { font-size: 0.9rem; letter-spacing: 0.06em; color: var(--soft); }

/* Photographer credits: a small pill in the photo's corner */
.photo { position: relative; }
.credit { position: absolute; right: 0.6rem; bottom: 0.6rem; z-index: 1; font-size: 0.68rem; letter-spacing: 0.02em; line-height: 1.4; color: var(--muted); background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 0.15rem 0.55rem; border-radius: 999px; pointer-events: none; }
