:root {
  /* Salt & Grain — palette */
  --sand: #F7F3EC;
  --ink: #1E2622;
  --terracotta: #D96C3F;
  --line: #DCD3C3;
  --white: #FFFFFF;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing scale: 8 / 16 / 24 / 40 / 64 / 96 */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 64px;
  --s6: 96px;

  /* Rhythm */
  --section-y: clamp(64px, 9vw, 120px);
  --content-width: 1280px;
  --grid-gap: var(--s3);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a:hover { color: var(--terracotta); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }

/* Container: 12-col grid, centred, capped at 1280px. Later sections lay their
   content across this grid; helpers below make that uniform. */
.container {
  width: min(100% - 48px, var(--content-width));
  margin-inline: auto;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gap);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--sand);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding-block: var(--s2);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-right: auto;
}

.brand:hover { color: var(--ink); }

.header-nav {
  display: flex;
  gap: var(--s3);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  font-size: 0.85rem;
}

.lang-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.45;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lang-btn[aria-pressed="true"], .lang-btn:hover { opacity: 1; color: var(--terracotta); }

.lang-sep { color: var(--line); }

/* Sections */
.section { padding-block: var(--section-y); }

/* Space for the later full-bleed gallery band */
.section[data-section="gallery"] {
  background: var(--white);
  border-block: 1px solid var(--line);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: var(--s4);
  margin-top: var(--s6);
  color: var(--ink);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  align-items: baseline;
  justify-content: space-between;
}

.footer-tag {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}

.footer-copy { font-size: 0.9rem; opacity: 0.7; }

/* Language — elements carrying [lang] are hidden until their language is on */
[lang] { display: revert; }

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}

/* ===================================================================
   Section content: hero, about, gallery (step 78)
   Editorial Salt & Grain — full-bleed photography blocks alternating
   with white space. No cards, no heavy chrome.
   =================================================================== */

/* Shared editorial bits -------------------------------------------------- */
.eyebrow {
  margin: 0 0 var(--s2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.sec-title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  letter-spacing: -0.02em;
  max-width: 20ch;
}

/* A photographic placeholder: a muted, salt-and-canvas ground with the
   subject named out loud. Real photographs drop in behind these labels. */
.ph {
  position: relative;
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.5), rgba(255,255,255,0) 45%),
    #DDD5C6;
  border: 1px solid var(--line);
}

.ph-index {
  position: absolute;
  top: var(--s2);
  left: var(--s2);
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: rgba(30, 38, 34, 0.55);
  letter-spacing: 0.05em;
}

.ph-assignment {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--s3) var(--s2) var(--s2);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(0deg, rgba(247,243,236,0.92), rgba(247,243,236,0));
}

/* Hero ------------------------------------------------------------------- */
.section.hero { padding-block: 0; }

.hero-media {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(540px, 86vh, 920px);
  overflow: hidden;
  background:
    linear-gradient(0deg, rgba(30,38,34,0.55), rgba(30,38,34,0.05) 55%),
    linear-gradient(120deg, #E9A97F 0%, #C98A5E 38%, #6F6A5C 70%, #33403A 100%);
}

.hero-assignment {
  position: absolute;
  top: var(--s3);
  left: var(--s3);
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
  background: rgba(30, 38, 34, 0.55);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-block: clamp(40px, 6vw, 80px);
  color: #FBF7F0;
}

.hero-eyebrow { color: #F0B08A; }

.hero-title {
  font-size: clamp(2.6rem, 6.5vw, 4.9rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 14ch;
  margin: 0 0 var(--s2);
  text-wrap: balance;
}

/* Thin baseline rule under the headline — terracotta, editorial */
.hero-rule {
  width: var(--s5);
  height: 2px;
  margin: 0 0 var(--s2);
  background: var(--terracotta);
}

.hero-lede {
  max-width: 52ch;
  font-size: 1.08rem;
  line-height: 1.55;
  color: rgba(251, 247, 240, 0.92);
}

/* About ------------------------------------------------------------------ */
.about-wrap { display: grid; gap: var(--s5); }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s5);
  align-items: center;
}

.about-text {
  font-size: 1.06rem;
  line-height: 1.65;
  color: rgba(30, 38, 34, 0.92);
}

.about-text p { margin: 0 0 var(--s2); }

.about-lead {
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--ink);
}

.for-label {
  margin: var(--s3) 0 var(--s2);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--terracotta);
}

.for-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s1);
}

.for-item {
  padding: var(--s1) 0;
  border-bottom: 1px solid var(--line);
}

.for-item:last-child { border-bottom: 0; }

.about-ph {
  min-height: clamp(320px, 42vw, 560px);
  display: flex;
  align-items: flex-end;
}

.about-ph .ph-index { top: var(--s3); left: var(--s3); }

/* Gallery ---------------------------------------------------------------- */
.section[data-section="gallery"] .container { padding-block: var(--section-y); }

.gallery-head {
  max-width: 52ch;
  margin: 0 0 var(--s5);
}

.gallery-lede {
  margin: var(--s2) 0 0;
  font-size: 1.1rem;
  color: rgba(30, 38, 34, 0.8);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s2);
}

.gallery-fig {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-end;
}

.g-wide { grid-column: span 7; }
.g-med  { grid-column: span 5; }

/* Responsive: the tokens' breakpoints — / ~700 / ~600 */
@media (max-width: 700px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }
  .about-ph { min-height: 300px; }
}

@media (max-width: 600px) {
  .about-wrap { gap: var(--s4); }
  .g-wide, .g-med { grid-column: span 12; }
  .gallery-grid { gap: var(--s3); }
  .hero-title, .sec-title { text-wrap: pretty; }
}

@media (max-width: 720px) {
  .header-nav { display: none; }
}
