/* ─────────────────────────────────────────────────────────
   The Block Stone Supply — Journal
   Editorial styles, matched to the existing site's voice.
   ───────────────────────────────────────────────────────── */

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

:root {
  --bg: #faf7f0;
  --paper: #ffffff;
  --soft: #f3eee2;
  --ink: #1a1a1a;
  --ink-mid: #4a4540;
  --ink-soft: #8a857d;
  --rule: rgba(0, 0, 0, 0.10);
  --rule-soft: rgba(0, 0, 0, 0.06);
  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ───── Site chrome (matches existing site) ───── */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 56px;
  border-bottom: 1px solid var(--rule-soft);
  background: var(--bg);
}
.site-nav .brand {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.site-nav .links {
  display: flex;
  gap: 36px;
  font-size: 14px;
  color: var(--ink-mid);
}
.site-nav .links a { transition: color .2s; }
.site-nav .links a:hover { color: var(--ink); }
.site-nav .links a.active { color: var(--ink); }
.site-nav .tel {
  font-size: 14px;
  color: var(--ink-mid);
}
.site-nav .nav-end {
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-nav .lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 0;
  line-height: 1;
  color: var(--ink-mid);
}
.site-nav .lang-toggle span[data-lang] { opacity: 0.45; transition: opacity .2s; }
.site-nav .lang-toggle span[data-lang].on { opacity: 1; font-weight: 600; color: var(--ink); }
.site-nav .lang-toggle .sep { opacity: 0.4; }

/* ───── Journal header ───── */
.journal-header {
  text-align: center;
  padding: 96px 32px 64px;
  border-bottom: 1px solid var(--rule-soft);
}
.journal-header .eyebrow {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.journal-header h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 76px;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 auto;
  max-width: 800px;
  color: var(--ink);
}
.journal-header h1 em {
  font-style: italic;
  color: var(--ink-mid);
  font-weight: 300;
}
.journal-header .sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-mid);
  max-width: 560px;
  margin: 28px auto 0;
}

/* ───── Index list ───── */
.journal-list {
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 32px 120px;
}
.filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 64px;
  font-size: 13px;
}
.filters .filter {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  color: var(--ink-mid);
  cursor: pointer;
  transition: all .18s;
  background: transparent;
}
.filters .filter:hover { border-color: var(--ink-mid); color: var(--ink); }
.filters .filter.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.post-list { border-top: 1px solid var(--rule); }
.post-card {
  display: grid;
  grid-template-columns: 140px 1fr 200px;
  gap: 48px;
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
  transition: opacity .2s;
}
.post-card:hover { opacity: 0.7; }
.post-card .meta {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.post-card .meta .cat {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
}
.post-card .main h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 36px;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--ink);
}
.post-card .main h2 em { font-style: italic; color: var(--ink-mid); }
.post-card .main p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-mid);
  margin: 0;
  max-width: 560px;
}
.post-card .img {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: var(--soft);
}

/* ───── Post layout ───── */
.post-header {
  padding: 80px 32px 56px;
  text-align: center;
  border-bottom: 1px solid var(--rule-soft);
}
.post-header .breadcrumb {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 32px;
}
.post-header .breadcrumb a { color: var(--ink-soft); transition: color .2s; }
.post-header .breadcrumb a:hover { color: var(--ink); }
.post-header .breadcrumb .sep { margin: 0 10px; opacity: 0.4; }
.post-header .cat {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.post-header h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 auto;
  max-width: 880px;
  color: var(--ink);
}
.post-header h1 em { font-style: italic; color: var(--ink-mid); font-weight: 300; }
.post-header .dek {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink-mid);
  max-width: 620px;
  margin: 32px auto 0;
}
.post-header .byline {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 24px;
}
.post-header .byline span::before { content: '· '; margin-right: 6px; opacity: 0.5; }
.post-header .byline span:first-child::before { content: ''; margin: 0; }

.post-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.post-hero .img {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: var(--soft);
  margin-top: 56px;
}
.post-hero .caption {
  font-size: 13px;
  color: var(--ink-soft);
  font-style: italic;
  text-align: center;
  margin-top: 16px;
  font-family: var(--serif);
}

/* Body — magazine-like column */
.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 32px 96px;
}
.post-body p {
  font-size: 18px;
  line-height: 1.75;
  margin: 0 0 24px;
  color: var(--ink);
}
.post-body p:first-of-type::first-letter {
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
  float: none;
  margin: 0;
  color: inherit;
}
.post-body h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 36px;
  line-height: 1.2;
  margin: 64px 0 24px;
  color: var(--ink);
}
.post-body h2 em { font-style: italic; color: var(--ink-mid); }
.post-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.3;
  margin: 48px 0 16px;
}
.post-body h3 em { font-style: italic; color: var(--ink-mid); }
.post-body ul { padding-left: 1.3em; margin: 0 0 24px; }
.post-body li { font-size: 18px; line-height: 1.7; margin-bottom: 12px; }
.post-body blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 28px;
  line-height: 1.4;
  color: var(--ink);
  margin: 48px 0;
  padding: 0;
  border: 0;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.post-body blockquote::before, .post-body blockquote::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--ink);
  margin: 0 auto 24px;
}
.post-body blockquote::after { margin: 24px auto 0; }
.post-body strong { font-weight: 600; }
.post-body em { font-style: italic; }
.post-body a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink-soft);
  transition: border-color .2s;
}
.post-body a:hover { border-color: var(--ink); }

.post-body .pull {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 24px;
  line-height: 1.4;
  color: var(--ink-mid);
  border-left: 2px solid var(--ink);
  padding: 8px 0 8px 24px;
  margin: 40px 0;
}

/* Inline figure */
.post-body figure {
  margin: 48px -120px;
}
.post-body figure .img {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: var(--soft);
}
.post-body figure figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 12px;
}

/* Inline spec table */
.spec-table {
  margin: 48px 0;
  width: 100%;
  border-collapse: collapse;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 14px 16px;
  font-size: 15px;
  border-bottom: 1px solid var(--rule);
}
.spec-table th {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  background: var(--soft);
}
.spec-table td { color: var(--ink-mid); }
.spec-table tr:last-child td { border-bottom: 1px solid var(--ink); }

/* ───── From this post — related/CTA ───── */
.from-this {
  background: var(--soft);
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  padding: 80px 32px;
}
.from-this .wrap {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.from-this .col h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 32px;
  margin: 0 0 16px;
  line-height: 1.2;
}
.from-this .col h3 em { font-style: italic; color: var(--ink-mid); }
.from-this .col p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-mid);
  max-width: 440px;
  margin: 0 0 20px;
}
.from-this .col .arrow {
  display: inline-block;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}
.from-this .col .arrow:hover { padding-bottom: 6px; transition: padding-bottom .2s; }

/* ───── Related posts ───── */
.related {
  padding: 80px 32px;
  max-width: 1240px;
  margin: 0 auto;
}
.related .head {
  text-align: center;
  margin-bottom: 56px;
}
.related h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 40px;
  margin: 0;
}
.related h2 em { font-style: italic; color: var(--ink-mid); }
.related .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.related .card .img {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: var(--soft);
  margin-bottom: 18px;
}
.related .card .cat {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.related .card h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 24px;
  line-height: 1.25;
  margin: 0;
}
.related .card h3 em { font-style: italic; color: var(--ink-mid); }

/* ───── Footer (matches existing) ───── */
.site-footer {
  padding: 80px 56px 40px;
  border-top: 1px solid var(--rule-soft);
}
.site-footer .row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule-soft);
}
.site-footer .brand-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  margin-bottom: 18px;
}
.site-footer .brand p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-mid);
  max-width: 320px;
  margin: 0;
}
.site-footer h5 {
  font-size: 13px;
  font-weight: 600;
  margin: 8px 0 18px;
  color: var(--ink);
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  line-height: 2;
  color: var(--ink-mid);
}
.site-footer .colo {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-soft);
}

/* Reading time / responsive guard */
@media (max-width: 900px) {
  .post-body figure { margin-left: 0; margin-right: 0; }
  .post-header h1 { font-size: 44px; }
  .post-body p { font-size: 17px; }
}

/* ─────────────────────────────────────────────────────────
   Pin this — Pinterest save button + post-end pin preview
   ───────────────────────────────────────────────────────── */

/* Hover-revealed Save button on the hero image */
.post-hero { position: relative; }
.post-hero .save-pin {
  position: absolute;
  top: 80px;
  right: 56px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: rgba(250, 247, 240, 0.92);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease, background .15s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.post-hero:hover .save-pin { opacity: 1; transform: translateY(0); }
.post-hero .save-pin:hover { background: rgba(250, 247, 240, 1); }
.post-hero .save-pin svg { width: 14px; height: 14px; }
.post-hero .save-pin .label-mark::before { content: 'P'; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 14px; line-height: 1; display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: #bd081c; color: #fff; text-align: center; line-height: 18px; margin-right: 8px; vertical-align: -3px; }

/* Pin this — post-end card with live pin preview */
.pin-this {
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 32px;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.pin-this .wrap {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: center;
}
.pin-this .preview {
  width: 320px;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0,0,0,0.10), 0 1px 0 rgba(0,0,0,0.04);
  position: relative;
  transform: rotate(-1.5deg);
  transition: transform .3s ease;
}
.pin-this .preview:hover { transform: rotate(0deg) scale(1.02); }
.pin-this .preview .photo {
  position: absolute; inset: 0 0 45% 0;
  background-size: cover;
  background-position: center;
  background-color: var(--soft);
}
.pin-this .preview .text {
  position: absolute; inset: 55% 0 0 0;
  background: var(--cream, #ece6d7);
  padding: 26px 22px;
  display: flex; flex-direction: column;
}
.pin-this .preview .eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.pin-this .preview h4 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 26px;
  line-height: 1.05;
  margin: 12px 0 0;
  color: var(--ink);
}
.pin-this .preview h4 em { font-style: italic; color: var(--ink-mid); font-weight: 300; }
.pin-this .preview .foot {
  margin-top: auto;
  font-family: var(--serif);
  font-style: italic;
  font-size: 11px;
  color: var(--ink-soft);
}
.pin-this .preview .mark {
  position: absolute; bottom: 14px; left: 14px;
  font-family: var(--serif);
  font-size: 11px;
  padding: 5px 9px;
  background: rgba(255,255,255,0.85);
  border-radius: 3px;
  z-index: 2;
}

.pin-this .copy .lbl {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.pin-this .copy h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 36px;
  line-height: 1.1;
  margin: 0 0 16px;
}
.pin-this .copy h3 em { font-style: italic; color: var(--ink-mid); }
.pin-this .copy p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-mid);
  max-width: 460px;
  margin: 0 0 28px;
}

.pin-this .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background .15s;
}
.pin-this .btn:hover { background: #000; }
.pin-this .btn .p-mark {
  display: inline-block;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #bd081c;
  color: #fff;
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
}

@media (max-width: 720px) {
  .pin-this .wrap { grid-template-columns: 1fr; justify-items: center; gap: 32px; }
  .post-hero .save-pin { right: 24px; top: 24px; }
}


/* @related-noimg — tidy text-only related cards (shown until real photos exist).
   Uses :has() so photo cards (which contain .img) are untouched. */
.related .card:not(:has(.img)) { border-top: 1px solid var(--ink); padding-top: 20px; }
.related .card:not(:has(.img)) .cat { margin-bottom: 10px; }
