/* Two Devs and a Dog — one stylesheet, no framework, no build step.
   Warm paper background, ink text, a single rust accent. */

:root {
  --paper:      #FBF8F3;
  --paper-deep: #F3EDE3;
  --card:       #FFFFFF;
  --ink:        #1F1D1A;
  --body:       #423D36;
  --muted:      #756E64;
  --faint:      #9C948A;
  --accent:     #A8552F;
  --accent-dim: #8C4525;
  --rule:       rgba(31, 29, 26, 0.10);

  --serif: Georgia, 'Iowan Old Style', 'Times New Roman', Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --wide: 68rem;
  --text: 44rem;
}

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

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

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

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

/* ---------- header ---------- */

.site-header {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.wordmark span { color: var(--accent); }

.header-link {
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

/* ---------- hero ---------- */

.hero {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4.5rem;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 1.4rem;
}

.lede {
  max-width: var(--text);
  font-size: 1.16rem;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 2rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #FFF8F4;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
}
.button:hover { background: var(--accent-dim); color: #FFF8F4; }

/* ---------- intro panel ---------- */

.panel {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.panel h2 { font-size: 1.9rem; margin-bottom: 1.2rem; }

.panel-media img {
  border-radius: 10px;
  box-shadow: 0 12px 34px rgba(31, 29, 26, 0.13);
}

.aside {
  margin-top: 1.6rem;
  padding-left: 1.1rem;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- generic section ---------- */

.section {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  border-top: 1px solid var(--rule);
}

.section > h2 {
  font-size: 1.55rem;
  margin-bottom: 2rem;
}

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.2rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.6rem 1.5rem;
}

.card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.97rem;
  color: var(--muted);
}

/* ---------- work list ---------- */

.work { margin: 0; }

.work-row {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: 1.5rem;
  padding: 1.3rem 0;
  border-top: 1px solid var(--rule);
}
.work-row:first-child { border-top: none; padding-top: 0; }

.work dt {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
}

.work dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.99rem;
}

.year {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--faint);
  letter-spacing: 0.03em;
}

.postscript {
  margin-top: 1.6rem;
  max-width: var(--text);
  color: var(--faint);
  font-size: 0.95rem;
}

.tools {
  max-width: var(--text);
  color: var(--muted);
  line-height: 2;
}

/* ---------- contact ---------- */

.contact {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 4rem 1.5rem 4.5rem;
  border-top: 1px solid var(--rule);
}

.contact h2 { font-size: 1.9rem; margin-bottom: 1rem; }
.contact p { max-width: var(--text); }
.contact .button { margin-top: 0.8rem; }

.contact-alt {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--paper-deep);
  padding: 2.8rem 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer > * {
  max-width: var(--wide);
  margin-left: auto;
  margin-right: auto;
}

.footer-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.footer-legal {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--faint);
}
.footer-legal strong { color: var(--muted); font-weight: 600; }

/* ---------- small screens ---------- */

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

  .panel {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  /* Photo below the text on narrow screens, and not full-bleed huge. */
  .panel-media { max-width: 18rem; }

  .work-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .hero { padding-top: 2rem; padding-bottom: 3rem; }
  .section, .panel, .contact { padding-top: 2.6rem; padding-bottom: 2.6rem; }
}
