/* Elevated by Bianca: shared site styles.
   Layout: a slim wordmark header, generous editorial columns, photo-led cards, one quiet footer. */
:root {
  --bg: #f2f3ee;        /* frost */
  --surface: #e7e9e1;
  --ink: #1d2b24;       /* pine */
  --muted: #56645c;
  --rule: #c9cfc4;
  --accent: #7a2233;    /* burgundy velvet */
  --accent-ink: #fbf7f4;
  --kraft: #a9825a;
  --print: #fbfbf8;
  --shadow: rgba(29, 43, 36, 0.35);
  --font-display: "Gloock", "Georgia", "Times New Roman", serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  --page: 70rem;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111915; --surface: #1a241f; --ink: #e6ebe4; --muted: #9aa89f; --rule: #2d3a33;
    --accent: #c9566b; --accent-ink: #17090c; --kraft: #c49a6c; --print: #e9ece6; --shadow: rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111915; --surface: #1a241f; --ink: #e6ebe4; --muted: #9aa89f; --rule: #2d3a33;
  --accent: #c9566b; --accent-ink: #17090c; --kraft: #c49a6c; --print: #e9ece6; --shadow: rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; text-wrap: balance; margin: 0; line-height: 1.1; }
p { margin: 0; }

/* ---------- Site chrome ---------- */
.site-header, .site-footer .inner, .page {
  max-width: var(--page);
  margin: 0 auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.site-header {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wordmark em { font-style: normal; color: var(--accent); }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; }
.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding-block: 0.2rem;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

.site-footer { border-top: 1px solid var(--rule); margin-top: 4rem; }
.site-footer .inner {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem;
  padding-block: 2rem 2.5rem;
  font-size: 0.85rem; color: var(--muted);
}
.site-footer .inner > * { min-width: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.site-footer a { color: var(--muted); }
@media (max-width: 640px) { .site-footer .inner { grid-template-columns: 1fr; } }

/* ---------- Shared bits ---------- */
.page { padding-block: 3rem 1rem; display: flex; flex-direction: column; gap: 4rem; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.lede { font-size: 1.2rem; color: var(--muted); max-width: 36rem; }
.prose { max-width: 40rem; display: flex; flex-direction: column; gap: 1.1rem; }
.prose h2 { font-size: clamp(1.6rem, 4vw, 2rem); margin-top: 1rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; align-self: flex-start;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  padding: 0.6rem 1.1rem; border-radius: 2px;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; border-bottom: 1px solid var(--rule); padding-bottom: 0.9rem; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
.section-head a { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.mockup-note { font-size: 0.8rem; color: var(--muted); }
.page-title { display: flex; flex-direction: column; gap: 0.9rem; max-width: 46rem; }
.page-title h1 { font-size: clamp(2.6rem, 7vw, 4rem); letter-spacing: -0.01em; }

/* Photo with a "styled mockup" tag */
.photo { position: relative; margin: 0; }
.photo img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 3px; background: var(--surface); }
.photo .tag {
  position: absolute; left: 0.5rem; bottom: 0.5rem;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(17, 25, 21, 0.72); color: #f2f3ee; padding: 0.15rem 0.45rem; border-radius: 2px;
}

/* ---------- Home ---------- */
.home-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.home-hero .copy { display: flex; flex-direction: column; gap: 1.2rem; }
.home-hero h1 { font-size: clamp(2.8rem, 7.5vw, 5rem); letter-spacing: -0.015em; }
.home-hero h1 em { font-style: italic; color: var(--accent); }
.home-hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-stack { position: relative; padding-bottom: 14%; }
.hero-stack .photo:first-child { width: 78%; }
.hero-stack .photo:last-child {
  position: absolute; right: 0; bottom: 0; width: 46%;
  border: 6px solid var(--print); border-bottom-width: 22px;
  box-shadow: 0 14px 30px -12px var(--shadow);
  transform: rotate(3deg);
}
.hero-stack .photo:last-child .tag { display: none; }
@media (max-width: 760px) { .home-hero { grid-template-columns: 1fr; } }

/* Feature post card */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; text-decoration: none; color: inherit; }
.feature .photo img { aspect-ratio: 4 / 3; }
.feature .copy { display: flex; flex-direction: column; gap: 0.9rem; }
.feature h3 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.feature:hover h3 { color: var(--accent); }
.feature .meta { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } }

/* Product cards (home teaser + shop) */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.25rem; }
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.card .photo { transition: transform .25s ease; }
.card:hover .photo { transform: rotate(-1deg) translateY(-3px); }
.card h3 { font-size: 1.2rem; }
.card p { font-size: 0.92rem; color: var(--muted); }
.card .cat { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--kraft); }
.card .btn { font-size: 0.85rem; padding: 0.45rem 0.85rem; margin-top: auto; }

/* Shop filter */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filters button {
  font: inherit; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: transparent; color: var(--muted);
  border: 1px solid var(--rule); border-radius: 999px; padding: 0.35rem 0.9rem; cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* About strip */
.about-strip { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; background: var(--surface); padding: clamp(1.5rem, 4vw, 3rem); border-radius: 3px; }
.about-strip .copy { display: flex; flex-direction: column; gap: 1rem; }
.about-strip h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
@media (max-width: 760px) { .about-strip { grid-template-columns: 1fr; } }

/* Journal list */
.post-list { display: flex; flex-direction: column; }
.post-row { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.5rem; padding-block: 1.75rem; border-top: 1px solid var(--rule); text-decoration: none; color: inherit; align-items: center; }
.post-row:last-child { border-bottom: 1px solid var(--rule); }
.post-row h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); }
.post-row:hover h2 { color: var(--accent); }
.post-row .copy { display: flex; flex-direction: column; gap: 0.5rem; }
.post-row p { color: var(--muted); }
.post-row.soon { opacity: 0.7; }
@media (max-width: 560px) { .post-row { grid-template-columns: 6rem minmax(0, 1fr); gap: 1rem; } }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-copy { display: flex; flex-direction: column; gap: 1.1rem; max-width: 34rem; }
.about-copy h1 { font-size: clamp(2.8rem, 7vw, 4.4rem); letter-spacing: -0.015em; }
.signoff { font-family: var(--font-display); font-size: 1.6rem; color: var(--accent); margin-top: 0.5rem; }
.portrait { margin: 0; position: relative; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: 3px; background: var(--surface); }
.portrait::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--kraft); border-radius: 3px; z-index: -1; }
.portrait { z-index: 0; }
.portrait.placeholder { aspect-ratio: 4 / 5; background: var(--surface); border-radius: 3px; display: grid; place-items: center; }
.portrait.placeholder span { font-family: var(--font-display); font-size: clamp(5rem, 14vw, 9rem); color: var(--kraft); }
.portrait.small img { aspect-ratio: 4 / 5; }
.about-note { border-top: 1px solid var(--rule); padding-top: 2rem; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .portrait { max-width: 24rem; margin-right: 14px; } }

@media (prefers-reduced-motion: reduce) { .btn, .card .photo { transition: none; } }
