/* Keyed Books: one-pager. Letterpress ledger aesthetic. */

:root {
  --paper:      #F6F1E7;
  --paper-tint: color-mix(in oklch, #F6F1E7 92%, #1F5F4A 8%);
  --ink:        #1C1A17;
  --ink-soft:   color-mix(in oklch, #1C1A17 64%, #F6F1E7 36%);
  --ink-faint:  color-mix(in oklch, #1C1A17 63%, #F6F1E7 37%);
  --green:      #1F5F4A;
  --tan:        #C9B99A;
  --rule:       color-mix(in oklch, #C9B99A 70%, #F6F1E7 30%);
  --rule-deep:  #C9B99A;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

a { color: var(--green); }

.wrap {
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--space-lg);
}

/* ---------- Masthead ---------- */

.masthead {
  padding: clamp(20px, 4vw, 32px) 0 clamp(16px, 3vw, 24px);
  border-bottom: 1px solid var(--rule);
}

.masthead-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.masthead .mark {
  width: 20px;
  height: 30px;
  fill: var(--green);
  flex: 0 0 auto;
}

.wordmark {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ---------- Section rhythm ---------- */

.block {
  padding: clamp(36px, 8vw, 72px) 0;
}

.rule-full {
  height: 1px;
  background: var(--rule);
}

/* ---------- Hero ---------- */

.hero { padding-top: clamp(44px, 10vw, 88px); padding-bottom: clamp(32px, 6vw, 56px); }

.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 5.5vw + 1rem, 4.1rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 15ch;
  color: var(--ink);
}

.hero .sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.2rem, 1.2vw + 0.9rem, 1.4rem);
  color: var(--ink-soft);
  margin: var(--space-md) 0 0;
  max-width: 30ch;
}

/* ---------- Mechanism (three steps) ---------- */

.mechanism { background: var(--paper-tint); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  display: flex;
  gap: var(--space-lg);
  align-items: baseline;
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--rule);
}

.steps li:first-child { padding-top: 0; }
.steps li:last-child { border-bottom: none; padding-bottom: 0; }

.steps .num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink-faint);
  flex: 0 0 auto;
  min-width: 2.2ch;
  font-variant-numeric: tabular-nums;
}

.steps p {
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.55;
  color: var(--ink);
  max-width: 46ch;
}

/* ---------- Offer: $500 set as a ledger line item ---------- */

.line-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
}

.line-item-label {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  flex: 0 0 auto;
  white-space: nowrap;
}

.line-item-leader {
  flex: 1 1 auto;
  border-bottom: 1px dotted var(--rule-deep);
  margin-bottom: 0.35em;
  min-width: 24px;
}

.line-item-amount {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw + 1rem, 3.8rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}

.line-item-amount .unit {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin-left: 4px;
}

.offer-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink);
  margin: var(--space-md) 0 0;
}

.offer-detail {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: var(--space-lg) 0 0;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--rule);
  max-width: 46ch;
}

/* ---------- For / Not for ---------- */

.fit { background: var(--paper-tint); }

.fit-grid {
  display: flex;
  flex-direction: column;
}

.fit-col {
  padding: var(--space-lg) 0;
}

.fit-col:first-child { padding-top: 0; }
.fit-col:last-child { padding-bottom: 0; }

.fit-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 var(--space-sm);
}

.fit-col p:last-child {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ink);
  max-width: 42ch;
}

.fit-divider {
  height: 1px;
  background: var(--rule-deep);
}

/* ---------- Ask: the one strong green moment ---------- */

.ask h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw + 1rem, 2.5rem);
  line-height: 1.16;
  margin: 0 0 var(--space-lg);
  color: var(--ink);
  max-width: 20ch;
}

.mailto-btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--paper);
  background: var(--green);
  text-decoration: none;
  padding: 16px 28px;
  border: 1px solid var(--green);
  border-radius: 2px;
  transition: transform 0.2s cubic-bezier(0.16,1,0.3,1), box-shadow 0.2s ease;
}

.mailto-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px color-mix(in oklch, #1F5F4A 30%, transparent);
}

.mailto-btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.ask-note {
  margin: var(--space-md) 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- Colophon / footer ---------- */

.colophon {
  padding: var(--space-2xl) 0 var(--space-3xl);
  background: var(--ink);
}

.about-row {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.portrait {
  width: 72px;
  height: 72px;
  border-radius: 2px;
  object-fit: cover;
  flex: 0 0 auto;
}

.about-text p {
  margin: 0;
  color: var(--paper);
  font-size: 0.95rem;
  line-height: 1.5;
}

.about-text strong { font-weight: 700; }

.about-text p + p {
  margin-top: var(--space-xs);
  color: color-mix(in oklch, #F6F1E7 68%, #1C1A17 32%);
  font-size: 0.85rem;
}

/* ---------- Wider screens ---------- */

@media (min-width: 720px) {
  .wrap { padding: 0 var(--space-2xl); }

  .fit-grid {
    flex-direction: row;
    align-items: stretch;
    gap: var(--space-3xl);
  }

  .fit-col { flex: 1; padding: 0; }

  .fit-divider { width: 1px; height: auto; align-self: stretch; }
}
