/* Irontill marketing site — iron/charcoal + copper, no frameworks */
:root {
  --iron: #1c1916;
  --ink: #1c1916;
  --cream: #f4efe6;
  --paper: #faf7f2;
  --muted: #4a453e;
  --line: #d9d1c4;
  --copper: #a34e1c;
  --copper-hover: #8a3d16;
  --copper-soft: #c56a2d;
  --on-copper: #fff8f0;
  --shadow: 0 30px 64px -28px rgba(28, 25, 22, 0.5);
  --font-serif: "Source Serif Pro", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --measure: 70rem;
  --gutter: clamp(1.25rem, 4vw, 2rem);
}

@font-face {
  font-family: "Source Serif Pro";
  src: url("/fonts/SourceSerifPro-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif Pro";
  src: url("/fonts/SourceSerifPro-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--copper); }
a:hover { color: var(--copper-hover); }

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 20;
  background: var(--iron);
  color: var(--cream);
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
}
.skip:focus { top: 0.75rem; }

.bar {
  height: 5px;
  background: var(--copper-soft);
}

.wrap {
  width: min(var(--measure), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
}

.wordmark {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--iron);
  text-decoration: none;
}
.wordmark:hover { color: var(--iron); }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--copper); }
.nav .btn { color: var(--on-copper); }
.nav .btn:hover { color: var(--on-copper); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  background: var(--copper);
  color: var(--on-copper);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
  border: 1px solid transparent;
  line-height: 1.2;
}
.btn:hover {
  background: var(--copper-hover);
  color: var(--on-copper);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(244, 239, 230, 0.35);
}
.btn-ghost:hover {
  background: rgba(244, 239, 230, 0.08);
  color: var(--cream);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

/* Hero */
.hero {
  background: var(--iron);
  color: var(--cream);
  padding: 4.25rem 0 0;
}
.hero-copy {
  max-width: 40rem;
  margin-bottom: 2.75rem;
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.15rem, 5.4vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}
.hero .lede {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.55;
  color: #d4c8b8;
  max-width: 38rem;
}
.hero .note {
  margin: 1.1rem 0 0;
  color: #b7aa9a;
  font-size: 0.95rem;
}

.hero-shot {
  padding-bottom: 0;
}
.shot {
  background: #111;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(244, 239, 230, 0.08);
  border-bottom: 0;
}
.shot img { width: 100%; }
.shot-page {
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
  overflow: hidden;
}
.caption {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.7rem 0 0;
}

/* Features */
.features {
  padding: 4.5rem 0 2rem;
}
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: 3.25rem 0;
  border-top: 1px solid var(--line);
}
.feature:first-child { border-top: 0; padding-top: 0; }
.feature.reverse .feature-text { order: 2; }
.feature.reverse .feature-media { order: 1; }

.feature h2,
.download h2,
.also h2,
.page h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 0.85rem;
}
.feature p,
.also p,
.download p,
.page p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}
.feature p:last-child,
.also li {
  margin-bottom: 0;
}

.also {
  padding: 0 0 4.5rem;
}
.also-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem 1.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.also li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.05rem 1.15rem;
}
.also strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.also span { color: var(--muted); font-size: 0.95rem; }

/* Download */
.download {
  background: var(--iron);
  color: var(--cream);
  padding: 4.25rem 0;
}
.download h2 { color: var(--cream); }
.download p { color: #d4c8b8; }
.download .wrap { max-width: 58rem; }
.download .btn-row { margin-top: 1.35rem; }
.fine {
  font-size: 0.9rem;
  color: #b7aa9a !important;
  margin-top: 1.25rem !important;
}
.download-ver {
  margin: 1.35rem 0 0 !important;
  font-weight: 600;
  color: var(--cream) !important;
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.35rem;
}
.download-card {
  border: 1px solid rgba(244, 239, 230, 0.18);
  border-radius: 8px;
  padding: 1.15rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.download-card h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0;
  color: var(--cream);
}
.download-card .btn { align-self: flex-start; }
.download-meta,
.download-alt,
.download-sums {
  margin: 0 !important;
  font-size: 0.9rem;
  color: #b7aa9a !important;
}
.download-sha {
  margin: 0 !important;
  font-size: 0.75rem;
  color: #b7aa9a !important;
  line-height: 1.45;
}
.download-sha span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}
.download-sha code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
  color: #e8dfd2;
}
.download-alt a,
.download-sums a {
  color: #e8dfd2;
}
.download-alt a:hover,
.download-sums a:hover { color: var(--cream); }
.download-sums { margin-top: 1.1rem !important; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover { color: var(--copper); }

/* Inner pages */
.page {
  padding: 3.25rem 0 4.5rem;
}
.page .wrap { max-width: 42rem; }
.page h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.35rem;
  margin: 2rem 0 0.6rem;
}
.page ul { color: var(--muted); padding-left: 1.2rem; }

@media (max-width: 800px) {
  .hero { padding-top: 3rem; }
  .download-grid { grid-template-columns: 1fr; }
  .feature,
  .feature.reverse .feature-text,
  .feature.reverse .feature-media {
    grid-template-columns: 1fr;
    order: unset;
  }
  .feature-media { order: 0; }
  .feature-text { order: 1; }
  .nav .btn { display: none; } /* CTA already in hero; saves space */
}
