:root {
  --ink: #000;
  --slate: rgb(179, 195, 207);
  --chartreuse: rgb(234, 236, 120);
  --rust: rgb(141, 78, 47);
  --highlight: rgba(234, 236, 120, 0.55);
  --wrap: 1200px;
  --pad: 40px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: 'Alegreya', Georgia, serif;
  font-size: 22px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Width container */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* Wordmark */
.wordmark {
  font-family: 'Alegreya Sans', system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  font-size: 2rem;
  padding: 2.4rem 0 0.5rem;
}

/* Two-column rows */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 5rem;
  align-items: start;
  padding: 2.2rem 0;
}
.col > *:first-child { margin-top: 0; }
.col > *:last-child { margin-bottom: 0; }

.headline {
  font-family: 'Alegreya Sans', system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.06;
  margin: 0 0 1.6rem;
  letter-spacing: -0.005em;
}

p { margin: 0 0 1.25rem; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration-thickness: 2px; }

/* Hand-drawn decorative underline (non-link) */
.ul {
  text-decoration: none;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20120%208'%20preserveAspectRatio='none'%3E%3Cpath%20d='M2,5%20C25,2.4%2045,6.6%2062,4.4%20C82,2%20100,6.2%20118,3.8'%20fill='none'%20stroke='%23141414'%20stroke-width='1.6'%20stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0.42em;
  padding-bottom: 0.1em;
}

/* Highlighter mark */
mark {
  background: linear-gradient(
    180deg,
    transparent 12%,
    var(--highlight) 12%,
    var(--highlight) 82%,
    transparent 82%
  );
  color: inherit;
  padding: 0 0.05em;
}

/* Portrait — landscape crop + warm tonal overlay */
.portrait { position: relative; margin: 0; line-height: 0; }
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.46;
  object-fit: cover;
  object-position: 50% 42%;
}
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--rust);
  opacity: 0.10;
  pointer-events: none;
}

/* Thin yellow wavy line divider */
.wave-line {
  display: block;
  width: 100%;
  height: 22px;
  margin: 1.2rem 0 0.5rem;
  overflow: visible;
}

/* Section labels — Alegreya Sans, sized to match original (~22px) */
.label {
  font-family: 'Alegreya Sans', system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
  font-size: 1.3rem;
  margin: 0 0 1.4rem;
}

/* Full-width color bands */
.band {
  position: relative;
  width: 100%;
}
.band-blue { background: var(--slate); margin-top: 6rem; }
.band-blue .wrap { padding-top: 2.6rem; padding-bottom: 4.5rem; }
.band-yellow { background: var(--chartreuse); }

/* Wavy band edges (top edge of each colored band, overlapping upward) */
.edge {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  display: block;
  pointer-events: none;
  transform: translateY(-99%);
}
.band-blue .edge { height: 82px; }
.band-yellow .edge { height: 56px; }
.edge .fill { fill: var(--slate); }
.edge .fill-yellow { fill: var(--chartreuse); }
.edge .line { fill: none; stroke: var(--rust); stroke-width: 2.5; vector-effect: non-scaling-stroke; }

/* Contact / yellow band */
.band-yellow .wrap { padding-top: 3.5rem; padding-bottom: 4rem; }
.email {
  font-family: 'Alegreya Sans', system-ui, sans-serif;
  font-size: 1.45rem;
  margin: 0 0 1.2rem;
}
.social { display: flex; gap: 1rem; }
.social a { display: inline-flex; text-decoration: none; }
.social svg { width: 24px; height: 24px; fill: var(--ink); }

/* Listings */
.listing { list-style: none; margin: 0 0 2.4rem; padding: 0; }
.listing li { margin: 0 0 0.35rem; line-height: 1.4; }

/* Project entries — consistent body weight (no heading bolding) */
.project-title {
  font: inherit;
  font-weight: 400;
  margin: 0 0 1rem;
}
.bottom .label:not(:first-child) { margin-top: 0.5rem; }

/* ---- Mobile ---- */
@media (max-width: 720px) {
  body { font-size: 20px; }
  :root { --pad: 24px; }
  .row { grid-template-columns: 1fr; gap: 0; padding: 1.4rem 0; }
  .hero .col:last-child { margin-top: 1.6rem; }
  .wordmark { font-size: 1.6rem; padding-top: 1.8rem; }
  .portrait img { aspect-ratio: 1 / 1; }
  .band-blue { margin-top: 3rem; }
  .band-blue .edge { height: 46px; }
  .band-yellow .edge { height: 34px; }
  .band-blue .wrap { padding-bottom: 3.4rem; }
}
