:root {
  --forge: #0c0f14;
  --panel: #151a22;
  --raised: #1e2530;
  --line: #2e3848;
  --ink: #f4f0e8;
  --muted: #a8a49a;
  --faint: #6e6a62;
  --ember: #ff6b2c;
  --copper: #c97b3d;
  --volt: #3ddcff;
  --gold: #e8b84a;
  --rust: #c44536;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--forge);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(255, 107, 44, 0.18), transparent 42%),
    radial-gradient(ellipse at 88% 8%, rgba(61, 220, 255, 0.1), transparent 38%);
  z-index: 0;
}

.margin-dots {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 40;
}
.margin-dots a {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--ember);
  background: transparent;
  display: block;
}
.margin-dots a.is-active,
.margin-dots a:hover {
  background: var(--ember);
  box-shadow: 0 0 10px var(--ember);
}

.mill-sheet {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 56px 80px 28px;
}

.mill-window { margin-bottom: 72px; }
.window-sill {
  background: linear-gradient(180deg, #2a2118, #1a1510);
  border: 10px solid #3a2e24;
  border-radius: 6px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45), inset 0 0 0 2px #c97b3d55;
}
.window-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #1a140f;
  border-bottom: 2px solid #c97b3d66;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold);
}
.rivet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #e8c38a, #8a5a2a);
  box-shadow: inset 0 -1px 2px #000;
}
.window-pane {
  position: relative;
  min-height: 520px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: 36px 32px 40px;
  overflow: hidden;
}
.pane-atmosphere {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: saturate(0.85);
}
.pane-copy, .device-window { position: relative; z-index: 1; }
.mill-kicker {
  margin: 0 0 10px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
}
h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.tagline {
  margin: 0;
  max-width: 28ch;
  font-size: 1.15rem;
  color: var(--muted);
}
.device-window {
  margin: 0;
  background: #0a0c10;
  border: 8px solid #2e3848;
  border-radius: 28px;
  padding: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  justify-self: end;
  max-width: 280px;
}
.device-window img {
  display: block;
  width: 100%;
  border-radius: 18px;
}

.yard-head {
  max-width: 40rem;
  margin-bottom: 28px;
}
.yard-head h2, .centered-band h2, #privacy h2, #support h2 {
  margin: 0 0 8px;
  font-size: 1.85rem;
}
.yard-head p, .centered-band p {
  margin: 0;
  color: var(--muted);
}

.cork-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
  padding: 32px 24px 40px;
  background:
    repeating-linear-gradient(90deg, #3a2a1c 0 2px, transparent 2px 18px),
    linear-gradient(160deg, #6a4a32, #4a3224 40%, #3a281c);
  border: 3px solid #2a1c14;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35);
}
.pin-note {
  position: relative;
  background: #efe6d4;
  color: #1e1810;
  padding: 28px 20px 20px;
  box-shadow: 4px 8px 0 rgba(0, 0, 0, 0.25);
  transform: rotate(-1.4deg);
}
.pin-note.note-b { transform: rotate(1.6deg); background: #f3ead8; }
.pin-note.note-c { transform: rotate(-0.6deg); background: #eadcc4; }
.pin-note.note-d { transform: rotate(1.1deg); }
.pin-note h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.pin-note p { margin: 0; font-size: 0.95rem; }
.pushpin {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  box-shadow: 0 4px 0 #1a1208;
}
.pushpin.ember { background: var(--ember); }
.pushpin.volt { background: var(--volt); }
.pushpin.copper { background: var(--copper); }
.pushpin.gold { background: var(--gold); }

.mill-stills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.mill-stills img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 3px solid var(--line);
  filter: contrast(1.05);
}

.pair-bay { margin: 80px 0; }
.centered-band {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 36px;
}
.device-pair {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 36px;
}
.handset {
  margin: 0;
  width: min(260px, 42vw);
  background: #12151c;
  border: 10px solid #1e2530;
  border-radius: 32px;
  padding: 8px;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.4);
}
.handset.left-hand { transform: rotate(-5deg); }
.handset.right-hand { transform: rotate(5deg); }
.handset img {
  display: block;
  width: 100%;
  border-radius: 22px;
}
.handset figcaption {
  padding: 10px 4px 4px;
  text-align: center;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ledger-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px 8px 28px;
}
.ledger-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.ledger-tabs button {
  flex: 1;
  background: transparent;
  color: var(--muted);
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 14px 12px;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}
.ledger-tabs button[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--ember);
}
#privacy, #support { padding: 20px 24px 8px; }
#privacy p, #support p { color: var(--muted); }
.drop::first-letter {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ember);
  float: left;
  line-height: 0.85;
  padding-right: 8px;
}
#support a { color: var(--volt); }

.mill-foot {
  text-align: center;
  padding: 28px 16px 48px;
  color: var(--faint);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .mill-sheet { padding: 20px 42px 64px 18px; }
  .window-pane {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .device-window {
    justify-self: center;
    max-width: 220px;
  }
  .cork-board { grid-template-columns: 1fr; }
  .device-pair { flex-direction: column; align-items: center; }
  .handset.left-hand, .handset.right-hand { transform: none; }
  .mill-stills { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .margin-dots { right: 8px; }
}
