/* Iron Thread — narrow editorial column, high contrast */
:root {
  --ink: #14110d;
  --paper: #f7f4ef;
  --rust: #8b3a2f;
  --muted: #5c5650;
  --banner-bg: #14110d;
  --banner-fg: #f7f4ef;
  --banner-link: #e8b4a8;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: linear-gradient(180deg, #faf8f5 0%, var(--paper) 18%, #ece8e2 100%);
  line-height: 1.6;
  font-size: 1.05rem;
}

/* Split frame: full-width mast, then sticky LEFT rail + content (distinct from apiary right-rail) */
.tailor-shell {
  min-height: calc(100vh - 6rem);
}
@media (max-width: 959px) {
  .tailor-shell {
    display: block;
  }
}
@media (min-width: 960px) {
  .tailor-shell {
    display: grid;
    grid-template-columns: 10.5rem minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    max-width: 72rem;
    margin: 0 auto;
    border-left: 1px solid rgba(20, 17, 13, 0.1);
    border-right: 1px solid rgba(20, 17, 13, 0.1);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
  }
  .tailor-mast {
    grid-column: 1 / -1;
    border-bottom: 2px solid var(--rust);
    background: rgba(255, 255, 255, 0.65);
  }
  .tailor-rail-nav {
    grid-column: 1;
    grid-row: 2;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 2rem 1rem 2rem 1.25rem;
    border-bottom: none;
    border-right: 2px solid rgba(139, 58, 47, 0.35);
    position: sticky;
    top: 0;
    align-self: start;
    min-height: 50vh;
    text-align: left;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(247, 244, 239, 0.95) 100%);
  }
  .tailor-rail-nav a {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(20, 17, 13, 0.08);
  }
  #main.tailor-sheet {
    grid-column: 2;
    grid-row: 2;
    max-width: 40rem;
    padding: 2.5rem 2.5rem 4rem 2rem;
    margin: 0;
  }
}

.skip {
  position: absolute;
  left: -9999px;
  background: var(--rust);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; }

.tailor-mast {
  text-align: center;
  padding: 3rem 1rem 2rem;
  border-bottom: 1px solid rgba(20, 17, 13, 0.12);
  background: rgba(255, 255, 255, 0.4);
}
.tailor-mast__logo {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
}
.tailor-mast__logo a {
  color: var(--ink);
  text-decoration: none;
}
.tailor-mast__tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--muted);
  margin: 0.75rem 0 0;
}

.tailor-rail-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
  padding: 1rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(20, 17, 13, 0.08);
}
.tailor-rail-nav a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.2rem;
}
.tailor-rail-nav a:hover,
.tailor-rail-nav a.active {
  border-bottom-color: var(--rust);
}

.tailor-sheet {
  max-width: 38rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.tailor-sheet h1 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 1rem;
}

.tailor-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 0.5rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
  line-height: 1.55;
}

.tailor-figure {
  margin: 2rem 0;
}
.tailor-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.tailor-figure figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.rule {
  border: none;
  border-top: 1px solid rgba(20, 17, 13, 0.15);
  margin: 2.5rem 0;
}

.cta-block {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 480px) {
  .cta-block { flex-direction: row; align-items: center; }
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--sans);
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}
.btn--line {
  background: transparent;
  color: var(--ink);
}
.btn:hover { opacity: 0.92; }

.site-foot {
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0.5rem 0;
}
.foot-legal a { color: var(--rust); }

.legal-doc .legal-muted {
  color: var(--muted);
  font-size: 0.9rem;
}
.prose a { color: var(--rust); }

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--banner-bg);
  color: var(--banner-fg);
  padding: 1rem;
  z-index: 999;
  font-size: 0.95rem;
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner__inner {
  max-width: 40rem;
  margin: 0 auto;
}
.cookie-banner__title { font-size: 1rem; margin: 0 0 0.5rem; }
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.cookie-banner .btn {
  border-color: var(--banner-fg);
  background: var(--banner-fg);
  color: var(--banner-bg);
}
.cookie-banner .btn.line {
  background: transparent;
  color: var(--banner-fg);
}
.cookie-actions .btn,
.cookie-actions .btn.line {
  min-height: 3.35rem;
  padding: 1rem 1.35rem;
  font-size: 1rem;
  font-weight: 700;
}

/* Large policy buttons */
.policy-band {
  margin: 2.75rem 0 1.5rem;
  padding: 1.75rem 1.25rem;
  background: linear-gradient(180deg, var(--paper) 0%, #ebe4db 100%);
  border: 2px solid var(--ink);
  border-radius: 2px;
}
.policy-band__title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  margin: 0 0 0.4rem;
}
.policy-band__lede {
  margin: 0 0 1.2rem;
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 36rem;
}
.policy-band__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 560px) {
  .policy-band__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.policy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4rem;
  padding: 1.15rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--paper);
  background: var(--ink);
  border: 3px solid var(--ink);
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.policy-btn:hover {
  opacity: 0.94;
  transform: translateY(-2px);
}
.policy-btn--accent {
  background: var(--rust);
  border-color: var(--rust);
}
.policy-btn:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 2px;
}
