/* Enduramill v1 — craft-industrial editorial */
:root {
  --green-950: #0a241c;
  --green-900: #0e3b2c;
  --green-800: #14503c;
  --green-700: #1c6a4f;
  --brass-300: #e3c98d;
  --brass-400: #cfa95f;
  --brass-500: #b8903f;
  --paper: #f6f2e9;
  --paper-dim: #ece5d4;
  --ink: #191712;
  --ink-soft: #4a453a;
  --line: #d9d0ba;
  --white: #fffdf8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 242, 233, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: "Fraunces", Georgia, serif; font-size: 1.35rem; font-weight: 650; letter-spacing: 0.01em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; color: var(--ink-soft); font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--green-900); }
.btn {
  display: inline-block; text-decoration: none; cursor: pointer; border: none;
  font-family: inherit; font-weight: 600; font-size: 0.95rem;
  padding: 12px 22px; border-radius: 999px;
  background: var(--green-900); color: var(--white);
  transition: background 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: var(--green-800); transform: translateY(-1px); }
.btn-brass { background: var(--brass-400); color: var(--green-950); }
.btn-brass:hover { background: var(--brass-300); }
.btn-ghost {
  background: transparent; color: var(--paper);
  border: 1px solid rgba(246,242,233,0.45);
}
.btn-ghost:hover { background: rgba(246,242,233,0.12); }

/* ---------- hero ---------- */
.hero {
  background: var(--green-950);
  color: var(--paper);
  padding: 96px 0 88px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 420px at 78% 12%, rgba(207,169,95,0.14), transparent 60%);
}
.hero-kicker {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brass-300); margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); max-width: 16ch; }
.hero h1 em { font-style: italic; color: var(--brass-300); }
.hero-sub {
  margin-top: 22px; font-size: 1.12rem; max-width: 56ch;
  color: rgba(246,242,233,0.82);
}
.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note {
  margin-top: 26px; font-size: 0.85rem; color: rgba(246,242,233,0.55);
  letter-spacing: 0.04em;
}

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--brass-500); margin-bottom: 16px;
}
.section h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); max-width: 22ch; margin-bottom: 18px; }
.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 62ch; }
.rule { width: 64px; height: 3px; background: var(--brass-400); margin: 26px 0; border: none; }

/* manifesto */
.manifesto p { font-size: 1.25rem; line-height: 1.7; color: var(--ink); max-width: 34em; }
.manifesto p + p { margin-top: 1.1em; }
.manifesto strong { color: var(--green-900); }

/* feature grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 30px 28px;
}
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { font-size: 0.98rem; color: var(--ink-soft); }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px;
  background: var(--green-900); color: var(--brass-300);
  display: flex; align-items: center; justify-content: center;
}
.card .icon svg { width: 24px; height: 24px; }

/* dark band — the mill */
.mill-band { background: var(--green-900); color: var(--paper); }
.mill-band h2 { color: var(--paper); }
.mill-band .lede { color: rgba(246,242,233,0.8); }
.mill-band .rule { background: var(--brass-400); }
.spec-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: 44px; border: 1px solid rgba(246,242,233,0.2); border-radius: 14px; overflow: hidden;
}
.spec { padding: 28px; border-left: 1px solid rgba(246,242,233,0.2); }
.spec:first-child { border-left: none; }
.spec .num { font-family: "Fraunces", Georgia, serif; font-size: 2rem; color: var(--brass-300); }
.spec .lbl { font-size: 0.9rem; color: rgba(246,242,233,0.7); margin-top: 6px; }
.dev-badge {
  display: inline-block; margin-top: 30px; padding: 8px 16px;
  border: 1px dashed rgba(207,169,95,0.7); border-radius: 999px;
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass-300);
}

/* teardowns teaser */
.teardown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; }
.teardown-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 30px 28px;
  background: var(--white); text-decoration: none; color: var(--ink);
  display: block; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.teardown-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(20,30,20,0.10); }
.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--green-900); color: var(--brass-300);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.teardown-card h3 { font-size: 1.45rem; margin-bottom: 10px; }
.teardown-card p { color: var(--ink-soft); font-size: 0.98rem; }
.teardown-card .go { margin-top: 16px; font-weight: 600; color: var(--green-800); font-size: 0.95rem; }

/* notify form */
.notify {
  background: var(--green-950); color: var(--paper);
  border-radius: 20px; padding: 56px 48px; margin-top: 20px;
  position: relative; overflow: hidden;
}
.notify::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 320px at 85% 0%, rgba(207,169,95,0.16), transparent 60%);
}
.notify h2 { color: var(--paper); }
.notify p { color: rgba(246,242,233,0.78); max-width: 54ch; }
.notify-form { margin-top: 28px; display: flex; gap: 12px; max-width: 560px; position: relative; z-index: 1; }
.notify-form input[type="email"] {
  flex: 1; padding: 14px 18px; border-radius: 999px; border: 1px solid rgba(246,242,233,0.3);
  background: rgba(246,242,233,0.08); color: var(--paper); font-size: 1rem; font-family: inherit;
}
.notify-form input[type="email"]::placeholder { color: rgba(246,242,233,0.45); }
.notify-form input[type="email"]:focus { outline: 2px solid var(--brass-400); }
.notify-small { margin-top: 16px; font-size: 0.85rem; color: rgba(246,242,233,0.55); position: relative; z-index: 1; }
.form-ok {
  display: none; margin-top: 28px; padding: 16px 20px; border-radius: 12px;
  background: rgba(207,169,95,0.14); border: 1px solid rgba(207,169,95,0.5);
  color: var(--brass-300); font-weight: 500; position: relative; z-index: 1;
}

/* footer */
.site-footer { background: var(--green-950); color: rgba(246,242,233,0.6); padding: 48px 0; font-size: 0.9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-footer a { color: var(--brass-300); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-disclaimer { max-width: 1100px; margin: 22px auto 0; padding: 0 24px; font-size: 0.75rem; line-height: 1.55; color: rgba(246,242,233,0.45); }

/* page hero (interior) */
.page-hero { background: var(--green-950); color: var(--paper); padding: 72px 0 60px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-hero p { margin-top: 16px; color: rgba(246,242,233,0.75); max-width: 60ch; font-size: 1.08rem; }

.prose p { margin-bottom: 1.2em; font-size: 1.06rem; color: var(--ink-soft); }
.prose p:first-child { font-size: 1.22rem; color: var(--ink); }
.prose h3 { margin: 1.8em 0 0.6em; font-size: 1.4rem; }

@media (max-width: 860px) {
  .grid-3, .spec-row, .teardown-grid { grid-template-columns: 1fr; }
  .spec { border-left: none; border-top: 1px solid rgba(246,242,233,0.2); }
  .spec:first-child { border-top: none; }
  .notify { padding: 40px 26px; }
  .notify-form { flex-direction: column; }
  .nav a.nav-link { display: none; }
  .section { padding: 60px 0; }
}
