/* Finn by Design — shared styles */

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

:root {
  --bg: #faf7f2;
  --bg-alt: #f1ebe1;
  --ink: #2a2823;
  --ink-soft: #5c574c;
  --accent: #b5503a;
  --line: #e2d9c9;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max: 960px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
header.site-header {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.logo em {
  font-style: italic;
  color: var(--accent);
}

nav.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  margin-left: 28px;
  color: var(--ink-soft);
  transition: color 0.15s;
}

nav.site-nav a:hover,
nav.site-nav a.active {
  color: var(--accent);
}

/* Hero */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  max-width: 760px;
  margin: 0 auto 22px;
}

.hero p.lede {
  max-width: 560px;
  margin: 0 auto 34px;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: opacity 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { opacity: 0.88; }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  margin-left: 12px;
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--bg-alt); }

.section-title {
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.section-intro {
  color: var(--ink-soft);
  max-width: 620px;
  margin-bottom: 40px;
}

/* Card grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

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

.card {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.card h3 { font-size: 1.15rem; }

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

/* Blog list */
.post-list { border-top: 1px solid var(--line); }

.post-row {
  display: block;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.post-row .post-date {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
}

.post-row h2 {
  font-size: 1.35rem;
  margin: 8px 0 6px;
}

.post-row p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.98rem;
}

.empty-state {
  padding: 48px 0;
  color: var(--ink-soft);
  font-style: italic;
}

/* Simple content page */
.page-header {
  padding: 70px 0 30px;
  border-bottom: 1px solid var(--line);
}

.page-header h1 { font-size: 2.3rem; margin-bottom: 8px; }
.page-header p { color: var(--ink-soft); margin: 0; }

article.content {
  padding: 48px 0;
  max-width: 720px;
  margin: 0 auto;
}

article.content p { margin-bottom: 1.3em; }

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  margin-top: 40px;
}

footer.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer.site-footer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

footer.site-footer a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

footer.site-footer a:hover { color: var(--accent); }

/* Vintage guide cards (hub page) */
.guide-card {
  display: block;
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  position: relative;
}

.guide-card .badge {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  padding: 3px 9px;
  margin-bottom: 12px;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.guide-card.soon {
  opacity: 0.55;
  pointer-events: none;
}

.guide-card.soon .badge {
  border-color: var(--ink-soft);
  color: var(--ink-soft);
}

.guide-card h3 { font-size: 1.2rem; }
.guide-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* Long-form vintage article */
article.content.wide { max-width: 780px; }

article.content h2 {
  font-size: 1.5rem;
  margin: 2em 0 0.6em;
}

article.content h3 {
  font-size: 1.15rem;
  margin: 1.6em 0 0.5em;
}

article.content ul, article.content ol {
  margin: 0 0 1.3em;
  padding-left: 1.3em;
}

article.content li { margin-bottom: 0.5em; }

.pull-fact {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin: 1.6em 0;
  color: var(--ink-soft);
  font-style: italic;
}

/* Spec table */
table.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.92rem;
}

table.spec-table th, table.spec-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

table.spec-table th {
  color: var(--ink-soft);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

/* Shop-the-piece product cards */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 1.5em 0 2em;
}

@media (max-width: 600px) {
  .shop-grid { grid-template-columns: 1fr; }
}

.product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  background: var(--bg-alt);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line);
}

.product-card .pc-body { padding: 16px 18px; }

.product-card .pc-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.02rem;
  margin: 0 0 4px;
}

.product-card .pc-price {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.shop-cta-bar {
  text-align: center;
  padding: 32px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  margin: 2em 0;
}

.shop-cta-bar p { margin: 0 0 16px; color: var(--ink-soft); }

.source-note {
  margin-top: 3em;
  padding-top: 1.5em;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.source-note a { color: var(--ink-soft); }
.source-note a:hover { color: var(--accent); }

/* Historical photo — hero and inline */
.hero-photo { margin: 0 0 40px; }
.hero-photo .wrap { padding-top: 0; }
.hero-photo img {
  display: block;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  height: clamp(280px, 42vw, 480px);
  object-fit: cover;
  object-position: 65% 78%;
}

.photo-caption {
  font-size: 0.8rem;
  color: var(--ink-soft);
  padding: 10px 0 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.photo-caption a { color: var(--ink-soft); }
.photo-caption a:hover { color: var(--accent); }

figure.inline-photo {
  margin: 2em 0;
}

figure.inline-photo img {
  width: 100%;
  display: block;
}

figure.inline-photo figcaption {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 8px;
}

figure.inline-photo figcaption a { color: var(--ink-soft); }
figure.inline-photo figcaption a:hover { color: var(--accent); }

/* Color archive grid */
.color-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 1.5em 0 2em;
}

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

.color-tile {
  border: 1px solid var(--line);
  background: var(--bg-alt);
  text-align: center;
}

.color-tile.documented img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line);
}

.color-tile .color-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 12px 0 4px;
}

.color-tile.documented .color-name { margin-bottom: 12px; }

.color-tile.pending {
  border-style: dashed;
  background: transparent;
  padding: 24px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 140px;
}

.color-tile.pending .color-name { color: var(--ink-soft); margin-top: 0; }

.color-tile .color-note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 0 0 12px;
  padding: 0 10px;
}

.color-tile.pending .color-note { margin-bottom: 0; }
