/* ======================================================================
   bootr.ai — shared stylesheet
   Design tokens and components extracted from the original holding page.
   ====================================================================== */

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

:root {
  --ink: #0f0e0a;
  --paper: #f5f0e8;
  --rust: #c4431a;
  --sage: #5a7a5c;
  --pale: #e8e2d4;
  --gold: #c8a84b;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: 'DM Mono', monospace;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 100;
  opacity: 0.4;
}

/* ---- HEADER ---- */
header.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  border-bottom: 1px solid rgba(15,14,10,0.15);
  animation: fadeDown 0.8s ease both;
}

.wordmark {
  font-family: 'DM Mono', monospace;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark span { color: var(--rust); }

nav.site-nav {
  display: flex;
  gap: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

nav.site-nav a {
  color: var(--ink);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s;
}
nav.site-nav a:hover,
nav.site-nav a.active { opacity: 1; }

/* ---- HERO ---- */
.hero {
  padding: 5rem 3rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.issue-tag {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.3s ease both;
}

h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.5s ease both;
}

h1 em {
  font-style: italic;
  font-weight: 200;
  color: var(--rust);
}

.hero-rule {
  width: 100%;
  height: 1px;
  background: var(--ink);
  opacity: 0.15;
  margin: 2rem 0;
  animation: fadeIn 0.8s 0.7s ease both;
}

.hero-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.8s ease both;
}

.hero-lede {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 200;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
}

.hero-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  opacity: 0.7;
  padding-top: 0.25rem;
}

/* ---- TENETS ---- */
.tenets-section {
  padding: 4rem 3rem;
  border-top: 1px solid rgba(15,14,10,0.1);
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 2.5rem;
}

.tenets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(15,14,10,0.12);
}

.tenet {
  padding: 2rem;
  border-right: 1px solid rgba(15,14,10,0.12);
  border-bottom: 1px solid rgba(15,14,10,0.12);
  opacity: 0;
  transform: translateY(10px);
  transition: background 0.3s ease;
}

.tenet:hover { background: var(--pale); }
.tenet:nth-child(3n) { border-right: none; }
.tenet:nth-last-child(-n+3) { border-bottom: none; }

.tenet-num {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--rust);
  margin-bottom: 0.75rem;
}

.tenet h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.tenet p {
  font-size: 0.78rem;
  line-height: 1.65;
  opacity: 0.65;
}

/* ---- LANDSCAPE ---- */
.landscape-section {
  background: var(--ink);
  color: var(--paper);
  padding: 5rem 3rem;
  margin-top: 2rem;
}

.landscape-inner { max-width: 1100px; margin: 0 auto; }

.landscape-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(245,240,232,0.15);
}

.landscape-title {
  font-family: 'Fraunces', serif;
  font-size: 2.5rem;
  font-weight: 300;
  font-style: italic;
}

.landscape-note {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  opacity: 0.4;
  max-width: 200px;
  text-align: right;
  line-height: 1.6;
}

.kindred-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(245,240,232,0.1);
}

.kindred-item {
  background: var(--ink);
  padding: 1.75rem 2rem;
  transition: background 0.3s;
}
.kindred-item:hover { background: #1c1b16; }

.kindred-name {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
}

.kindred-take {
  font-size: 0.72rem;
  line-height: 1.6;
  opacity: 0.5;
}

.kindred-tag {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---- FUNDING ---- */
.funding-section {
  padding: 4rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.funding-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.funding-intro h2 {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.funding-intro p {
  font-size: 0.85rem;
  line-height: 1.75;
  opacity: 0.65;
  margin-bottom: 1rem;
}

.funding-models {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(15,14,10,0.12);
  border: 1px solid rgba(15,14,10,0.12);
}

.funding-model {
  background: var(--paper);
  padding: 1.25rem 1.5rem;
}

.funding-model h4 {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.4rem;
}

.funding-model p {
  font-size: 0.75rem;
  line-height: 1.6;
  opacity: 0.65;
}

/* ---- SIGNUP ---- */
.signup-section {
  background: var(--rust);
  color: var(--paper);
  padding: 5rem 3rem;
}

.signup-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.signup-inner h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.signup-inner h2 em { font-style: italic; font-weight: 200; }

.signup-inner p {
  font-size: 0.85rem;
  line-height: 1.7;
  opacity: 0.8;
  margin-bottom: 2.5rem;
}

.signup-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid rgba(245,240,232,0.4);
}

.signup-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 1rem 1.25rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  color: var(--paper);
  outline: none;
}
.signup-form input::placeholder { opacity: 0.5; }

.signup-form button {
  background: var(--paper);
  color: var(--rust);
  border: none;
  padding: 1rem 1.75rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.signup-form button:hover { background: var(--ink); color: var(--paper); }

.signup-note {
  margin-top: 1rem;
  font-size: 0.68rem;
  opacity: 0.5;
  letter-spacing: 0.08em;
}

.substack-embed-wrap {
  max-width: 480px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid rgba(245,240,232,0.4);
}
.substack-embed-wrap iframe {
  width: 100% !important;
  border: 0 !important;
  background: var(--paper) !important;
  display: block;
}

/* ---- ESSAY / ARTICLE ---- */
.article {
  padding: 5rem 3rem 4rem;
  max-width: 720px;
  margin: 0 auto;
}

.article .issue-tag { margin-bottom: 1.5rem; }

.article h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  margin-bottom: 1rem;
  animation: none;
  opacity: 1;
}

.article .article-sub {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1.2rem;
  opacity: 0.7;
  margin-bottom: 2rem;
}

.article .article-meta {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(15,14,10,0.12);
}

.article h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.25;
  margin: 3rem 0 1rem;
}

.article h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 500;
  margin: 2rem 0 0.75rem;
}

.article p, .article li {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.1rem;
}

.article ul, .article ol {
  padding-left: 1.4rem;
  margin-bottom: 1.1rem;
}

.article strong { font-weight: 700; }
.article em { font-style: italic; }

.article hr {
  border: 0;
  height: 1px;
  background: rgba(15,14,10,0.15);
  margin: 2.5rem 0;
}

.article blockquote {
  border-left: 2px solid var(--rust);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  opacity: 0.8;
}

/* ---- ESSAY LIST ---- */
.essay-list-section {
  padding: 5rem 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.essay-row {
  display: grid;
  grid-template-columns: 80px 1fr 140px;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(15,14,10,0.12);
  align-items: baseline;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.2s, padding 0.2s;
}
.essay-row:hover { background: var(--pale); padding-left: 0.75rem; padding-right: 0.75rem; }
.essay-row:last-child { border-bottom: 1px solid rgba(15,14,10,0.12); }

.essay-num {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--rust);
}

.essay-title {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.essay-sub {
  font-size: 0.78rem;
  line-height: 1.5;
  opacity: 0.6;
}

.essay-status {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: right;
  opacity: 0.5;
}
.essay-status.live { color: var(--sage); opacity: 1; }
.essay-status.soon { color: var(--rust); opacity: 0.7; }

/* ---- COMING SOON ---- */
.comingsoon {
  padding: 6rem 3rem;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.comingsoon h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); animation: none; opacity: 1; }
.comingsoon .issue-tag { justify-self: center; }

/* ---- FOOTER ---- */
footer.site-footer {
  padding: 2rem 3rem;
  border-top: 1px solid rgba(15,14,10,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  opacity: 0.5;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp  { from { opacity: 0; transform: translateY(20px);} to { opacity: 1; transform: translateY(0);} }
@keyframes fadeDown{ from { opacity: 0; transform: translateY(-10px);} to { opacity: 1; transform: translateY(0);} }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 0.15; } }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  header.site-header { padding: 1.5rem; }
  nav.site-nav { gap: 1rem; font-size: 0.65rem; }
  .hero { padding: 3rem 1.5rem 2rem; }
  .hero-body { grid-template-columns: 1fr; gap: 2rem; }
  .tenets-section, .funding-section, .essay-list-section { padding: 3rem 1.5rem; }
  .tenets-grid { grid-template-columns: 1fr; }
  .tenet:nth-child(3n) { border-right: 1px solid rgba(15,14,10,0.12); }
  .tenet:nth-last-child(-n+3) { border-bottom: 1px solid rgba(15,14,10,0.12); }
  .tenet:last-child { border-bottom: none; }
  .kindred-list { grid-template-columns: 1fr; }
  .funding-grid { grid-template-columns: 1fr; gap: 2rem; }
  .landscape-section, .signup-section { padding: 3rem 1.5rem; }
  .landscape-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .landscape-note { text-align: left; max-width: 100%; }
  .article { padding: 3rem 1.5rem 2rem; }
  .essay-row { grid-template-columns: 60px 1fr; }
  .essay-status { grid-column: 2; text-align: left; margin-top: 0.25rem; }
  footer.site-footer { padding: 1.5rem; flex-direction: column; gap: 0.5rem; }
}
