/* ============================================================
   Kármán Street — shared styles
   Edit colors and fonts here; every page uses this one file.
   ============================================================ */

:root {
  --ink:        #1a2733;   /* near-navy text            */
  --ink-soft:   #55606b;   /* secondary text            */
  --paper:      #fbfaf7;   /* page background           */
  --panel:      #ffffff;   /* cards / panels            */
  --line:       #e3e0d8;   /* hairline borders          */
  --accent:     #2e6f8e;   /* streamline blue           */
  --accent-2:   #c25b3a;   /* vortex clay (used rarely) */
  --max:        44rem;     /* reading column width      */
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Charter", "Georgia", "Cambria", serif;
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---- layout ------------------------------------------------ */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- masthead / streamlines -------------------------------- */
.masthead {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.masthead .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.brand {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.brand svg { display: block; }
.nav {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.98rem;
  display: flex;
  gap: 1.3rem;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---- hero (home only) -------------------------------------- */
.hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.hero p {
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin: 0;
  max-width: 34rem;
}

/* ---- generic sections -------------------------------------- */
main { padding: 2.5rem 0 4rem; }

h1, h2, h3 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.page-title { font-size: 2rem; margin: 0 0 0.4rem; }
.section-lead { color: var(--ink-soft); margin: 0 0 2rem; }

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

/* ---- post list --------------------------------------------- */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { border-top: 1px solid var(--line); }
.post-list li:last-child { border-bottom: 1px solid var(--line); }
.post-list a {
  display: block;
  padding: 1.4rem 0;
  text-decoration: none;
  color: var(--ink);
}
.post-list a:hover .post-h { color: var(--accent); }
.post-h {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}
.post-meta {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.post-excerpt { margin: 0.5rem 0 0; color: var(--ink-soft); font-size: 1rem; }

/* ---- article body ------------------------------------------ */
.article-meta {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0 0 2rem;
}
article img {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
  display: block;
  margin: 2rem 0 0.5rem;
}
article figure { margin: 2rem 0; }
article figure img { margin: 0; }
article figcaption {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}
article h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }
article p { margin: 1.1rem 0; }
blockquote {
  margin: 1.5rem 0;
  padding-left: 1.1rem;
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
  font-style: italic;
}

/* ---- portfolio grid ---------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.25rem;
}
.project {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--panel);
  display: flex;
  flex-direction: column;
}
.project img { width: 100%; height: 9rem; object-fit: cover; display: block; }
.project .body { padding: 1rem 1.1rem 1.2rem; }
.project h3 {
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
}
.project p { font-size: 0.95rem; color: var(--ink-soft); margin: 0 0 0.75rem; }
.tag {
  display: inline-block;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.72rem;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  margin: 0 0.3rem 0.3rem 0;
}
.project .status { margin-top: auto; }

/* ---- back link + footer ------------------------------------ */
.back {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 1.5rem;
  text-decoration: none;
}
.back:hover { text-decoration: underline; }

.foot {
  border-top: 1px solid var(--line);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.foot .wrap {
  padding: 1.5rem 1.25rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.foot a { color: var(--ink-soft); }

/* ---- responsive -------------------------------------------- */
@media (max-width: 34rem) {
  body { font-size: 1.06rem; }
  .hero { padding: 2.5rem 0 2rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .nav a { transition: color 0.15s, border-color 0.15s; }
}
