/* Francesca Pick: shared styles for all pages.
   Palette (from the hero photo), no other colors:
   --bg      #F3EFE9  warm off-white
   --ink     #1E2D25  deep green-charcoal
   --accent  #B15E4A  terracotta
   --sage    #7A7D5A  sage
*/

:root {
  --bg: #F3EFE9;
  --ink: #1E2D25;
  --accent: #B15E4A;
  --sage: #7A7D5A;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 38rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 { line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
cite { font-style: italic; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  /* Shows the full 3:2 photo on desktop; tall crop on phones */
  height: min(100svh, 66.667vw);
  min-height: 34rem;
  overflow: hidden;
  background: var(--bg);
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
  z-index: 0;
}

/* Subtle scrim so the header text stays readable over any part of the photo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 14, 10, 0.42) 0%, rgba(10, 14, 10, 0.22) 40%, rgba(10, 14, 10, 0) 68%);
  z-index: 1;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 1.5rem var(--gutter) var(--gutter);
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}
.nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover { color: var(--accent); }

.hero__text {
  position: absolute;
  top: 50%;
  left: var(--gutter);
  transform: translateY(-50%);
  width: min(50%, 30rem);
  text-align: left;
  color: #fff;
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
}

.hero h1 {
  font-size: clamp(3rem, 7.5vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: #fff;
}

.hero__tagline {
  margin: 1.25rem 0 0;
  font-size: clamp(1.15rem, 1.8vw, 1.6rem);
  line-height: 1.3;
  max-width: 16em;
  color: rgba(255, 255, 255, 0.92);
}

/* Narrow / tall screens: anchor crop on her, put the text in the sky at the top */
@media (max-width: 760px) {
  .hero__img { object-position: 72% 48%; }
  /* The desktop overlay fades left-to-right, which doesn't suit a centered,
     full-width mobile layout — use a top-down fade instead, with a slightly
     warmer/olive tint so the pale sky reads as intentional, not washed out. */
  .hero::before {
    background: linear-gradient(180deg, rgba(22, 26, 16, 0.5) 0%, rgba(22, 26, 16, 0.26) 42%, rgba(22, 26, 16, 0) 65%);
  }
  .hero__text {
    position: static;
    transform: none;
    width: auto;
    text-align: center;
    margin-top: 2.5rem;
    margin-bottom: 0;
    border-left: none;
    padding-left: 0;
  }
  .hero h1 { font-size: clamp(2.75rem, 13vw, 4rem); }
}

/* ---------- Sections ---------- */

main {
  padding: 0 var(--gutter);
}

.section {
  max-width: 64rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  border-top: 1px solid var(--sage);
}
.section:first-child { border-top: 0; }

.section h2 {
  color: var(--accent);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
}

.section__body { max-width: var(--measure); }

.section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2.5rem 0 0.75rem;
}
.section__body > h3:first-child { margin-top: 0; }
.section h3 a { color: var(--ink); }
.section h3 a:hover { color: var(--accent); }

/* Wide screens: heading in a left column, text on the right */
@media (min-width: 900px) {
  .section {
    display: grid;
    grid-template-columns: 14rem 1fr;
    column-gap: 3rem;
  }
  .section h2 { margin-bottom: 0; }
}

/* Simple lists */
.plain-list {
  margin: 0 0 1.25em;
  padding-left: 1.2em;
}
.plain-list li { margin-bottom: 0.2em; }
.plain-list li::marker { color: var(--sage); }

/* Background timeline */
.history { margin: 0; }
.history > div {
  padding: 1rem 0;
  border-top: 1px solid var(--sage);
}
.history dt { font-weight: 600; }
.history__years {
  display: inline-block;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  font-weight: 400;
  color: var(--sage);
  font-size: 0.95rem;
}
.history dd { margin: 0.25rem 0 0; }

/* Link list (writing, archive) */
.link-list {
  list-style: none;
  margin: 0 0 1.5em;
  padding: 0;
}
.link-list li { margin-bottom: 1rem; }
.link-list a { font-weight: 500; }
.meta {
  display: block;
  color: var(--sage);
  font-size: 0.95rem;
}

/* Connect */
.lead {
  font-size: 1.25rem;
  line-height: 1.45;
}
address {
  font-style: normal;
  margin: 1.5rem 0;
}
.email {
  font-size: clamp(1.2rem, 3.5vw, 1.5rem);
  font-weight: 500;
  word-break: break-word;
}
.inline-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--sage);
  padding: 2rem var(--gutter) 2.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  color: var(--sage);
  font-size: 0.9rem;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--sage); }
.site-footer a:hover { color: var(--accent); }

/* ---------- Archive pages ---------- */

.plain-page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 4rem;
}
.plain-page .back {
  display: inline-block;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}
.plain-page h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.4rem);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.plain-page h2 {
  color: var(--accent);
  font-size: 1.3rem;
  margin: 3rem 0 1rem;
}
.plain-page .intro { color: var(--sage); }
.plain-page .note {
  color: var(--sage);
  font-size: 0.95rem;
  font-style: italic;
}
.plain-page ul:not(.link-list) { padding-left: 1.2em; }
.plain-page .site-footer {
  margin-top: 4rem;
  padding-left: 0;
  padding-right: 0;
}
