/* undone — blog post page styles. Shared by /blog/*.html. */

:root {
  --navy: #072A6C;
  --navy-soft: #0A3A8C;
  --mint: #B5EBE9;
  --mint-soft: #E6F6F5;
  --paper: #FAF7F2;
  --paper-pure: #FFFFFF;
  --rule: #1A1F2E;
  --hairline: #E8E2D6;
  --grain: rgba(11, 22, 40, 0.035);
  --r-sheet: 28px;
  --r-button: 24px;
  --shell: min(1240px, 100% - 48px);
  --shell-wide: min(1240px, 100% - 48px);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--navy);
  font-family: "Barlow", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(circle at 12% 18%, var(--grain) 0 1px, transparent 1.6px),
    radial-gradient(circle at 78% 62%, var(--grain) 0 1px, transparent 1.6px),
    radial-gradient(circle at 42% 88%, var(--grain) 0 1px, transparent 1.6px);
  background-size: 280px 280px, 360px 360px, 320px 320px;
  opacity: 0.85;
}
a { color: inherit; text-decoration: none; }

/* Header */
header.post-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}
header.post-header.scrolled {
  border-color: var(--rule);
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
}
.post-nav {
  width: var(--shell-wide);
  margin: 0 auto; padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center;
}
.brand-logo { display: block; height: 28px; width: auto; }
.back-link {
  font-size: 14px; font-weight: 600; color: var(--navy);
  opacity: 0.7; transition: opacity 200ms ease;
}
.back-link:hover { opacity: 1; }

/* Article container */
article.post {
  position: relative; z-index: 1;
  width: var(--shell);
  margin: 48px auto 80px;
  padding: clamp(48px, 6vw, 96px) clamp(32px, 5vw, 88px);
  background: var(--paper-pure);
  border: 1px solid var(--rule);
  border-radius: var(--r-sheet);
}
.crumb {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--navy); opacity: 0.6;
  margin-bottom: 14px;
}
h1.post-title {
  font-family: "Barlow", sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--navy);
  margin: 0 0 32px;
}

.post-body p,
.post-body ul,
.post-body ol {
  font-size: 17px;
  line-height: 1.65;
  color: var(--navy);
  margin: 0 0 22px;
  font-weight: 500;
}
.post-body h2 {
  font-family: "Barlow", sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 36px 0 14px;
}
.post-body h3 {
  font-family: "Barlow", sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin: 28px 0 12px;
}
.post-body blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  background: var(--mint-soft);
  border-left: 3px solid var(--navy);
  border-radius: 0 12px 12px 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}
.post-body em, .post-body i { font-style: italic; }
.post-body strong, .post-body b { font-weight: 700; }
.post-body a { text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: var(--navy-soft); }
.post-body ul, .post-body ol { padding-left: 24px; }
.post-body li { margin: 6px 0; }

/* Footer CTA */
.post-cta {
  margin: 48px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.btn {
  appearance: none;
  background: var(--navy); color: #fff;
  border: 2px solid var(--navy);
  padding: 13px 26px; border-radius: var(--r-button);
  font: inherit; font-weight: 600; font-size: 15px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background 180ms ease;
  text-decoration: none;
}
.btn:hover { background: var(--navy-soft); }
.btn .arrow { transition: transform 220ms ease; }
.btn:hover .arrow { transform: translateX(4px); }
.back-to-room {
  font-size: 14px; font-weight: 600; color: var(--navy);
  opacity: 0.7; text-decoration: underline; text-underline-offset: 3px;
}
.back-to-room:hover { opacity: 1; }

/* Site footer */
footer.site-foot {
  position: relative; z-index: 1;
  border-top: 1px solid var(--hairline);
  padding: 24px 0;
  background: var(--paper);
}
.foot-inner {
  width: var(--shell-wide);
  margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--navy); opacity: 0.7; font-weight: 600;
}

@media (max-width: 720px) {
  article.post { margin: 24px auto 48px; padding: 40px 22px; }
  h1.post-title { font-size: clamp(26px, 6vw, 34px); }
  .post-cta { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; justify-content: center; }
}
