/* The Scrub Diary — design system */

:root {
  --charcoal: #2B2420;
  --charcoal-deep: #1F1916;
  --charcoal-2: #3A312C;
  --cream-on-dark: #F5EDE3;
  --cream: #F2E8DC;
  --paper: #FBF7F1;
  --terracotta: #C1502E;
  --terracotta-dark: #A13F21;
  --mustard: #C98F2B;
  --mustard-light: #DDA43F;
  --forest: #2F4C3B;
  --ink: #1E1916;
  --body: #3D3530;
  --muted: #6B5E55;
  --muted-on-dark: #C9BCAE;
  --line: #E2D5C5;
  --line-dark: rgba(245, 237, 227, 0.10);

  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius: 12px;
  --wrap: 1120px;
  --read: 720px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--mustard); color: var(--charcoal-deep); }

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 800; color: var(--ink); line-height: 1.2; letter-spacing: -0.02em; }

a { color: var(--terracotta-dark); }
a:hover { color: var(--terracotta); }

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

.skip-link { position: absolute; left: -999px; top: 0; background: var(--mustard); color: var(--charcoal-deep); padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }

/* Reading progress */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--mustard); z-index: 99; box-shadow: 0 0 12px rgba(201, 143, 43, .6); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(31, 25, 22, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
}

.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }

.logo {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--cream-on-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.logo:hover { color: var(--cream-on-dark); }
.logo .mark { background: var(--mustard); color: var(--charcoal-deep); padding: 0 .14em; line-height: 1.05; }

.header-right { display: flex; align-items: center; gap: 26px; }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  text-decoration: none;
  transition: color .2s;
}
.site-nav a:hover { color: var(--mustard-light); }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--mustard);
  color: var(--charcoal-deep);
  padding: 17px 30px;
  border-radius: 6px;
  overflow: hidden;
  transition: background .2s, transform .2s, box-shadow .25s;
}
.btn:hover { background: var(--mustard-light); color: var(--charcoal-deep); transform: translateY(-2px); box-shadow: 0 10px 40px rgba(201, 143, 43, .35); }
.btn:focus-visible { outline: 2px solid var(--mustard); outline-offset: 3px; }
.site-header .btn { padding: 10px 18px; font-size: 11.5px; }

/* Dark hero (home + pages) */
.hero, .article-head {
  background: var(--charcoal);
  color: var(--cream-on-dark);
  position: relative;
  overflow: hidden;
}
.hero::after, .article-head::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 5px;
  background: var(--mustard);
  z-index: 2;
}

.hero { padding: 72px 0 64px; }
.hero .wrap { position: relative; z-index: 1; }

.ghost {
  position: absolute;
  top: -12%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(140px, 26vw, 360px);
  line-height: 1;
  letter-spacing: -8px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 237, 227, .07);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--charcoal-deep);
  background: var(--mustard);
  padding: 6px 15px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.hero h1 { color: #fff; font-size: clamp(34px, 5.6vw, 56px); line-height: 1.1; letter-spacing: -1.3px; margin-bottom: 20px; max-width: 18ch; }
.hero h1 .hl { color: var(--mustard-light); }
.hero p { font-size: 18.5px; color: var(--muted-on-dark); max-width: 58ch; line-height: 1.6; }

.eyebrow { font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--mustard); }

/* Sections */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -1px; }
.section-head p { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }

/* Post cards */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.post-card:hover { transform: translateY(-4px); border-color: #D4C3AE; box-shadow: 0 22px 46px -26px rgba(43, 36, 32, .35); }

.post-card .thumb { display: block; background: var(--charcoal); }
.post-card .thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.post-card .body { padding: 24px 26px 22px; display: flex; flex-direction: column; flex: 1; border-top: 3px solid var(--mustard); }

.tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  text-decoration: none;
  margin-bottom: 12px;
}

.post-card h3 { font-size: 20.5px; line-height: 1.28; letter-spacing: -.5px; margin-bottom: 12px; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--terracotta-dark); }
.post-card p { font-size: 15.5px; color: var(--body); line-height: 1.6; flex: 1; }

.go {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color .2s, gap .2s;
}
.post-card:hover .go { color: var(--terracotta-dark); gap: 13px; }

.meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-top: 14px; }

.post-card.feat { grid-column: 1 / -1; }
@media (min-width: 860px) {
  .post-card.feat { flex-direction: row; align-items: stretch; }
  .post-card.feat .thumb { width: 46%; flex: none; }
  .post-card.feat .thumb img { height: 100%; aspect-ratio: auto; }
  .post-card.feat .body { border-top: none; border-left: 3px solid var(--mustard); justify-content: center; padding: 34px 36px; }
  .post-card.feat h3 { font-size: clamp(24px, 2.9vw, 32px); letter-spacing: -.9px; }
  .post-card.feat p { font-size: 16.5px; flex: none; }
}

/* Rooms */
.rooms { background: var(--charcoal); }
.rooms .section-head h2 { color: #fff; }
.rooms .section-head p { color: var(--muted-on-dark); }

.room-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }

.room-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  color: #fff;
  text-decoration: none;
  border: 1px solid var(--line-dark);
}
.room-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.room-tile:hover img { transform: scale(1.05); }
.room-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 16, 14, .9) 0%, rgba(20, 16, 14, 0) 62%); }
.room-tile span { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1; font-family: var(--font-heading); font-weight: 800; font-size: 19px; letter-spacing: -.3px; }
.room-tile small { display: block; margin-top: 4px; font-family: var(--font-mono); font-weight: 500; font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mustard-light); }
.room-tile:hover { color: #fff; }

/* Copy-to-clipboard lists (sayings articles) */
.copy-list { list-style: none; padding-left: 0; }
.copy-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.copy-list li:first-child { border-top: 1px solid var(--line); }
.copy-list li::marker { content: none; }
.copy-text { flex: 1; }
.copy-btn {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.copy-btn:hover { color: var(--terracotta-dark); border-color: var(--terracotta-dark); }
.copy-btn.copied { background: var(--mustard); border-color: var(--mustard); color: var(--charcoal-deep); }

/* Browse by quotes (home) */
.quote-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.quote-tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 3px solid var(--mustard);
  padding: 22px 18px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .2s, box-shadow .2s;
}
.quote-tile:hover { transform: translateY(-4px); box-shadow: 0 16px 36px -22px rgba(43, 36, 32, .35); }
.quote-tile .mark { font-family: var(--font-heading); font-size: 34px; color: var(--mustard); line-height: 1; }
.quote-tile h3 { font-size: 17px; color: var(--ink); }
.quote-tile small { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.quote-tile.soon { opacity: .6; }

/* Article */
.article-head { padding: 40px 0 120px; }
.article-head .inner { max-width: 820px; position: relative; z-index: 1; }

.breadcrumb { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 22px; color: var(--muted-on-dark); }
.breadcrumb a { color: var(--muted-on-dark); text-decoration: none; }
.breadcrumb a:hover { color: var(--mustard-light); }

.article-head .tag { display: inline-block; color: var(--mustard-light); }
.article-head h1 { color: #fff; font-size: clamp(32px, 5vw, 52px); line-height: 1.1; letter-spacing: -1.3px; margin: 4px 0 18px; }
.dek { font-size: 18.5px; color: var(--muted-on-dark); line-height: 1.6; margin-bottom: 24px; max-width: 60ch; }

.byline { display: flex; flex-wrap: wrap; gap: 6px 20px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted-on-dark); }
.byline strong { color: var(--mustard-light); font-weight: 700; }

.article-hero { margin-top: -88px; position: relative; z-index: 3; }
.article-hero img { border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(20, 16, 14, .55); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

.article-body { max-width: var(--read); margin: 0 auto; padding: 48px 22px 24px; font-size: 18px; }
.article-body > * + * { margin-top: 1.2rem; }
.article-body h2 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -.8px; margin-top: 2.8rem; }
.article-body h2::before { content: ""; display: block; width: 44px; height: 4px; background: var(--mustard); margin-bottom: 16px; }
.article-body h3 { font-size: 20px; margin-top: 2rem; }
.article-body ul, .article-body ol { padding-left: 1.4rem; }
.article-body li + li { margin-top: .6rem; }
.article-body li::marker { color: var(--terracotta); font-weight: 700; }
.article-body strong { color: var(--ink); }

.quick-answer { background: var(--charcoal); color: var(--cream-on-dark); border-left: 4px solid var(--mustard); border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 26px; }
.quick-answer h2 { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--mustard-light); margin: 0 0 8px; }
.quick-answer h2::before { display: none; }
.quick-answer p { font-size: 16.5px; line-height: 1.6; }

.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; }
.faq details + details { margin-top: 10px; }
.faq summary { font-family: var(--font-heading); font-weight: 700; font-size: 17px; color: var(--ink); cursor: pointer; }
.faq details[open] summary { color: var(--terracotta-dark); }
.faq details p { margin-top: 10px; font-size: 16px; }

.note { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 40px; }

.related { padding: 24px 0 72px; }
.related .section-head { margin-bottom: 22px; }

/* Plain pages */
.page-head { padding-bottom: 56px; }
.page-body { padding-top: 48px; padding-bottom: 72px; }

/* Footer */
.site-footer { background: var(--charcoal-deep); color: var(--cream-on-dark); padding: 56px 0 40px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 32px 56px; justify-content: space-between; align-items: flex-start; }
.footer-grid > div:first-child { flex: 1 1 320px; }
.site-footer .logo { display: inline-flex; margin-bottom: 14px; }
.site-footer p { color: var(--muted-on-dark); font-size: 14.5px; max-width: 46ch; }
.site-footer h3 { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--mustard); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer ul a { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted-on-dark); text-decoration: none; }
.site-footer ul a:hover { color: var(--mustard-light); }
.footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: 13px; color: #8C7F74; }

/* Responsive */
@media (max-width: 960px) {
  .room-grid { grid-template-columns: repeat(3, 1fr); }
  .quote-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .site-nav { display: none; }
  .header-right { gap: 0; }
  .logo { font-size: 17px; }
  .site-header .btn { padding: 9px 14px; font-size: 10.5px; }
  .hero { padding: 48px 0 44px; }
  .hero p, .dek { font-size: 16.5px; }
  .section { padding: 44px 0; }
  .section-head { flex-direction: column; align-items: start; }
  .post-grid { grid-template-columns: 1fr; }
  .room-grid { grid-template-columns: repeat(2, 1fr); }
  .room-grid .room-tile:last-child { grid-column: span 2; aspect-ratio: 16 / 9; }
  .quote-grid { grid-template-columns: repeat(2, 1fr); }
  .copy-list li { flex-wrap: wrap; }
  .article-head { padding-bottom: 88px; }
  .article-hero { margin-top: -60px; }
  .article-body { font-size: 17px; padding-top: 36px; }
}

/* Cookie banner (site/assets/js/consent.js) */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background: var(--charcoal-deep);
  color: var(--cream-on-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}
.consent[hidden] { display: none; }
.consent-text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted-on-dark); }
.consent-text a { color: var(--mustard-light); }
.consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.consent-btn {
  min-width: 96px;
  padding: 11px 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--charcoal-deep);
  background: var(--mustard);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.consent-btn:hover { background: var(--mustard-light); }
.consent-btn:focus-visible { outline: 2px solid var(--cream-on-dark); outline-offset: 2px; }
@media (max-width: 640px) {
  .consent { flex-direction: column; align-items: stretch; gap: 12px; left: 12px; right: 12px; bottom: 12px; padding: 14px 16px; }
  .consent-btn { flex: 1; }
}
@media print { .consent { display: none; } }
