
:root {
  --cream: #f7f2e8;
  --cream-dark: #eee6d7;
  --sage-light: #e5ebdf;
  --sage: #a8b69b;
  --green: #59694f;
  --green-dark: #354632;
  --ink: #30352c;
  --muted: #62665b;
  --line: #d9d2c3;
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "Lato", Arial, sans-serif;
}

/* Reset and base styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
}

a {
  color: var(--green-dark);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.28;
}

h1 {
  max-width: 690px;
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 5vw, 4.25rem);
  letter-spacing: -0.04em;
}

h1 span {
  color: var(--green);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.035em;
}

/* Accessibility helpers */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--green-dark);
  color: white;
}

.skip-link:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header and navigation */
.site-header {
  background: #fbf8f1;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  width: min(1120px, calc(100% - 44px));
  min-height: 86px;
  margin: auto;
}

.site-title {
  color: var(--green-dark);
  font: 700 1.2rem var(--serif);
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  color: #4f594a;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.text-link:hover,
.footer-inner > a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- STACKED PHOTOS BESIDE STEFAN'S STORY ---------- */

.story-photos {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.story-photos .story-photo {
  width: 100%;
  margin: 0;
}

.story-photos .story-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

/* Keep the letter on the left and both photos on the right */
@media (min-width: 769px) {
  .story-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: start;
    gap: 32px;
  }
}

/* Stack the letter and photos on smaller screens */
@media (max-width: 768px) {
  .story-layout {
    display: flex;
    flex-direction: column;
  }

  .story-box,
  .story-photos {
    width: 100%;
  }
}

.menu-toggle {
  display: none;
}

/* Welcome section */
.welcome {
  background: var(--sage-light);
  border-bottom: 1px solid #d8dfd0;
}

.welcome-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button2 {
  display: inline-block;
  padding: 12px 22px;
  border: 2px solid #a65e3b;
  border-radius: 7px;
  background: #a65e3b;
  color: #ffffff;
  font: 700 1rem var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.button2:hover {
  background: #85472c;
  border-color: #85472c;
  transform: translateY(-1px);
}

.button2:focus-visible {
  outline: 3px solid var(--green-dark);
  outline-offset: 4px;
}

.welcome-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 55px;
  width: min(1120px, calc(100% - 44px));
  min-height: 470px;
  margin: auto;
  padding: 70px 0;
}

.welcome-copy {
  max-width: 660px;
  min-width: 0;
}

.eyebrow {
  margin-bottom: 13px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.intro {
  max-width: 610px;
  margin-bottom: 28px;
  color: #4e5849;
  font-size: 1.12rem;
}

.intro2 {
  max-width: 610px;
  margin-bottom: 28px;
  padding: 10px 0;
  color: #a65e3b;
  font-size: 1rem;
  font-weight: bold;
}

/* Welcome photo */
.welcome-art {
  position: relative;
  width: 100%;
  height: 420px;
  min-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: #d5dfca;
  border: 1px solid #c3d0b7;
  border-radius: 6px;
}

.welcome-image {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 0;
  clip-path: none;
  mask-image: none;
}

/* Buttons */
.button {
  display: inline-block;
  padding: 12px 22px;
  border: 2px solid var(--green-dark);
  border-radius: 7px;
  background: var(--green-dark);
  color: white;
  font: 700 1rem var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  margin: 0 10px 10px 0;
}

.button:hover {
  background: #263724;
  transform: translateY(-1px);
}

.button-light {
  margin-top: 5px;
  border-color: var(--cream);
  background: var(--cream);
  color: var(--green-dark);
}

.button-light:hover {
  background: #e7e1d5;
}

/* General content sections */
.section {
  width: min(1000px, calc(100% - 44px));
  margin: auto;
  padding: 82px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.story {
  padding-bottom: 88px;
}

/* Stefan's story: text beside photo */
.story-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
  gap: 28px;
}

.story-box {
  min-width: 0;
  padding: 30px 34px;
  background: #fbf8f1;
  border: 1px solid var(--line);
  border-left: 6px solid var(--sage);
  border-radius: 8px;
  box-shadow: 0 4px 12px #4d4b3b0a;
}

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

.story-box .lead {
  color: var(--green-dark);
  font: 700 1.25rem/1.65 var(--serif);
}

.story-box p:not(.lead) {
  color: var(--muted);
}

.story-photo {
  min-width: 0;
  min-height: 320px;
  overflow: hidden;
  background: var(--sage-light);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.story-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center;
}

/* Living kidney donation section */
.donation {
  border-top: 1px solid var(--line);
}

.section-intro {
  max-width: 730px;
  color: var(--muted);
}

.info-list {
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.info-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #c7d1bd;
  border-radius: 50%;
  background: var(--sage-light);
  color: var(--green-dark);
  font-weight: 700;
}

.info-item h3 {
  margin: 0 0 5px;
  font: 700 1.12rem var(--serif);
}

.info-item p {
  margin: 0;
  color: var(--muted);
}

.medical-note {
  margin: 32px 0 22px;
  padding: 17px 20px;
  border-radius: 5px;
  background: #eee9dd;
  color: #55594f;
  font-size: 0.92rem;
}

.text-link {
  display: inline-block;
  font-weight: 700;
  text-underline-offset: 4px;
}

/* Sharing section */
.help-section {
  background: var(--green);
  color: #fffaf0;
}

.help-inner {
  display: grid;
  grid-template-columns: 145px 1fr;
  align-items: center;
  gap: 40px;
  width: min(1000px, calc(100% - 44px));
  margin: auto;
  padding: 62px 0 66px;
}

.help-decoration {
  display: grid;
  place-items: center;
  width: 125px;
  height: 125px;
  border: 2px solid #dce5d3;
  border-radius: 50%;
  color: #f0d7c5;
  font-size: 4rem;
}

.help-inner .eyebrow {
  color: #e0e8d8;
}

.help-inner h2 {
  margin-bottom: 12px;
}

.help-inner p:not(.eyebrow):not(.share-status) {
  max-width: 700px;
  color: #f0f0e6;
}

.share-status {
  min-height: 1.5em;
  margin: 10px 0 0;
  color: var(--cream);
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  background: var(--cream-dark);
  border-top: 1px solid #d9d0c0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 5px 20px;
  width: min(1000px, calc(100% - 44px));
  margin: auto;
  padding: 28px 0;
}

.footer-title {
  margin: 0;
  color: var(--green-dark);
  font: 700 1rem var(--serif);
}

.footer-inner p:not(.footer-title):not(.footer-note) {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner > a {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 0.9rem;
}

.footer-note {
  grid-column: 1 / -1;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid #d5ccbb;
  color: var(--muted);
  font-size: 0.78rem;
}

/* Mobile layout */
@media (max-width: 760px) {
  .header-inner {
    width: calc(100% - 34px);
    min-height: 72px;
  }

  .site-title {
    max-width: 235px;
    font-size: 1.05rem;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #fbf8f1;
  }

  .menu-toggle span:not(.sr-only) {
    width: 22px;
    height: 2px;
    background: var(--green-dark);
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 10;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 16px 22px 20px;
    background: #fbf8f1;
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .welcome-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    width: calc(100% - 38px);
    padding: 48px 0;
  }

  h1 {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .welcome-art {
    width: 100%;
    max-width: 430px;
    height: 320px;
    margin: auto;
  }

  .section {
    width: calc(100% - 38px);
    padding: 58px 0;
  }

  .story-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .story-box {
    padding: 23px 22px;
  }

  .story-photo {
    min-height: 280px;
  }

  .story-image {
    min-height: 280px;
    max-height: 420px;
  }

  .info-item {
    grid-template-columns: 42px 1fr;
    gap: 12px;
  }

  .help-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    width: calc(100% - 38px);
    padding: 48px 0;
  }

  .help-decoration {
    width: 78px;
    height: 78px;
    font-size: 2.6rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    width: calc(100% - 38px);
    padding: 24px 0;
  }

  .footer-inner > a {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    margin-top: 8px;
  }

  .footer-note {
    grid-column: 1;
  }
}

/* Stack welcome buttons on very small screens */
@media (max-width: 480px) {
  .welcome-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .welcome-buttons .button,
  .welcome-buttons .button2 {
    margin-right: 0;
    text-align: center;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
