/* twekes · shared marketing stylesheet for content pages
   (Blog, Terms, Privacy). Same palette + typography as the
   home page index.html so /blog/, /terms/, /privacy/ feel
   like part of the same site. */

:root {
  --paper:#F5EFE3; --cream:#FAF6EC; --sand:#EBE0CB;
  --ink:#1A1614;  --ink2:#3A332C;  --muted:#7A7066;
  --line:#D8CFBE; --clay:#D14A1F;  --clay2:#A83712;
  --clay-soft:rgba(209,74,31,0.12);
  --sea:#2A5F8B;  --olive:#6B7A3F; --gold:#C8901F;

  --display:'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --body:'Inter', -apple-system, system-ui, sans-serif;
  --mono:'JetBrains Mono', ui-monospace, monospace;
  --max-w:1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Typography primitives ────────────────────────────────── */
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.kicker::before { content: "· "; color: var(--clay); }
.display, .display-it {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.display-it { font-style: italic; }
.clay-dot { color: var(--clay); }
.lead {
  font-family: var(--body);
  color: var(--ink2);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.5;
}

/* ── Layout primitives ───────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 22px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 100px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary { background: var(--clay); color: var(--paper); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ink { background: var(--ink); color: var(--paper); }

/* ── Sticky nav (re-uses the home page nav) ───────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 239, 227, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.wordmark {
  font-family: var(--display);
  font-style: italic;
  font-size: 28px;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.wordmark .dot { color: var(--clay); }
.nav-links { display: none; gap: 28px; }
.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink2);
  font-weight: 600;
}
.nav-links a:hover { color: var(--clay); }
.nav-ctas { display: none; gap: 10px; align-items: center; }
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-ctas { display: inline-flex; }
}

/* ── Page hero (used by all content pages) ─────────────────── */
.page-hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(28px, 4vw, 56px);
}
.page-hero h1 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(48px, 8vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-top: 14px;
}
.page-hero .lead { max-width: 620px; margin-top: 18px; }
.page-hero .meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

/* ── Long-form prose (terms, privacy) ──────────────────────── */
.prose {
  max-width: 760px;
  font-family: var(--body);
  color: var(--ink2);
  font-size: 16px;
  line-height: 1.65;
  padding-bottom: 80px;
}
.prose h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
  margin: 56px 0 14px;
}
.prose h2:first-of-type { margin-top: 32px; }
.prose h3 {
  font-family: var(--body);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  margin: 28px 0 8px;
  letter-spacing: -0.1px;
}
.prose p { margin: 0 0 14px; }
.prose ul {
  list-style: none;
  margin: 6px 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prose ul li {
  padding-left: 18px;
  position: relative;
  font-size: 15px;
  line-height: 1.55;
}
.prose ul li::before {
  content: "·";
  position: absolute;
  left: 2px;
  top: -2px;
  color: var(--clay);
  font-weight: 700;
  font-size: 18px;
}
.prose strong { color: var(--ink); font-weight: 700; }
.prose a {
  color: var(--clay);
  text-decoration: underline;
  text-decoration-color: rgba(209,74,31,0.4);
  text-underline-offset: 3px;
}
.prose a:hover { text-decoration-color: var(--clay); }
.prose .callout {
  margin: 28px 0;
  padding: 16px 20px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 4px solid var(--clay);
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}
.prose .callout strong { display: block; margin-bottom: 4px; }

/* ── Blog grid ─────────────────────────────────────────────── */
.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(28px, 4vw, 40px);
}
.blog-filter .chip {
  padding: 8px 14px;
  border-radius: 100px;
  background: transparent;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: var(--ink2);
  text-transform: uppercase;
  cursor: pointer;
}
.blog-filter .chip.on {
  background: var(--ink);
  color: var(--paper);
  border-color: transparent;
}
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding-bottom: 80px;
}
@media (min-width: 720px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}
.blog-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(26,22,20,0.06);
}
.blog-card .cover {
  height: 160px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card .cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0 8px, rgba(245,239,227,0.10) 8px 16px);
}
.blog-card .cover .label {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  font-weight: 700;
  color: var(--paper);
}
.blog-card .cover.clay  { background: linear-gradient(135deg, var(--clay) 0%, var(--gold) 100%); }
.blog-card .cover.sea   { background: linear-gradient(135deg, var(--sea) 0%, var(--olive) 100%); }
.blog-card .cover.olive { background: linear-gradient(135deg, var(--olive) 0%, var(--clay) 100%); }
.blog-card .cover.gold  { background: linear-gradient(135deg, var(--gold) 0%, var(--clay) 100%); }
.blog-card .cover.ink   { background: linear-gradient(135deg, var(--ink) 0%, var(--olive) 100%); }
.blog-card .cover.sand  {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.blog-card .cover.sand .label { color: var(--ink); }
.blog-card .body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card .body .kicker { color: var(--clay); font-size: 10px; }
.blog-card .body .kicker::before { content: ""; }
.blog-card .body h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.7px;
  line-height: 1.1;
  color: var(--ink);
  margin: 4px 0 0;
}
.blog-card .body .excerpt {
  font-family: var(--body);
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.5;
  margin: 4px 0 0;
}
.blog-card .body .byline {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ── Footer (mirrors the home page) ───────────────────────── */
.footer {
  padding: 48px 0 36px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer .wm { font-size: 36px; }
.footer .blurb {
  margin-top: 12px;
  max-width: 360px;
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.5;
}
.footer h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 12px;
}
.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer ul a {
  font-size: 14px;
  color: var(--ink);
}
.footer ul a:hover { color: var(--clay); }
.footer .cities {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--muted);
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
}
