:root {
  --ink: #17130f;
  --brown: #7c4827;
  --brown-dark: #57301a;
  --paper: #f7f2e9;
  --paper-deep: #eee2d0;
  --white: #fffdf8;
  --line: rgba(86, 48, 26, 0.25);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.72;
}

a { color: inherit; }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 5rem;
  padding: 1.35rem clamp(1.25rem, 4vw, 4.5rem);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--white);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.55);
}

.wordmark {
  text-decoration: none;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.header-link {
  text-decoration: none;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(255,255,255,.65);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  background: url("view-from-santianni.webp") 50% 48% / cover no-repeat;
  color: var(--white);
  isolation: isolate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 16, 11, .62) 0%, rgba(18, 16, 11, .20) 46%, rgba(18, 16, 11, .02) 76%),
    linear-gradient(0deg, rgba(18, 16, 11, .45) 0%, transparent 44%);
}

.hero-content {
  width: min(50rem, 88vw);
  margin: 0 0 clamp(5.5rem, 12vh, 9rem) clamp(1.25rem, 8vw, 8rem);
}

.eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3.15rem, 7.4vw, 7rem);
  font-weight: 700;
  line-height: .94;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.hero-intro {
  max-width: 38rem;
  margin: 1.7rem 0 1.4rem;
  font-size: clamp(1.12rem, 2.1vw, 1.45rem);
  line-height: 1.55;
  text-shadow: 0 1px 14px rgba(0,0,0,.7);
}

.hero-scroll {
  display: inline-flex;
  gap: .65rem;
  align-items: center;
  padding-bottom: .2rem;
  text-decoration: none;
  border-bottom: 0;
  font-size: clamp(1.12rem, 2.1vw, 1.45rem);
  font-weight: 700;
}

.photo-credit {
  position: absolute;
  right: 1rem;
  bottom: .6rem;
  margin: 0;
  font-size: .76rem;
  opacity: .82;
}

.about {
  background:
    radial-gradient(circle at 100% 10%, rgba(178, 128, 76, .12), transparent 29rem),
    var(--paper);
}

.about-inner {
  width: min(72rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(3rem, 7vw, 6rem);
}

.section-kicker { color: var(--brown); }

h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.25rem, 5vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.about-inner > p,
.about-inner > .rule {
  max-width: 50rem;
}

.lede {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  line-height: 1.55;
}

.about a:not(.button) {
  color: var(--brown-dark);
  text-underline-offset: .18em;
}

.rule {
  width: 5rem;
  height: 2px;
  margin: 2.5rem 0;
  background: var(--brown);
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 5vw, 4.5rem);
  margin: clamp(3rem, 7vw, 5.5rem) 0;
  padding: clamp(1.6rem, 4vw, 3rem);
  background: rgba(255, 253, 248, .7);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.notes-grid h3 {
  margin: 0 0 .75rem;
  color: var(--brown-dark);
  font-size: 1.65rem;
}

.notes-grid p { margin: 0; }

.primary-action {
  padding: 1rem 0 clamp(4rem, 8vw, 7rem);
  text-align: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  min-height: 4rem;
  padding: .85rem 1.6rem;
  color: var(--white);
  background: var(--brown);
  border: 2px solid var(--brown);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 700;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.button:hover,
.button:focus-visible {
  background: var(--brown-dark);
  border-color: var(--brown-dark);
  transform: translateY(-2px);
}

.primary-action p {
  margin: .75rem 0 0;
  color: #6a5c4d;
  font-size: .9rem;
  letter-spacing: .08em;
}

.acknowledgements {
  max-width: 56rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--paper-deep);
  border-left: 4px solid var(--brown);
}

.acknowledgements h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  letter-spacing: -.02em;
}

.acknowledgements p { margin: .75rem 0 0; }

.dedication { font-style: italic; }

footer {
  padding: 1.25rem;
  color: #d8c8b4;
  background: #2a211a;
  text-align: center;
  font-size: .82rem;
}

footer p { margin: 0; }

@media (max-width: 700px) {
  body { font-size: 1.05rem; line-height: 1.65; }

  .site-header {
    min-height: 4.5rem;
    padding: 1.15rem 1.15rem;
  }

  .header-link { display: none; }

  .hero {
    min-height: 92svh;
    background-position: 61% center;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(18, 16, 11, .72) 0%, rgba(18, 16, 11, .24) 56%, rgba(18, 16, 11, .05) 100%);
  }

  .hero-content {
    width: auto;
    margin: 0 1.25rem 4.75rem;
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(3rem, 15vw, 4.65rem);
  }

  .hero-intro { max-width: 25rem; }

  .photo-credit { font-size: .68rem; }

  .about-inner {
    width: min(100% - 2.25rem, 42rem);
    padding-top: 4rem;
  }

  .notes-grid {
    grid-template-columns: 1fr;
    margin-left: -1.125rem;
    margin-right: -1.125rem;
    padding: 2rem 1.125rem;
  }

  .button { width: 100%; }

  .acknowledgements {
    margin-left: -1.125rem;
    margin-right: -1.125rem;
    padding: 2rem 1.25rem;
  }
}

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

/* Layer 1 approved refinement: landing location/date line slightly larger than site wordmark. */
.hero .eyebrow {
  font-size: 1rem;
}

/* Layer 2: persistent BACK control. */
.site-back-button{position:absolute;top:1.35rem;right:clamp(1.25rem,4vw,4.5rem);z-index:2;min-height:2.5rem;padding:.5rem 1rem;color:#fff;background:rgba(87,48,26,.88);border:1px solid rgba(255,255,255,.45);border-radius:4px;font:700 .86rem Georgia,"Times New Roman",serif;letter-spacing:.08em;cursor:pointer;text-shadow:none}
.site-back-button:hover,.site-back-button:focus{background:#57301a}
@media(max-width:700px){.site-back-button{top:1.15rem;right:1.15rem}}


/* Language selector — landing page only */
.language-selector {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .22rem;
  background: rgba(22, 17, 13, .36);
  border: 1px solid rgba(255,255,255,.36);
  border-radius: .35rem;
  backdrop-filter: blur(2px);
}
.language-selector button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: .25rem;
  padding: .32rem .48rem;
  color: var(--white);
  background: transparent;
  font: inherit;
  font-size: .84rem;
  line-height: 1.15;
  cursor: pointer;
  text-shadow: 0 1px 8px rgba(0,0,0,.65);
}
.language-selector button:hover,
.language-selector button:focus-visible {
  border-color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.12);
  outline: none;
}
.language-selector button.is-active {
  background: rgba(255,255,255,.20);
  border-color: rgba(255,255,255,.82);
  font-weight: 700;
}
@media (max-width: 700px) {
  .site-header { gap: .45rem; }
  .site-header .wordmark { font-size: .72rem; letter-spacing: .09em; }
  .language-selector { gap: .12rem; padding: .16rem; }
  .language-selector button { padding: .3rem .34rem; font-size: .76rem; }
}
