/* =========================================================
   THE INNER HOUSE — one stylesheet for the whole site
   ---------------------------------------------------------
   To change a colour everywhere, edit it once in :root below.
   Sections:
     1. Colours, fonts, sizes (tokens)
     2. Base
     3. Header + navigation
     4. Buttons + links
     5. Hero
     6. Doorways (the rooms)
     7. Approach, quote, writing list
     8. The Threshold (newsletter band + forms)
     9. Page headers, about, room pages
    10. Articles (reading layout + knowledge notes)
    11. Footer
    12. Placeholders (yellow [to do] marks)
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Palette */
  --linen: #F6F1E9;      /* page background */
  --linen-deep: #EEE7DB; /* alternate sections */
  --stone: #DDD5C8;      /* borders, quiet room */
  --ink: #2E2A26;        /* text */
  --ink-soft: #5C544B;   /* secondary text */
  --sage: #8A9A7B;       /* garden, accents */
  --moss: #4F5E45;       /* links, buttons (dark enough to read) */
  --clay: #B9785A;       /* hearth */
  --night: #1F2A44;      /* observatory, The Threshold */
  --night-soft: #2C3A5A;
  --umber: #6B5A48;      /* library */
  --star: #F3E9D2;       /* text on night */

  /* Type */
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --wrap: 1180px;
  --read: 680px;
  --gutter: clamp(16px, 4vw, 40px);
  --space: clamp(64px, 9vw, 120px);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;        /* 18px */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--moss); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.8rem, 6.2vw, 5rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.75rem); font-weight: 600; }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space) 0; }
.section--tint { background: var(--linen-deep); }
.lede { font-size: 1.25rem; color: var(--ink-soft); max-width: 36em; }
.section-head { max-width: 40em; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { color: var(--ink-soft); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--linen); padding: 8px 14px; z-index: 99; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 3. Header ---------- */
.site-header { position: relative; z-index: 10; padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { width: 30px; height: 38px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; line-height: 1; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav a { color: var(--ink); text-decoration: none; font-size: 1.02rem; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--clay); text-underline-offset: 6px; }
.nav .nav-threshold {
  background: var(--night); color: var(--star); padding: 9px 20px; border-radius: 999px;
}
.nav .nav-threshold:hover { background: var(--night-soft); text-decoration: none; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--stone);
    border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 1rem; color: var(--ink); cursor: pointer;
  }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--linen); border-bottom: 1px solid var(--stone); padding: 8px var(--gutter) 24px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--stone); font-size: 1.15rem; }
  .nav .nav-threshold { margin-top: 18px; text-align: center; border-bottom: 0; }
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-size: 1.02rem; font-weight: 600;
  padding: 14px 28px; border-radius: 999px; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: background-color .2s, color .2s;
}
.btn--primary { background: var(--moss); color: #fff; }
.btn--primary:hover { background: var(--ink); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--linen); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 5. Hero ---------- */
.hero { padding: clamp(24px, 4vw, 56px) 0 var(--space); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero .lede { margin-bottom: 2rem; }
.hero-arch {
  position: relative; aspect-ratio: 3 / 4; max-height: 76vh; justify-self: end; width: 100%; max-width: 460px;
}
.hero-arch .arch { width: 100%; height: 100%; }
.hero-arch figcaption {
  position: absolute; left: -28px; bottom: 32px; background: var(--linen); padding: 12px 18px;
  font-family: var(--serif); font-style: italic; font-size: 1.15rem; max-width: 15em; line-height: 1.3;
  box-shadow: 0 1px 0 var(--stone);
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-arch { justify-self: center; max-width: 380px; aspect-ratio: 4 / 5; }
  .hero-arch figcaption { left: 12px; }
}

/* The arch: a doorway-shaped frame used across the site */
.arch {
  border-top-left-radius: 9999px; border-top-right-radius: 9999px;
  overflow: hidden; background: var(--stone);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* One gentle treatment for every photo, so images from different sources
   feel like one house: slightly softer colour, a touch of warmth.
   To turn it off, delete the filter line. */
.arch img, .feature-img img {
  filter: saturate(.86) sepia(.07) contrast(.97);
}

/* Keyhole: only on links that take you into a room */
.keyhole { width: .62em; height: .93em; fill: currentColor; margin-right: .5em; vertical-align: -.08em; flex: none; }

/* ---------- 6. Doorways ---------- */
.doors { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(14px, 2vw, 26px); }
.door { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.door .arch { aspect-ratio: 5 / 8; position: relative; }
.door h3 { margin: 18px 0 4px; }
.door p { font-size: 1rem; color: var(--ink-soft); margin: 0; }
.door .door-tag { font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.3; color: var(--ink); margin-bottom: 6px; }
.door-enter { display: inline-block; margin-top: 10px; font-size: .98rem; font-weight: 600; color: var(--moss); }
a.door:hover .door-enter { text-decoration: underline; }
a.door .arch img { transition: transform .6s ease; }
a.door:hover .arch img { transform: scale(1.04); }

/* Room colour washes over the photo */
.door .arch::after { content: ""; position: absolute; inset: 0; mix-blend-mode: multiply; opacity: .28; }
.door--hearth .arch::after { background: var(--clay); }
.door--quiet .arch::after { background: var(--stone); opacity: .4; }
.door--garden .arch::after { background: var(--sage); }

/* The Observatory has no photo: a drawn night sky instead */
.sky {
  width: 100%; height: 100%; background-color: var(--night);
  background-image:
    radial-gradient(1.5px 1.5px at 22% 30%, var(--star) 50%, transparent 51%),
    radial-gradient(1px 1px at 68% 18%, var(--star) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 45% 52%, var(--star) 50%, transparent 51%),
    radial-gradient(1px 1px at 80% 64%, var(--star) 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 30% 74%, var(--star) 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 84%, var(--star) 50%, transparent 51%),
    radial-gradient(1px 1px at 14% 58%, var(--star) 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 88% 40%, var(--star) 50%, transparent 51%),
    linear-gradient(180deg, #172036 0%, var(--night) 55%, #34405F 100%);
  position: relative;
}
.sky .moon {
  position: absolute; top: 20%; left: 50%; width: 22%; aspect-ratio: 1; border-radius: 50%;
  transform: translateX(-50%); box-shadow: inset 9px -6px 0 0 var(--star);
}
/* When images/room-observatory.jpg exists, it covers the drawn sky */
.sky img { position: absolute; inset: 0; }

/* Closed doors: rooms opening soon, drawn as doors within doors */
.door--closed { cursor: default; }
.door--closed .arch { background: var(--linen-deep); border: 1px solid var(--stone); }
.door--closed .nested { position: absolute; inset: 0; width: 100%; height: 100%; }
.door--closed .soon {
  position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%); white-space: nowrap;
  font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--ink-soft);
  background: var(--linen-deep); padding: 2px 12px; border-radius: 999px;
}

@media (max-width: 1080px) {
  .doors { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .doors { grid-template-columns: repeat(2, 1fr); }
  .door .arch { aspect-ratio: 3 / 4; }
  .door p { font-size: .95rem; }
}

/* Larger doors on the Rooms page */
.doors--large { grid-template-columns: repeat(3, 1fr); row-gap: 56px; }
.doors--large .door .arch { aspect-ratio: 4 / 5; }
@media (max-width: 860px) { .doors--large { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .doors--large { grid-template-columns: 1fr; } }

/* ---------- 7. Approach, quote, writing ---------- */
.approach { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.approach h3 { margin-bottom: .35em; }
.approach p { color: var(--ink-soft); margin: 0; }
.approach > div { border-top: 1px solid var(--ink); padding-top: 22px; }
/* Questions: each one belongs to a room, shown by the colour of its rule */
.approach .q { border-top-width: 3px; display: flex; flex-direction: column; }
.q--hearth { border-top-color: var(--clay) !important; }
.q--quiet { border-top-color: var(--sage) !important; }
.q--observatory { border-top-color: var(--night) !important; }
.q h3 { font-style: italic; font-weight: 500; font-size: clamp(1.5rem, 2.3vw, 1.9rem); line-height: 1.2; }
.q-link { margin-top: 16px; font-weight: 600; font-size: .98rem; text-decoration: none; display: inline-flex; align-items: center; }
.q-link:hover { text-decoration: underline; }

/* Hero second line: the positioning statement */
.hero-sub { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.3; margin: -.2em 0 .9em; max-width: 22em; }
.btn { display: inline-flex; align-items: center; }
@media (max-width: 760px) { .approach { grid-template-columns: 1fr; } }

.quote { text-align: center; }
.quote blockquote { margin: 0 auto; max-width: 26em; }
.quote blockquote p {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.25; margin-bottom: .6em;
}
.quote cite { font-style: normal; color: var(--ink-soft); font-size: 1rem; }

.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 48px); }
.post { text-decoration: none; color: var(--ink); display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: start; }
.post .arch { aspect-ratio: 4 / 5; }
.post-room { font-size: .95rem; color: var(--ink-soft); margin-bottom: 6px; }
.post h3 { margin-bottom: 8px; }
.post p { color: var(--ink-soft); font-size: 1.02rem; margin: 0; }
a.post:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.post--soon { opacity: .7; }
@media (max-width: 860px) { .posts { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .post { grid-template-columns: 110px 1fr; gap: 18px; } }

/* ---------- 8. The Threshold ---------- */
.threshold { background: var(--night); color: var(--star); position: relative; overflow: hidden; }
.threshold .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.threshold h2 { color: var(--star); }
.threshold p { color: #D9D2C3; }
.threshold-note { font-size: .95rem; color: #AEB4C4 !important; margin: 12px 0 0; }
.threshold-note a { color: #D9D2C3; }
.threshold strong { color: var(--star); font-weight: 600; }
@media (max-width: 860px) { .threshold .wrap { grid-template-columns: 1fr; } }

.signup { display: flex; gap: 10px; flex-wrap: wrap; }
.signup input[type="email"] {
  flex: 1 1 220px; min-width: 0; font: inherit; padding: 14px 20px; border-radius: 999px;
  border: 1px solid #56617D; background: var(--night-soft); color: var(--star);
}
.signup input::placeholder { color: #AEB4C4; }
.signup .btn { background: var(--star); color: var(--night); }
.signup .btn:hover { background: #fff; }
.hidden-field { display: none; }

/* Contact form (on linen) */
.form { display: grid; gap: 18px; max-width: 560px; }
.form label { display: block; font-weight: 600; font-size: 1rem; margin-bottom: 6px; }
.form input, .form textarea {
  width: 100%; font: inherit; padding: 12px 16px; border: 1px solid #BFB5A6; border-radius: 10px; background: #FFFDF9; color: var(--ink);
}
.form textarea { min-height: 160px; resize: vertical; }

/* ---------- 9. Page headers, about, rooms ---------- */
.page-head { padding: clamp(32px, 6vw, 80px) 0 clamp(40px, 6vw, 72px); }
.page-head .lede { margin-top: .4em; }

.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split .arch { aspect-ratio: 3 / 4; position: sticky; top: 32px; }
.prose { max-width: var(--read); }
.prose p, .prose li { font-size: 1.15rem; }
.prose h2 { margin-top: 1.4em; font-size: clamp(1.8rem, 3vw, 2.3rem); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split .arch { position: static; max-width: 360px; }
}

.room-head { padding: clamp(32px, 6vw, 72px) 0 var(--space); }
.room-head .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.room-head .arch { aspect-ratio: 4 / 5; max-width: 380px; justify-self: end; width: 100%; }
.room-mark { display: inline-block; width: 44px; height: 4px; border-radius: 2px; margin-bottom: 22px; }
.room-head h1 { margin-bottom: .15em; }
.room-tag { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: .8em; }
.room-intro { color: var(--ink-soft); max-width: 36em; }
.room-head .lede { color: var(--ink); }

/* Room feature: optional longer section on a room page */
.feature { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.feature .prose h2 { margin-top: 0; }
.feature-label { font-family: var(--serif); font-style: italic; font-size: 1.3rem; margin-bottom: 12px; }
.themes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--stone); }
.themes li { padding: 10px 0; border-bottom: 1px solid var(--stone); font-size: 1.05rem; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }
.room--hearth .room-mark { background: var(--clay); }
.room--quiet .room-mark { background: var(--sage); }
.room--observatory .room-mark { background: var(--night); }
@media (max-width: 860px) {
  .room-head .wrap { grid-template-columns: 1fr; }
  .room-head .arch { justify-self: start; max-width: 300px; }
}

.two-sides { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.two-sides > div { border-top: 1px solid var(--ink); padding-top: 22px; }
.two-sides h3 { margin-bottom: .4em; }
.two-sides p { color: var(--ink-soft); }
@media (max-width: 760px) { .two-sides { grid-template-columns: 1fr; } }

.next-rooms { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 1.05rem; }

/* ---------- 10. Articles ---------- */
.article-head { padding: clamp(32px, 6vw, 72px) 0 40px; text-align: center; }
.article-head h1 { font-size: clamp(2.5rem, 5.5vw, 4.2rem); max-width: 14em; margin: 0 auto .35em; }
.article-meta { color: var(--ink-soft); font-size: 1rem; }
.article-hero { max-width: 900px; margin: 0 auto clamp(40px, 6vw, 72px); padding: 0 var(--gutter); }
.article-hero .arch { aspect-ratio: 16 / 10; border-top-left-radius: 50% 40%; border-top-right-radius: 50% 40%; }
.article-body { max-width: var(--read); margin: 0 auto; padding: 0 var(--gutter) var(--space); }
.article-body p, .article-body li { font-size: 1.2rem; line-height: 1.75; }
.article-body h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-top: 1.6em; }
.article-body blockquote {
  margin: 1.6em 0; padding: 0 0 0 24px; border-left: 2px solid var(--clay);
  font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1.35;
}

/* Knowledge notes: say what kind of knowledge a passage offers */
.note { margin: 2em 0; padding: 20px 24px; border-radius: 0 14px 14px 0; border-left: 4px solid; background: #FFFDF9; }
.note p { font-size: 1.08rem !important; margin: 0; }
.note-kind { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin-bottom: 4px; }
.note--known { border-color: var(--moss); }
.note--tradition { border-color: var(--night); }
.note--personal { border-color: var(--clay); }

.key { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .98rem; color: var(--ink-soft); margin-top: 18px; justify-content: center; }
.key span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.key .k-known::before { background: var(--moss); }
.key .k-tradition::before { background: var(--night); }
.key .k-personal::before { background: var(--clay); }

/* ---------- 11. Footer ---------- */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--stone); font-size: 1rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--ink-soft); }

/* ---------- 12. Placeholders ----------
   Anything wrapped in <mark class="todo"> is text still to write.
   Search the files for class="todo" to find them all. */
mark.todo { background: #F5E3A6; color: var(--ink); padding: 0 4px; border-radius: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Feature and "In this room" share a background, so close the double gap */
.room-feature { padding-bottom: 0; }

/* Line up "Enter the room" along the bottom of the row of doors */
.door .door-enter { margin-top: auto; padding-top: 12px; }
.door > p:last-of-type { margin-bottom: 0; }

/* Photo within an article: shown whole (not cropped), with a caption.
   Use: <figure class="article-figure"><img src="../images/..." alt="..."><figcaption>...</figcaption></figure> */
.article-figure { margin: 2.4em 0; }
.article-figure img { width: 100%; height: auto; border-radius: 4px; filter: saturate(.86) sepia(.07) contrast(.97); }
.article-figure figcaption {
  margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.4; color: var(--ink-soft);
}
@media (min-width: 900px) { .article-figure { margin-left: -60px; margin-right: -60px; } }

/* Cookie consent banner (only appears once a Google Analytics ID is added in js/site.js) */
.consent {
  position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 16px;
  max-width: 760px; margin: 0 auto; padding: 18px 22px;
  background: var(--linen); color: var(--ink); border: 1px solid var(--stone); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(46, 42, 38, .14);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px;
}
.consent[hidden] { display: none; }
.consent-text { margin: 0; flex: 1 1 320px; font-size: 1rem; line-height: 1.5; }
.consent-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
/* Accept and Reject look the same, so refusing is as easy as accepting */
.consent-btn { background: var(--ink); color: var(--linen); padding: 10px 20px; font-size: .98rem; }
.consent-btn:hover { background: var(--moss); color: #fff; }
.footer-settings {
  background: none; border: 0; padding: 0; font: inherit; color: var(--ink-soft);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: pointer;
}
.footer-settings:hover { color: var(--ink); }

/* Mobile menu button: an arched door with a keyhole (built by js/site.js) */
@media (max-width: 860px) {
  .nav-toggle {
    border: 0; background: none; padding: 0 0 0 10px; min-height: 48px; gap: 10px;
    border-radius: 0;
  }
  .nav-toggle-label { font-size: .95rem; color: var(--ink); }
  .nav-door {
    position: relative; width: 32px; height: 42px; display: grid; place-items: center;
    border: 1.5px solid var(--ink); border-bottom-width: 0;
    border-top-left-radius: 9999px; border-top-right-radius: 9999px;
    background: transparent; transition: background-color .3s ease, border-color .3s ease;
  }
  .nav-door::after { /* the threshold: a short line under the door */
    content: ""; position: absolute; left: -5px; right: -5px; bottom: 0; height: 1.5px; background: var(--ink);
  }
  .nav-key { width: 9px; height: 14px; fill: var(--clay); margin-top: 8px; }
  .nav-close { display: none; width: 12px; height: 12px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; margin-top: 8px; }
  .nav-toggle:hover .nav-door { background: var(--linen-deep); }
  .nav-toggle[aria-expanded="true"] .nav-door {
    background: radial-gradient(circle at 50% 62%, #F6D9A6 0, #F3E6CC 45%, var(--linen) 100%);
    border-color: var(--clay);
  }
  .nav-toggle[aria-expanded="true"] .nav-key { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-close { display: block; }
}

/* End of an article: sign-off, read next, more links */
.article-end { margin-top: clamp(56px, 8vw, 88px); padding-top: 40px; border-top: 1px solid var(--stone); }
.end-sign { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 48px; }
.end-mark { width: 26px; height: 33px; }
.end-sign p { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.6rem !important; }
.article-end > .post-room { margin-bottom: 14px; }
.article-end .post h3 { font-size: 1.6rem; }
.article-end .post p { font-size: 1rem !important; line-height: 1.55 !important; }
.end-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 32px 0 0; font-size: 1.02rem !important; }
.end-links a { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; }
.end-links a:hover { text-decoration: underline; }
