/* =========================================================
   aricwilmunder.com
   Shared site styles
   ========================================================= */

:root {
  --paper: #f4f1ea;
  --paper-deep: #e9e4d8;
  --ink: #1e2426;
  --muted: #666a68;
  --accent: #8c3f2b;
  --accent-dark: #682e20;
  --rule: #cfc8b9;
  --dark: #20282a;
  --white: #fffdf8;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --shell: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.site-shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: rgba(244, 241, 234, 0.96);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-name {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 24px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover, .site-nav a:focus-visible { color: var(--accent); }

/* Hero */
.hero {
  padding-block: 86px 94px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
  align-items: center;
  gap: 64px;
}

.hero h1 {
  margin: 14px 0 28px;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 5.5vw, 6.1rem);
  line-height: 0.97;
  letter-spacing: -0.052em;
  font-weight: 700;
}

.hero-intro {
  max-width: 650px;
  margin: 0;
  color: #454b4c;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.7vw, 1.42rem);
  line-height: 1.52;
}

.hero-art {
  margin: 0;
}

.hero-art img {
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  background: #eee9df;
}

.hero-art figcaption {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.hero-art figcaption strong {
  color: var(--ink);
  font-weight: 750;
}

.eyebrow, .feature-kicker, .work-status {
  margin: 0;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Shared sections */
.section { padding-block: 96px; }
.section-tinted { background: var(--paper-deep); }

.section-rule {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-heading h2 {
  margin: 7px 0 14px;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Career */
.decade-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.decade-card {
  min-height: 240px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: background 140ms ease;
}

.decade-card:hover, .decade-card:focus-visible { background: var(--white); }

.decade-card .decade {
  margin-bottom: auto;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.decade-card strong {
  margin: 24px 0 9px;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.15;
}

.decade-card span:last-child {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Archive features */
.feature-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 22px;
}

.feature {
  min-height: 360px;
  padding: 36px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 26px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--rule);
}

.feature-dark {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

.feature-number {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 2.2rem;
  font-style: italic;
}

.feature h3 {
  margin: 7px 0 14px;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.feature p:not(.feature-kicker) { color: #696b67; }
.feature-dark p:not(.feature-kicker) { color: #d8d4ca; }

.text-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.feature-dark .text-link { color: #e2a38f; }

/* Split sections */
.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 90px;
  align-items: start;
}

.split .section-heading { margin-bottom: 0; }

.split-content {
  max-width: 700px;
  padding-top: 25px;
}

.lead {
  margin-top: 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.45;
}

/* Workbench */
.workbench-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.work-card {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--rule);
  background: rgba(255, 253, 248, 0.35);
}

.work-card h3 {
  margin: 12px 0;
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.15;
}

.work-card p:last-child {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  padding-block: 34px;
  background: var(--dark);
  color: #d9d4ca;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.86rem;
}

.footer-inner p { margin: 0; }
.footer-note { color: #a9aaa4; }

/* Responsive */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-block: 72px;
  }

  .hero-copy { max-width: 820px; }
  .hero-art { max-width: 820px; }

  .decade-grid, .workbench-grid { grid-template-columns: repeat(2, 1fr); }

  .feature-grid, .split {
    grid-template-columns: 1fr;
    gap: 38px;
  }
}

@media (max-width: 700px) {
  .header-inner {
    align-items: flex-start;
    padding-block: 20px;
  }

  .site-nav { gap: 12px 18px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }

  .site-shell {
    width: min(calc(100% - 30px), var(--shell));
  }

  .header-inner { display: block; }

  .site-nav {
    margin-top: 14px;
    justify-content: flex-start;
  }

  .hero { padding-block: 54px 64px; }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  .hero-art figcaption {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .section { padding-block: 68px; }

  .decade-grid, .workbench-grid { grid-template-columns: 1fr; }

  .decade-card { min-height: 205px; }

  .feature {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .feature-number { font-size: 1.65rem; }

  .footer-inner { display: block; }

  .footer-note { margin-top: 5px !important; }
}
