/* jordandamhof.com — land media + land research
   Hand-built static page. Palette echoes the Iowa land-industry signature:
   forest green, sunrise orange, soil browns, warm cream. */

/* ---------- fonts (self-hosted, latin subsets) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("fonts-land/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts-land/sourcesans3-var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts-land/plexmono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts-land/plexmono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces-fallback";
  src: local("Georgia");
  size-adjust: 105%;
  ascent-override: 93%;
  descent-override: 24%;
  line-gap-override: 0%;
}

/* ---------- tokens ---------- */
:root {
  --cream: #f7f2e7;
  --paper: #fffdf6;
  --loam: #2a2118;
  --ink-soft: #5c5243;
  --forest: #0a540a;
  --pine: #122b16;
  --sage: #6b7b5b;
  --sunrise: #f1592a;
  --sunrise-soft: #ffb38f;
  --sunrise-text: #b5431a; /* AA-safe on cream/paper at small sizes */
  --sage-text: #5a684c; /* AA-safe sage for small mono labels */
  --rule: #dcd3c0;
  --rule-dark: rgba(247, 242, 231, 0.22);

  --font-display: "Fraunces", "Fraunces-fallback", Georgia, serif;
  --font-body: "Source Sans 3", "Gill Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --measure: 64ch;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--loam);
  font-family: var(--font-body);
  font-size: 1.1875rem; /* 19px */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1.1em;
  max-width: var(--measure);
}

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

img {
  max-width: 100%;
  height: auto; /* attribute width/height otherwise hold their px height while max-width squeezes — distortion */
  display: block;
}

section {
  padding: clamp(4rem, 9vw, 7.5rem) var(--pad);
}

.wrap {
  max-width: 70rem;
  margin: 0 auto;
}

.narrow {
  max-width: 46rem;
  margin: 0 auto;
}

/* mono eyebrow above each section title */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-text);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  max-width: 22ch;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--cream);
  isolation: isolate;
  padding: var(--pad);
}
.hero-img {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}
.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  /* layered land scrim: pine over loam, lighter mid-frame */
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      180deg,
      rgba(18, 43, 22, 0.78) 0%,
      rgba(18, 43, 22, 0.45) 30%,
      rgba(26, 24, 14, 0.38) 62%,
      rgba(22, 18, 10, 0.82) 100%
    );
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-top a {
  color: var(--cream);
  text-decoration: none;
}
.hero-top a:hover {
  color: var(--sunrise-soft);
}
.hero-main {
  max-width: 62rem;
  margin: 0 auto;
  width: 100%;
  padding-bottom: clamp(2rem, 6vh, 4rem);
}
.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #c9d6b8;
  margin-bottom: 1.4rem;
}
.hero-kicker .tick {
  color: var(--sunrise);
}
.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 600;
  color: var(--paper);
  max-width: 16ch;
  margin-bottom: 0.5em;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.55;
  max-width: 52ch;
  color: rgba(247, 242, 231, 0.88);
}
.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(247, 242, 231, 0.68);
}
.scroll-cue {
  color: rgba(247, 242, 231, 0.75);
  text-decoration: none;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-cue:hover {
  color: var(--sunrise-soft);
}

/* ---------- what I do ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.6rem 1.5rem 1.3rem;
}
.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.45em;
}
.card p {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
.card .tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest);
  display: block;
  margin-bottom: 0.9rem;
}

/* paper band — alternating section ground */
.band-paper {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* pine band — the dark product showcase */
.band-pine {
  background: var(--pine);
  color: var(--cream);
}
.band-pine .eyebrow {
  color: #c9d6b8;
}
.band-pine .eyebrow::after {
  background: rgba(247, 242, 231, 0.18);
}
.band-pine .section-title {
  color: var(--paper);
}
.lead-light {
  color: rgba(247, 242, 231, 0.86);
  max-width: 56ch;
}
.band-pine .ship {
  border-color: transparent;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}
.ship-thumb {
  display: block;
  margin: -1.8rem -1.7rem 1.4rem;
  border-bottom: 1px solid var(--rule);
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  line-height: 0;
}
.ship-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 11 / 8;
  object-fit: cover;
  object-position: top;
}
.ship-cover {
  aspect-ratio: 11 / 8;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(241, 89, 42, 0.16), transparent 55%),
    var(--pine);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  padding: 1.6rem 1.7rem;
  text-decoration: none;
  line-height: 1.25;
}
.cover-kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c9d6b8;
  margin-bottom: 0.9rem;
}
.cover-stat {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--paper);
}
.cover-stat-2 {
  color: var(--sunrise-soft);
}
.cover-cap {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: rgba(247, 242, 231, 0.75);
}
.live-dot {
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: #3f9b46;
  box-shadow: 0 0 0 3px rgba(63, 155, 70, 0.2);
  margin-right: 0.5em;
}

/* ---------- proof: the brief (document artifact) ---------- */
.record-intro {
  margin-bottom: 3rem;
}
.brief-doc {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
}
.brief-head,
.brief-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.brief-head {
  border-bottom: 1px solid var(--rule);
}
.brief-head .geo {
  color: var(--sage-text);
}
.brief-foot {
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.brief-pages {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  align-items: start;
  gap: clamp(1rem, 2.5vw, 1.8rem);
  padding: clamp(1.2rem, 3vw, 2rem);
}
.brief-page {
  display: block;
  text-decoration: none;
}
.brief-page img {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 3px;
  box-shadow: 0 6px 18px rgba(42, 33, 24, 0.12);
}
.brief-page:hover img {
  box-shadow: 0 8px 22px rgba(42, 33, 24, 0.22);
}
.page-cap {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.7rem;
}
.brief-page:hover .page-cap {
  color: var(--sunrise-text);
}

/* Q / M / F / L blocks */
.qmfl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (min-width: 720px) {
  .qmfl {
    grid-template-columns: 1fr 1fr;
  }
}
.qmfl-item {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.3rem 1.4rem;
  font-size: 0.98rem;
  line-height: 1.6;
}
.qmfl-item .label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sunrise-text);
  display: block;
  margin-bottom: 0.7rem;
}
.qmfl-item p {
  margin: 0;
  color: var(--loam);
}
.qmfl-item p + p {
  margin-top: 0.6em;
}

.pipeline {
  margin-top: 2.5rem;
  font-size: 0.92rem;
}
.pipeline ol {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  counter-reset: step;
}
.pipeline li {
  counter-increment: step;
  padding: 1rem 1.2rem;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  line-height: 1.5;
}
.pipeline li:last-child {
  border-bottom: 0;
}
@media (min-width: 900px) {
  .pipeline ol {
    grid-template-columns: repeat(5, 1fr);
  }
  .pipeline li {
    border-bottom: 0;
    border-right: 1px solid var(--rule);
  }
  .pipeline li:last-child {
    border-right: 0;
  }
}
.pipeline li::before {
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--sunrise-text);
  display: block;
  margin-bottom: 0.4rem;
}
.pipeline li strong {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.pipeline li span {
  color: var(--ink-soft);
  font-size: 0.88rem;
}
.discretion {
  margin-top: 2rem;
  font-size: 1rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--sunrise);
  padding-left: 1.1rem;
  max-width: 56ch;
}
.manifest {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  max-width: 70ch;
  margin: 1.1rem 0 0;
}
.midline {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-top: 2.2rem;
}
/* ---------- market fluency ---------- */
.stat-src {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-text);
  margin: -0.2rem 0 1.6rem;
}
.estate-line {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
  max-width: 26ch;
  margin: 0 0 1rem;
  color: var(--pine);
}
.estate-line strong {
  font-weight: inherit;
  color: var(--sunrise);
}

/* ---------- shipped software ---------- */
.ships {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.ship {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.8rem 1.7rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.ship h3 {
  font-size: 1.55rem;
  margin-bottom: 0.2em;
}
.ship .sub {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-text);
  margin-bottom: 1.1rem;
}
.ship dl {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.55;
}
.ship dt {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sunrise-text);
  margin: 1rem 0 0.3rem;
}
.ship dt:first-child {
  margin-top: 0;
}
.ship dd {
  margin: 0;
  color: var(--loam);
}
.ship .ship-link {
  margin-top: auto;
  padding-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

/* ---------- about / why ---------- */
.about-portrait {
  float: right;
  width: clamp(6rem, 24%, 9.5rem);
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--rule);
  margin: 0.3rem 0 1rem 1.4rem;
}
.about-figure {
  margin: 2rem 0;
  clear: right;
}
.about-figure img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--rule);
}
.about-figure figcaption {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-top: 0.7rem;
}
.boundary {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--pine);
  max-width: 30ch;
  margin: 2.2rem 0 0;
}

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  padding-top: clamp(5rem, 11vw, 8.5rem);
  padding-bottom: clamp(5rem, 11vw, 8.5rem);
}
.cta .eyebrow {
  justify-content: center;
}
.cta .eyebrow::after {
  content: none;
}
.cta h2 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
}
.cta p {
  margin-left: auto;
  margin-right: auto;
}
.cta-phone {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--forest);
  text-decoration: none;
  margin: 1.6rem 0 0.4rem;
}
.cta-phone:hover {
  color: var(--sunrise);
}
.cta-mail {
  font-family: var(--font-mono);
  font-size: 0.95rem;
}
.cta-note {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-top: 1.8rem;
}

/* ---------- footer ---------- */
footer {
  background: var(--pine);
  color: rgba(247, 242, 231, 0.75);
  padding: 2.2rem var(--pad);
  font-size: 0.85rem;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 2rem;
}
footer p {
  margin: 0;
  max-width: none;
}
footer a {
  color: rgba(247, 242, 231, 0.9);
}
footer .credits {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(247, 242, 231, 0.62);
}

/* ---------- reveal motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}
.reveal.in,
.reveal:focus-within {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 700px) {
  .brief-pages {
    grid-template-columns: 1fr 1fr;
  }
  .brief-page:first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 1.0625rem;
  }
  .hero-kicker {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
  }
  .hero-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .about-portrait {
    width: 7rem;
  }
}

/* ---------- print ---------- */
@media print {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero {
    min-height: 0;
    color: #000;
  }
  .hero-img,
  .hero::after,
  .scroll-cue,
  .ship-thumb,
  .live-dot {
    display: none;
  }
  .hero-top,
  .hero-top a,
  .hero-kicker,
  .hero-sub,
  .hero-foot,
  .hero h1 {
    color: #000;
  }
  .band-pine {
    background: none;
    color: #000;
  }
  .band-pine .section-title,
  .band-pine .eyebrow,
  .lead-light {
    color: #000;
  }
  .ship {
    box-shadow: none;
    border: 1px solid #999;
  }
  .brief-page img {
    box-shadow: none;
  }
  footer {
    background: none;
  }
  footer p,
  footer a,
  footer .credits {
    color: #000;
  }
  main a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }
  h2,
  h3 {
    break-after: avoid;
  }
  .card,
  .ship,
  .qmfl-item,
  .brief-page,
  .about-figure,
  .pipeline ol {
    break-inside: avoid;
  }
  @page {
    margin: 1.5cm;
  }
}
