/* ======================================================================
   SITE STYLESHEET
   Design concept: a personal workshop + notebook. The nav looks like the
   tabs on a binder — Home / Workshop / Notebook — that pull the page
   forward when active. Warm paper background, brass + teal accents.

   EDIT COLORS HERE — everything on the site pulls from these variables.
   ====================================================================== */

:root {
  /* --- Paper & ink --- */
  --bg: #eef0e7;          /* page background — warm sage paper */
  --bg-alt: #e3e6d8;      /* card / panel background, slightly deeper */
  --ink: #1c2620;         /* primary text — warm near-black */
  --ink-soft: #56604f;    /* secondary text */
  --rule: #c9cdba;        /* hairline dividers */

  /* --- Accents --- */
  --brass: #b8791e;       /* primary accent — hardware brass */
  --brass-dark: #93611a;
  --teal: #2f6f63;        /* secondary accent — enamel paint */

  /* --- Inverted panels (nav / footer) --- */
  --dark: #1b241f;
  --dark-text: #edefe4;
  --dark-text-soft: #a9b3a3;

  /* --- Type --- */
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* --- Layout --- */
  --content-width: 780px;
  --wide-width: 1040px;
  --edge: 24px;
}

/* ----------------------------------------------------------------------
   RESET
   ---------------------------------------------------------------------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ----------------------------------------------------------------------
   NAV — styled like folder tabs sitting on top of a dark spine
   ---------------------------------------------------------------------- */
.site-nav {
  background: var(--dark);
  padding-top: 16px;
}
.nav-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 var(--edge);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.site-mark {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--dark-text-soft);
  text-decoration: none;
  padding-bottom: 14px;
  white-space: nowrap;
}
.tab-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dark-text-soft);
  background: rgba(255, 255, 255, 0.06);
  padding: 11px 20px 13px;
  border-radius: 8px 8px 0 0;
  white-space: nowrap;
  position: relative;
  top: 1px;
  transition: background 0.15s ease, color 0.15s ease;
}
.tab:hover { color: var(--dark-text); background: rgba(255, 255, 255, 0.12); }
.tab.active {
  background: var(--bg);
  color: var(--ink);
  font-weight: 500;
}
.spine {
  height: 3px;
  background: var(--brass);
}

/* ----------------------------------------------------------------------
   SHARED LAYOUT HELPERS
   ---------------------------------------------------------------------- */
.wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--edge);
}
.wrap-wide {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 var(--edge);
}
.eyebrow-mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-dark);
}

/* ----------------------------------------------------------------------
   HERO (home page)
   ---------------------------------------------------------------------- */
.hero {
  padding: 64px 0 48px;
}
.hero-name {
  font-size: clamp(42px, 8vw, 68px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.6vw, 23px);
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 22px;
}
.hero-bio {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 620px;
}
.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 14px;
}
.hero-links a {
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 2px;
}
.hero-links a:hover { color: var(--brass-dark); }

/* ----------------------------------------------------------------------
   PREVIEW STRIPS (home page sections)
   ---------------------------------------------------------------------- */
.preview {
  padding: 40px 0;
  border-top: 1px solid var(--rule);
}
.preview-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}
.preview-head h2 {
  font-size: 24px;
}
.see-all {
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  color: var(--teal);
  white-space: nowrap;
}
.see-all:hover { color: var(--brass-dark); }

.empty-note {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-soft);
  background: var(--bg-alt);
  border: 1px dashed var(--rule);
  border-radius: 10px;
  padding: 22px;
}

/* ----------------------------------------------------------------------
   PAGE HEADER (workshop / notebook top-of-page)
   ---------------------------------------------------------------------- */
.page-header {
  padding: 56px 0 36px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 40px;
}
.page-header h1 {
  font-size: clamp(34px, 6vw, 46px);
  margin-bottom: 10px;
}
.page-header p {
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 0;
}

/* ----------------------------------------------------------------------
   TOOL CARDS (workshop)
   ---------------------------------------------------------------------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  padding-bottom: 60px;
}
.tool-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 22px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.tool-card:hover {
  transform: translateY(-2px);
  border-color: var(--brass);
}
.tool-card h3 {
  font-size: 19px;
  margin: 10px 0 6px;
}
.tool-card p {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 0;
}
.tool-status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tool-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.status-live { color: var(--teal); }
.status-building { color: var(--brass-dark); }

.tool-card.placeholder {
  background: transparent;
  border: 1px dashed var(--rule);
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 160px;
  cursor: default;
}
.tool-card.placeholder:hover { transform: none; border-color: var(--rule); }
.placeholder-plus {
  font-family: var(--font-mono);
  font-size: 26px;
  color: var(--rule);
  margin-bottom: 8px;
}

/* ----------------------------------------------------------------------
   BLOG LIST (notebook)
   ---------------------------------------------------------------------- */
.entry-list {
  padding-bottom: 60px;
}
.entry {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
}
.entry:first-child { padding-top: 0; }
.entry-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brass-dark);
  display: block;
  margin-bottom: 8px;
}
.entry h2 {
  font-size: 24px;
  margin-bottom: 8px;
  transition: color 0.15s ease;
}
.entry:hover h2 { color: var(--teal); }
.entry-excerpt {
  color: var(--ink-soft);
  font-size: 16px;
  margin-bottom: 0;
}

/* ----------------------------------------------------------------------
   BLOG POST (single entry)
   ---------------------------------------------------------------------- */
.post-header {
  padding: 56px 0 28px;
}
.post-header .entry-date { margin-bottom: 16px; }
.post-header h1 {
  font-size: clamp(32px, 6vw, 44px);
  margin-bottom: 0;
}
.post-body {
  padding-bottom: 60px;
  font-size: 18px;
}
.post-body p { margin-bottom: 1.2em; }
.post-body h2 {
  font-size: 24px;
  margin: 1.6em 0 0.6em;
}
.back-link {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  color: var(--teal);
}
.back-link:hover { color: var(--brass-dark); }

/* ----------------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------------- */
.site-footer {
  background: var(--dark);
  color: var(--dark-text-soft);
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 30px var(--edge);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.footer-links { display: flex; gap: 18px; }
.footer-links a { text-decoration: none; color: var(--dark-text-soft); }
.footer-links a:hover { color: var(--dark-text); }

/* ----------------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------------- */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero { padding: 44px 0 36px; }
  .tool-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}
