/* ================================================================
   Kianu's Garage — typography, palette, and static layout.
   ----------------------------------------------------------------
   This stylesheet drives the deployable static version of the site.
   The forest & linen palette and typography choices match what the
   Clay/WASM version produces, so the two views are visually
   indistinguishable.
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Cormorant+Garamond:ital,wght@0,500;0,700&display=swap');

/* ---- Design tokens -------------------------------------------- */
:root {
  --linen:    #ece4d0;
  --paper:    #e0d7c0;
  --paper-2:  #d3c9af;
  --forest:   #1f2e1f;
  --moss:     #4a5c3a;
  --gold:     #b08a3c;
  --divider:  #b8ad95;

  --font-body:    'EB Garamond', 'Times New Roman', Times, serif;
  --font-heading: 'Cormorant Garamond', 'EB Garamond', 'Times New Roman', Times, serif;
  --font-brand:   'Cormorant Garamond', 'EB Garamond', 'Times New Roman', Times, serif;
}

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

/* ---- Page envelope ------------------------------------------- */
body.page {
  background: var(--linen);
  color: var(--forest);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  min-height: 100vh;
  /* Subtle linen grain — pure CSS, no asset needed */
  background-image:
    radial-gradient(rgba(120, 100, 70, 0.05) 1px, transparent 1px),
    radial-gradient(rgba(80, 70, 50, 0.04) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Top-level grid ------------------------------------------ */
.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 24px 32px;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 100vh;
}

@media (max-width: 768px) {
  .layout {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }
}

/* ================================================================
   Sidebar
   ================================================================ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand {
  background: var(--paper-2);
  border: 1px solid var(--gold);
  border-radius: 4px;
  padding: 18px 16px;
  text-align: center;
}

.brand-title {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  font-variant: small-caps;
  color: var(--forest);
}

.brand-subtitle {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--moss);
  font-style: italic;
  margin-top: 4px;
}

.toc-heading {
  padding: 4px 0;
  font-size: 14px;
  color: var(--moss);
  font-style: italic;
  text-align: center;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-row {
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--moss);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.nav-row:hover {
  background: rgba(176, 138, 60, 0.08);
  color: var(--forest);
  border-left-color: var(--divider);
}

.nav-row.active {
  background: var(--paper-2);
  color: var(--forest);
  border-left-color: var(--gold);
  font-weight: 500;
}

/* ================================================================
   Main column
   ================================================================ */
.main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0; /* prevents grid overflow when text gets long */
}

.header-strip {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

.current-tab {
  background: var(--paper);
  border-bottom: 2px solid var(--gold);
  padding: 8px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  color: var(--forest);
  border-radius: 2px 2px 0 0;
  letter-spacing: 0.01em;
}

/* ---- Cards (the bio / experience / volunteer / photography blocks) ---- */
.card {
  background: var(--paper);
  border: 1px solid var(--divider);
  border-radius: 3px;
  padding: 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-emphasis {
  background: var(--paper-2);
  padding: 24px 28px;
  gap: 10px;
}

.card h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.3;
  color: var(--forest);
  letter-spacing: 0.005em;
  font-feature-settings: "liga", "dlig";
}

.card h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 19px;
  color: var(--moss);
  margin-top: 6px;
  letter-spacing: 0.005em;
}

.card p {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--forest);
}

.card .lead {
  font-style: italic;
  color: var(--moss);
}

/* Two-column row inside the main column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.two-col > .card {
  height: 100%;
}

/* ================================================================
   Under-construction stub pages
   ================================================================ */
.under-construction {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  padding: 80px 40px;
  background: var(--paper);
  border: 1px solid var(--divider);
  border-radius: 3px;
}

.under-construction .ornament {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 28px;
  letter-spacing: 0.5em;
  margin-bottom: 1rem;
  user-select: none;
}

.under-construction h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--forest);
  letter-spacing: 0.02em;
}

.under-construction p {
  font-family: var(--font-body);
  color: var(--moss);
  font-style: italic;
  font-size: 18px;
  max-width: 480px;
  line-height: 1.6;
}

.under-construction .home-link {
  margin-top: 2.5rem;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px dotted var(--gold);
  font-family: var(--font-body);
  font-style: italic;
  padding-bottom: 1px;
  transition: color 150ms ease, border-color 150ms ease;
}

.under-construction .home-link:hover {
  color: var(--forest);
  border-bottom-color: var(--forest);
}

/* ================================================================
   Print
   ================================================================ */
@media print {
  body.page { background: white; }
  .sidebar { display: none; }
  .layout { display: block; padding: 0; }
  .card { break-inside: avoid; border: none; background: white; }
}
