/* ==========================================================================
   Runway & Heirloom — The Flight Log
   Vintage blueprint / flight-log design system
   Palette: hangar navy, drafting-paper cream, brass, blueprint blue
   ========================================================================== */

:root {
  --navy: #16283f;
  --navy-deep: #0f1d30;
  --blueprint: #24507e;
  --cream: #f5efe2;
  --paper: #fffdf6;
  --ink: #2a2d33;
  --ink-soft: #565b63;
  --brass: #b08a3e;
  --brass-bright: #c99e4a;
  --rust: #a3502e;
  --line: #e2d9c4;
  --line-navy: rgba(255, 255, 255, 0.14);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;

  --measure: 44rem;
  --wide: 72rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--blueprint); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rust); }

/* ---- Utility -------------------------------------------------------- */

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}

.blueprint-panel {
  position: relative;
  background-color: var(--navy);
  background-image:
    linear-gradient(var(--line-navy) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-navy) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 140px 140px, 140px 140px, 28px 28px, 28px 28px;
  color: #f2ede0;
}

/* ---- Header --------------------------------------------------------- */

.site-header {
  background: var(--paper);
  border-bottom: 2px solid var(--navy);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
  margin-right: auto;
}

.brand .roundel { width: 42px; height: 42px; flex: none; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.22rem;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 0.2rem;
}

.site-nav { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }

.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--blueprint); border-bottom-color: var(--brass); }

.btn-etsy {
  display: inline-block;
  background: var(--brass);
  color: var(--navy-deep) !important;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  border: none !important;
  border-radius: 2px;
  transition: background 0.15s ease;
}

.btn-etsy:hover { background: var(--brass-bright); color: var(--navy-deep); }

/* ---- Index hero ------------------------------------------------------ */

.hero { padding: 4.5rem 0 4rem; overflow: hidden; }

.hero .wrap { position: relative; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.08;
  max-width: 18ch;
  margin: 1rem 0 1.2rem;
}

.hero p.lede {
  font-size: 1.15rem;
  max-width: 46ch;
  color: rgba(242, 237, 224, 0.85);
}

.hero .flight-path { margin-top: 2.6rem; opacity: 0.9; }

/* ---- Article cards --------------------------------------------------- */

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 3.2rem 0 1.6rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--navy);
}

.section-head .rule { flex: 1; border-top: 1px dashed var(--brass); position: relative; top: -4px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.6rem;
  margin-bottom: 3rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(22, 40, 63, 0.14);
}

.card-art { aspect-ratio: 40 / 26; }
.card-art svg { width: 100%; height: 100%; }

.card-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }

.card-meta {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.card-meta .cat { color: var(--brass); }

.card h3 {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.25;
}

.card h3 a { color: var(--navy); text-decoration: none; }
.card h3 a:hover { color: var(--blueprint); }

.card p { font-size: 0.97rem; color: var(--ink-soft); }

.card .read-more {
  margin-top: auto;
  padding-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--rust);
}

.card .read-more:hover { color: var(--brass); }

/* ---- Shop band ------------------------------------------------------- */

.shop-band { margin: 1rem 0 0; padding: 3.4rem 0; text-align: center; }

.shop-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 600;
  max-width: 26ch;
  margin: 0.8rem auto 0.9rem;
}

.shop-band p { max-width: 52ch; margin: 0 auto 1.6rem; color: rgba(242, 237, 224, 0.85); }

/* ---- Post layout ----------------------------------------------------- */

.post-hero { padding: 3.4rem 0 3rem; }

.post-hero .wrap { max-width: var(--wide); }

.post-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2.5rem;
  align-items: center;
}

.post-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 600;
  line-height: 1.12;
  margin: 0.9rem 0 1rem;
}

.post-hero .dek { font-size: 1.12rem; color: rgba(242, 237, 224, 0.85); max-width: 52ch; }

.post-hero-art { border: 1px solid var(--line-navy); border-radius: 3px; padding: 1rem; }

.byline {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242, 237, 224, 0.75);
}

.byline .roundel { width: 30px; height: 30px; }

.post-body { max-width: var(--measure); margin: 0 auto; padding: 3.2rem 1.25rem 2rem; }

.post-body > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.4em;
  font-weight: 600;
  float: left;
  line-height: 0.82;
  padding: 0.08em 0.12em 0 0;
  color: var(--blueprint);
}

.post-body p { margin-bottom: 1.35rem; }

.post-body h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--navy);
  margin: 2.6rem 0 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--brass);
  display: inline-block;
}

.post-body h2 { display: block; border-bottom: none; position: relative; padding-bottom: 0.5rem; }
.post-body h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; border-bottom: 3px solid var(--brass); }

.post-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin: 2rem 0 0.7rem;
}

.post-body ul, .post-body ol { margin: 0 0 1.35rem 1.4rem; }
.post-body li { margin-bottom: 0.5rem; }

.post-body blockquote {
  margin: 2.2rem 0;
  padding: 0.4rem 0 0.4rem 1.4rem;
  border-left: 3px solid var(--brass);
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--blueprint);
}

.post-body blockquote cite {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Field-note info box */
.field-note {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blueprint);
  border-radius: 3px;
  padding: 1.2rem 1.4rem;
  margin: 2.2rem 0;
  font-size: 0.99rem;
}

.field-note .fn-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blueprint);
  display: block;
  margin-bottom: 0.5rem;
}

/* From-the-shop CTA box */
.shop-cta {
  background: var(--navy);
  color: #f2ede0;
  border-radius: 3px;
  padding: 1.6rem 1.7rem;
  margin: 2.4rem 0;
  position: relative;
  overflow: hidden;
}

.shop-cta::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(201, 158, 74, 0.55);
  border-radius: 2px;
  pointer-events: none;
}

.shop-cta .fn-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-bright);
  display: block;
  margin-bottom: 0.5rem;
}

.shop-cta p { margin: 0 0 1rem; color: rgba(242, 237, 224, 0.88); font-size: 0.99rem; }
.shop-cta p:last-of-type { margin-bottom: 1.1rem; }
.shop-cta a.btn-etsy { position: relative; }

/* Post footer nav */
.post-footer { max-width: var(--measure); margin: 0 auto; padding: 0 1.25rem 3.5rem; }

.post-footer .divider {
  border: none;
  border-top: 1px dashed var(--brass);
  margin: 1.5rem 0 2rem;
}

.post-nav { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.post-nav a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--blueprint);
}

.post-nav a:hover { color: var(--rust); }

.tag-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.6rem; }

.tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 2px;
  padding: 0.25rem 0.6rem;
}

/* ---- Shop artwork ---------------------------------------------------- */

.post-hero-art img { width: 100%; height: auto; border-radius: 2px; }

.card-art { display: block; overflow: hidden; background: var(--navy); }
.card-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.art-figure { margin: 2.2rem 0; }

.art-figure > a {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.9rem 0.9rem 0.7rem;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.art-figure > a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(22, 40, 63, 0.14);
}

.art-figure img { width: 100%; height: auto; border-radius: 2px; }

.art-figure figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
  padding-top: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.art-figure figcaption .view {
  color: var(--rust);
  white-space: nowrap;
}

.art-figure > a:hover figcaption .view { color: var(--brass); }

.art-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
  margin: 2.2rem 0;
}

.art-grid .art-figure { margin: 0; }

.art-grid-3 { grid-template-columns: 1fr 1fr 1fr; }

@media (max-width: 620px) {
  .art-grid, .art-grid-3 { grid-template-columns: 1fr; }
}

/* Shop CTA with product thumbnail */
.shop-cta-flex { display: flex; gap: 1.4rem; align-items: center; position: relative; }
.shop-cta-flex .cta-thumb { width: 116px; flex: none; border-radius: 2px; border: 1px solid rgba(201, 158, 74, 0.4); }
@media (max-width: 560px) { .shop-cta-flex { flex-direction: column; align-items: flex-start; } }

/* Gallery strip (index shop band) */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 54rem;
  margin: 2.2rem auto 0;
}

.gallery-strip a {
  display: block;
  background: var(--paper);
  padding: 0.5rem;
  border-radius: 2px;
  transition: transform 0.18s ease;
}

.gallery-strip a:hover { transform: translateY(-3px) rotate(-0.5deg); }
.gallery-strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 1px; }

@media (max-width: 620px) { .gallery-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---- About page ------------------------------------------------------ */

.about-body { max-width: var(--measure); margin: 0 auto; padding: 3rem 1.25rem 4rem; }
.about-body h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--navy);
  margin: 2.4rem 0 0.9rem;
}
.about-body p { margin-bottom: 1.3rem; }

/* ---- Footer ---------------------------------------------------------- */

.site-footer { margin-top: 2rem; }

.site-footer .wrap {
  padding-top: 3rem;
  padding-bottom: 2.6rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}

.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-bright);
  margin-bottom: 0.9rem;
}

.site-footer p { font-size: 0.95rem; color: rgba(242, 237, 224, 0.75); max-width: 40ch; }

.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.55rem; }

.site-footer a { color: rgba(242, 237, 224, 0.9); text-decoration: none; font-size: 0.95rem; }
.site-footer a:hover { color: var(--brass-bright); }

.footer-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.footer-brand .roundel { width: 38px; height: 38px; }
.footer-brand .brand-name { color: #f2ede0; }

.footer-bottom {
  border-top: 1px solid var(--line-navy);
}

.footer-bottom .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242, 237, 224, 0.55);
}

/* ---- Responsive ------------------------------------------------------ */

@media (max-width: 800px) {
  .post-hero-grid { grid-template-columns: 1fr; }
  .post-hero-art { max-width: 420px; }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero { padding: 3.2rem 0 2.8rem; }
}

@media (max-width: 560px) {
  .site-header .wrap { gap: 0.9rem; }
  .site-nav { gap: 0.9rem; }
  body { font-size: 1rem; }
}

/* ---- Blog teaser (main page) ------------------------------------- */
.blog-teaser {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brass);
  border-radius: 3px;
  padding: 2rem 2.2rem;
  margin-bottom: 3rem;
}
.blog-teaser p { max-width: 62ch; margin-bottom: 1.5rem; font-size: 1.05rem; }
