/* ============================================================
   LOOK & FEEL
   Colors and font are set here at the top — change them in one place.
   ============================================================ */

:root {
  --paper: #faf9f5;      /* background: near-white, warm undertone */
  --ink: #2a2320;        /* main text: deep brown */
  --muted: #6f6b62;      /* secondary text, meta: warm grey */
  --line: #e4e2da;       /* thin divider lines */
  --accent: #5b5e43;     /* muted olive (from the shirt in the photo): button, links, section labels */
  --accent-alt: #efefe8; /* calm surfaces: contact block, behind the photo */

  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 36rem;      /* max width of text lines */
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding-inline: 1.25rem;
}

@media (min-width: 40rem) {
  .wrap {
    padding-inline: 2rem;
  }
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.brand {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.lang {
  display: flex;
  gap: 0.125rem;
}

.lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
}

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

.lang a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
}

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

.hero {
  padding-block: 4.5rem 6rem;
}

@media (min-width: 40rem) {
  .hero {
    padding-block: 8rem 9rem;
  }
}

.eyebrow {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.hero h1 {
  max-width: 24ch;
  margin: 0;
  font-size: clamp(1.875rem, 5.6vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-sub {
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

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

.section {
  padding-block: 5rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 40rem) {
  .section {
    padding-block: 7.5rem;
  }
}

.label {
  margin: 0 0 1.25rem;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2 {
  max-width: 24ch;
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.prose p {
  max-width: var(--measure);
  margin: 0 0 1.25em;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* First paragraph of the story reads a little larger */
.story p:first-child {
  font-size: 1.25rem;
  line-height: 1.5;
}

/* ---------- Photo ---------- */

.portrait {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 22rem;
  aspect-ratio: 4 / 5;
  margin: 0 0 3.5rem;
  overflow: hidden;
  border-radius: 2px;
  background: var(--accent-alt);
  color: var(--muted);
  font-size: 0.875rem;
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Contact / email capture ---------- */

.cta {
  padding: 2rem 1.25rem;
  border-radius: 0.75rem;
  background: var(--accent-alt);
}

@media (min-width: 40rem) {
  .cta {
    padding: 3rem;
  }
}

.cta > p {
  max-width: var(--measure);
  margin: 0 0 1.5rem;
}

.signup {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  max-width: 30rem;
}

@media (min-width: 30rem) {
  .signup {
    flex-direction: row;
  }
}

.signup input {
  flex: 1 1 auto;
  min-width: 0;
  height: 3.25rem;
  padding: 0 1rem;
  border: 1px solid var(--muted);
  border-radius: 0.5rem;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem; /* 16px stops iPhones from zooming in */
}

.signup input::placeholder {
  color: var(--muted);
}

.signup input:focus-visible {
  border-color: var(--accent);
  outline-offset: 1px;
}

.signup button {
  height: 3.25rem;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--accent);
  color: var(--paper);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.signup button:hover {
  background: var(--ink);
}

/* Ink rather than muted, so the small print stays easy to read on the contact block */
.note {
  margin: 0.875rem 0 0;
  color: var(--ink);
  font-size: 0.875rem;
}

.thanks {
  margin: 0;
  padding: 1rem 1.125rem;
  max-width: 30rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 0.5rem 0.5rem 0;
  background: var(--paper);
  font-weight: 500;
}

.thanks:focus {
  outline: none;
}

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

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 2.5rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer nav {
  display: flex;
  gap: 1.5rem;
}

.site-footer p {
  margin: 0;
}
