/* Jim Durand — site styles. No build step, no external dependencies. */

:root {
  --paper: #f6f1e7;
  --paper-alt: #ece4d3;
  --ink: #26221d;
  --ink-soft: #5c5448;
  --rule: #d5c9b2;
  --rust: #a8431f;
  --rust-dark: #7f3015;
  --steel: #2f3a3d;
  --white: #fffdf8;

  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

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

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

a { color: var(--rust); }
a:hover { color: var(--rust-dark); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; }

.wrap { width: min(100% - 2.5rem, 62rem); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--white); padding: .5rem 1rem; z-index: 20;
}
.skip:focus { left: 0; }

/* ---------- Masthead ---------- */

.masthead {
  position: sticky; top: 0; z-index: 10;
  background: var(--steel);
  color: var(--white);
  border-bottom: 3px solid var(--rust);
}
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding-block: .7rem;
}
.brand {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 700;
  color: var(--white); text-decoration: none; letter-spacing: .01em;
}
.brand:hover { color: var(--white); }
.masthead nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.masthead nav a {
  color: #d9d3c5; text-decoration: none;
  font-size: .9rem; letter-spacing: .04em; text-transform: uppercase;
}
.masthead nav a:hover { color: var(--white); text-decoration: underline; text-underline-offset: .3em; }

/* ---------- Type ---------- */

h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 7vw, 4.5rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }

.eyebrow {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--rust); margin-bottom: .6rem;
}
.subtitle { font-style: italic; color: var(--ink-soft); margin-top: -1rem; margin-bottom: 2rem; }

.text-link { font-weight: 600; text-underline-offset: .25em; }

.button {
  display: inline-block; background: var(--rust); color: var(--white);
  padding: .7rem 1.3rem; border-radius: 3px; text-decoration: none; font-weight: 600;
}
.button:hover { background: var(--rust-dark); color: var(--white); }

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

.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section-alt { background: var(--paper-alt); border-block: 1px solid var(--rule); }

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

.hero { padding-block: clamp(2.5rem, 7vw, 5rem); border-bottom: 1px solid var(--rule); }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.lede {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.4;
  color: var(--ink-soft); margin: 1rem 0 2rem; max-width: 22ch;
}
.hero-links { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin: 0; }
.hero-print { transform: rotate(1.5deg); }

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

.print {
  margin: 0; background: var(--white);
  padding: .6rem .6rem .5rem;
  box-shadow: 0 1px 2px rgba(38, 34, 29, .18), 0 10px 26px rgba(38, 34, 29, .14);
}
.print img { width: 100%; }
.print a { display: block; }
.print figcaption {
  font-family: var(--mono); font-size: .78rem; color: var(--ink-soft);
  text-align: center; padding-top: .5rem;
}
/* Small original scans: don't blow them up past what they can carry. */
.print-small { width: min(100%, 22rem); }

/* ---------- Career timeline ---------- */

.career-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.group-title {
  font-family: var(--mono); font-size: .8rem; font-weight: 400;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
  padding-bottom: .6rem; border-bottom: 2px solid var(--ink);
}
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid; grid-template-columns: 8.2rem 1fr; gap: 1rem;
  padding: .8rem 0; border-bottom: 1px solid var(--rule);
}
.years { font-family: var(--mono); font-size: .9rem; color: var(--rust); padding-top: .15em; white-space: nowrap; }
.what small { display: block; font-size: .85rem; color: var(--ink-soft); }
.timeline-strong .what { font-weight: 600; }
.timeline-strong .what small { font-weight: 400; }

/* ---------- Feature layouts ---------- */

.feature {
  display: grid; grid-template-columns: minmax(15rem, 1fr) 1.6fr;
  gap: clamp(1.5rem, 4vw, 3rem); align-items: start;
}
.feature-wide { grid-template-columns: 1.5fr 1fr; align-items: center; }

.pair {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 3vw, 2rem); margin-top: clamp(1rem, 3vw, 2rem);
}

.spec-plate {
  margin: 0; background: var(--steel); color: #ece7da;
  font-family: var(--mono); font-size: .95rem;
  padding: 1.25rem 1.4rem; border-radius: 4px;
  border: 1px solid #1d2527; box-shadow: inset 0 0 0 4px #37444780;
}
.spec-plate > div {
  display: grid; grid-template-columns: 6.5rem 1fr; gap: .75rem;
  padding: .55rem 0; border-bottom: 1px dashed #56666a;
}
.spec-plate > div:last-child { border-bottom: 0; }
.spec-plate dt { text-transform: uppercase; font-size: .75rem; letter-spacing: .1em; color: #a9b6b8; padding-top: .2em; }
.spec-plate dd { margin: 0; }
.spec-plate ul { margin: 0; padding: 0; list-style: none; }
.spec-plate li::before { content: "- "; color: #a9b6b8; }

.story {
  display: grid; grid-template-columns: 1.4fr auto;
  gap: clamp(1.5rem, 5vw, 4rem); align-items: center;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.story-text { max-width: 36rem; }
.story-text p:last-child { margin-bottom: 0; }
.pull {
  font-family: var(--serif); font-size: 1.45rem; line-height: 1.3; font-weight: 700;
  border-left: 4px solid var(--rust); padding-left: 1rem; margin-block: 1.4rem;
}

.farm { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.farm h2 { margin-bottom: .75rem; }
.farm p:last-child { margin: 0; }

/* ---------- Bucket list ---------- */

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 2rem); }
.card {
  background: var(--white); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(38, 34, 29, .08);
  display: flex; flex-direction: column;
}
.video { aspect-ratio: 16 / 9; background: #111; display: block; position: relative; overflow: hidden; }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
/* Thumbnails are 4:3 with black bars; cover-crop them to the 16:9 frame. */
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
a.video:hover img { transform: scale(1.03); }
.play {
  position: absolute; inset: 0; margin: auto;
  width: 4.25rem; height: 4.25rem; border-radius: 50%;
  background: var(--rust); box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
  transition: background .2s ease;
}
.play::after {
  content: ""; position: absolute; top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid; border-width: .75rem 0 .75rem 1.25rem;
  border-color: transparent transparent transparent var(--white);
}
a.video:hover .play { background: var(--rust-dark); }
.card-body { padding: 1.25rem 1.4rem 1.4rem; }
.card-body h3 { margin-bottom: .6rem; }
.card-body p:last-child { margin: 0; }
.card-tag {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--rust); margin-bottom: .4rem;
}

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

.footer { background: var(--steel); color: #cfc9bb; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; font-family: var(--mono); }
.footer a { color: #cfc9bb; }
.footer a:hover { color: var(--white); }

/* ---------- Small screens ---------- */

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .hero-grid, .career-grid, .feature, .feature-wide, .story, .farm, .cards { grid-template-columns: 1fr; }
  .pair { grid-template-columns: 1fr; }
  .hero-print { transform: none; }
  .lede { max-width: none; }
  .masthead nav { gap: .9rem; }
  .masthead nav a { font-size: .78rem; }
  .timeline li { grid-template-columns: 6.8rem 1fr; gap: .75rem; }
  .print-small { margin-inline: auto; }
}

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

@media print {
  .masthead, .video, .skip { display: none; }
  .section-alt { background: none; }
}
