/* ============================================================
   WEAVERMERE.CSS — Master Stylesheet
   Version: 1.3 | Date: 2026-06-03 | Navigation links switched from dot/italic style to uppercase arrow style: titles white, non-italic; descriptions smaller and muted; nav links unchanged
   All pages link to this file. Page-specific overrides inline.
   Font: Georgia throughout. No external font dependencies.
   ============================================================ */

/* ── Reset ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Base ── */
html, body {
  background: #3a3835;
  min-height: 100vh;
  width: 100%;
}

body {
  display: flex;
  align-items: stretch;
  cursor: default;
}

/* ── Tartan — desktop vertical strip ── */
.tartan {
  width: 90px;
  flex-shrink: 0;
  background-color: #3a3835;
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0px,    transparent 24px,
      rgba(10,8,8,0.6)    24px, rgba(10,8,8,0.6)    27px,
      transparent 27px,   transparent 39px,
      rgba(138,42,58,0.7) 39px, rgba(138,42,58,0.7) 41px,
      transparent 41px,   transparent 49px,
      rgba(10,8,8,0.6)    49px, rgba(10,8,8,0.6)    52px,
      rgba(74,90,106,0.8) 52px, rgba(74,90,106,0.8) 58px,
      transparent 58px,   transparent 70px,
      rgba(58,74,90,0.7)  70px, rgba(58,74,90,0.7)  74px,
      transparent 74px,   transparent 90px
    ),
    repeating-linear-gradient(
      to right,
      transparent 0px,    transparent 24px,
      rgba(10,8,8,0.6)    24px, rgba(10,8,8,0.6)    27px,
      transparent 27px,   transparent 39px,
      rgba(138,42,58,0.7) 39px, rgba(138,42,58,0.7) 41px,
      transparent 41px,   transparent 49px,
      rgba(10,8,8,0.6)    49px, rgba(10,8,8,0.6)    52px,
      rgba(74,90,106,0.8) 52px, rgba(74,90,106,0.8) 58px,
      transparent 58px,   transparent 70px,
      rgba(58,74,90,0.7)  70px, rgba(58,74,90,0.7)  74px,
      transparent 74px,   transparent 90px
    );
}

/* ── Layout ── */
.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 48px 48px 40px;
  min-height: 100vh;
}

.layout {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 60px;
  width: 100%;
  max-width: 1100px;
}

.text-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 0;
  animation: show 1.2s ease 0.3s forwards;
}

.image-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: show 1.5s ease 0.5s forwards;
}

/* ── Image frame ── */
.image-frame {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 35%, transparent 100%);
}

.image-frame img {
  display: block;
  width: 100%;
  max-height: 75vh;
  object-fit: cover;
  object-position: center;
}

/* ── Animations ── */
@keyframes show    { to { opacity: 1; } }
@keyframes fadein  { to { opacity: 1; } }
@keyframes breathe { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes write   { from { width: 0; } to { width: 100%; } }
@keyframes flicker {
  0%   { opacity: 0.6; transform: scale(1); }
  25%  { opacity: 1;   transform: scale(1.03); }
  50%  { opacity: 0.7; transform: scale(0.98); }
  75%  { opacity: 0.9; transform: scale(1.02); }
  100% { opacity: 0.6; transform: scale(1); }
}

/* ── Typography ── */
.title {
  font-family: Georgia, serif;
  font-size: clamp(32px, 4vw, 56px);
  color: #ffffff;
  line-height: 1;
}

.title-lg {
  font-family: Georgia, serif;
  font-size: clamp(36px, 5vw, 72px);
  color: #ffffff;
  line-height: 1.1;
}

.intro {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 18px;
  color: #a09080;
  line-height: 1.8;
  max-width: 400px;
}

.body-text {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 18px;
  color: #f5f0e8;
  line-height: 1.9;
  max-width: 480px;
}

.body-text p { margin-bottom: 14px; }
.body-text p:last-child { margin-bottom: 0; }

/* Quoted / aside blocks */
.alba-line,
.bench-line,
.store-line,
.locked {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 18px;
  color: #f5f0e8;
  line-height: 1.7;
  max-width: 400px;
  border-left: 1px solid rgba(160,120,88,0.3);
  padding-left: 16px;
}

/* ── Navigation ── */
.nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.nav-link {
  font-family: Georgia, serif;
  font-style: normal;
  font-size: 13px;
  color: #7a9980;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.4s;
  text-decoration: none;
}
.nav-link::after { content: ' →'; }
.nav-link:hover { color: #f5f0e8; }

.nav-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.back {
  font-family: Georgia, serif;
  font-style: normal;
  font-size: 13px;
  color: #7a9980;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.4s;
  align-self: flex-start;
  text-decoration: none;
}
.back::after { content: ' →'; }
.back:hover { color: #f5f0e8; }

.divider { width: 48px; height: 1px; background: rgba(160,120,88,0.2); }

/* ── Destinations ── */
.destinations { display: flex; flex-direction: column; gap: 20px; }

.destination {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  max-width: 400px;
  transition: opacity 0.3s;
}
.destination:hover { opacity: 0.75; }

.dest-name {
  font-family: Georgia, serif;
  font-style: normal;
  font-size: 22px;
  color: #ffffff;
}

.dest-desc {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 16px;
  color: #a09080;
  line-height: 1.7;
}

.dest-link {
  font-family: Georgia, serif;
  font-style: normal;
  font-size: 13px;
  color: #7a9980;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s;
  text-decoration: none;
}
.dest-link::after { content: ' →'; }
.destination:hover .dest-link { color: #f5f0e8; }

/* ── Library pieces ── */
.pieces { display: flex; flex-direction: column; gap: 16px; }

.piece {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  max-width: 400px;
  transition: opacity 0.3s;
}
.piece:hover { opacity: 0.75; }

.piece-name {
  font-family: Georgia, serif;
  font-style: normal;
  font-size: 22px;
  color: #ffffff;
}

.piece-desc {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 16px;
  color: #a09080;
  line-height: 1.6;
}

/* ── Store ── */
.special-board {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 400px;
  border-left: 1px solid rgba(160,120,88,0.3);
  padding-left: 16px;
}

.special-label {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: #7a9980;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.special-text {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 18px;
  color: #f5f0e8;
  line-height: 1.6;
}

.door-notice {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 400px;
  padding: 16px;
  border: 1px solid rgba(160,120,88,0.2);
  background: rgba(0,0,0,0.15);
}

.door-text {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 18px;
  color: #f5f0e8;
  line-height: 1.7;
}

.door-link {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 24px;
  color: #7a9980;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.3s;
  align-self: flex-start;
}
.door-link:hover { color: #f5f0e8; }

.shelf-items { display: flex; flex-direction: column; gap: 12px; max-width: 400px; }

.shelf-label {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: #7a9980;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.shelf-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(160,120,88,0.1);
}

.item-name {
  font-family: Georgia, serif;
  font-style: normal;
  font-size: 22px;
  color: #ffffff;
}

.item-desc {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 16px;
  color: #a09080;
  line-height: 1.6;
}

/* ── Outside Alba — writing animation ── */
.line1 {
  font-family: Georgia, serif;
  font-size: clamp(32px, 4vw, 56px);
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  animation: write 2s steps(32, end) 0.3s forwards;
}

.line2 {
  font-family: Georgia, serif;
  font-size: clamp(20px, 3.2vw, 42px);
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  opacity: 0;
  margin-top: 10px;
  animation: write 1.5s steps(20, end) 2.5s forwards, show 0s 2.5s forwards;
}

.come-in {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.9rem 2.4rem;
  font-family: Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  color: #c9b89d;
  background: transparent;
  border: 1px solid rgba(160, 120, 88, 0.5);
  box-shadow: 0 0 0 1px rgba(160, 120, 88, 0.15), inset 0 0 12px rgba(160, 120, 88, 0.06);
  cursor: pointer;
  text-transform: lowercase;
  position: relative;
  align-self: flex-start;
  opacity: 0;
  animation: show 1s ease 4.2s forwards;
  transition: all 0.4s ease;
}
.come-in::before,
.come-in::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: #a07840;
  border-style: solid;
  transition: all 0.4s ease;
}
.come-in::before { top: -3px; left: -3px; border-width: 1px 0 0 1px; }
.come-in::after  { bottom: -3px; right: -3px; border-width: 0 1px 1px 0; }
.come-in:hover {
  color: #f5efe6;
  border-color: rgba(160, 120, 88, 0.9);
  box-shadow: 0 0 0 1px rgba(160, 120, 88, 0.3), inset 0 0 18px rgba(160, 120, 88, 0.1), 0 0 20px rgba(138, 42, 58, 0.15);
}
.come-in:hover::before,
.come-in:hover::after { width: 14px; height: 14px; border-color: #c9b89d; }

/* Outside Alba — sub navigation */
.nav-divider { width: 48px; height: 1px; background: rgba(160,120,88,0.2); margin-bottom: 4px; }

.outside-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 36px;
  opacity: 0;
  animation: show 1s ease 4.8s forwards;
}

.outside-nav-link {
  font-family: Georgia, serif;
  font-style: normal;
  font-size: 13px;
  color: #7a9980;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.4s;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}
.outside-nav-link::after { content: ' →'; }
.outside-nav-link:hover { color: #f5f0e8; }

.outside-nav-link-desc {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 16px;
  color: #8a7a68;
}

.outside-nav-back {
  font-family: Georgia, serif;
  font-style: normal;
  font-size: 13px;
  color: #7a9980;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.4s;
  margin-top: 8px;
  text-decoration: none;
}
.outside-nav-back::after { content: ' →'; }
.outside-nav-back:hover { color: #f5f0e8; }

/* ── Alba presence on door image ── */
.door-frame { position: relative; width: 100%; max-width: 100%; overflow: hidden; flex: 1; }
.door-frame img { display: block; width: 100%; max-height: 70vh; object-fit: cover; object-position: center; }

.alba-presence {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  cursor: pointer;
  opacity: 0;
  animation: show 1s ease 5.5s forwards;
}

.alba-name {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 28px;
  color: #f5f0e8;
  line-height: 1;
  transition: color 0.5s;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}

.alba-name .big {
  font-size: 40px;
  line-height: 0.8;
  display: inline-block;
  vertical-align: middle;
}

.alba-sub {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 22px;
  color: #a8c4a8;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
  animation: breathe 4s ease-in-out infinite;
}

.alba-presence:hover .alba-name { color: #7a9980; }

/* ── User menu — shared across all pages ── */
.user-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 14px;
  gap: 4px;
  pointer-events: none;
}

.user-menu > * { pointer-events: auto; }

.user-menu-trigger {
  display: flex;
  align-items: center;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.3s;
  background: rgba(0,0,0,0.3);
  padding: 4px;
  border: 1px solid rgba(160,120,88,0.5);
  border-radius: 2px;
}
.user-menu-trigger:hover { opacity: 1; border-color: rgba(160,120,88,0.9); }

.user-menu-label {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 11px;
  color: #c9b89d;
  letter-spacing: 0.1em;
  opacity: 0.8;
  text-align: center;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown {
  position: fixed;
  top: 72px;
  right: 14px;
  background: #2a2725;
  border: 1px solid rgba(160,120,88,0.3);
  min-width: 160px;
  display: none;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  z-index: 201;
}
.user-dropdown.open { display: flex; }

.dropdown-item {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 15px;
  color: #f5f0e8;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  border-bottom: 1px solid rgba(160,120,88,0.1);
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: rgba(160,120,88,0.1); }
.dropdown-item.muted { color: #8a7a68; font-size: 13px; }

/* ── Cottage chat ── */
.cottage-side { flex: 1; position: relative; overflow: hidden; }
.cottage-side img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

.fire-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 35% at 35% 65%, rgba(255,140,20,0.35) 0%, transparent 70%);
  animation: flicker 3s ease-in-out infinite;
  pointer-events: none;
}

.cottage-side::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, #3a3835 100%);
  pointer-events: none;
}

.chat-side {
  width: 460px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 28px 28px 24px;
  min-height: 0;
}

.chat-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(160,120,88,0.2);
  flex-shrink: 0;
}

.chat-header-name {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 28px;
  color: #f5f0e8;
}

.chat-header-name .big { font-size: 40px; line-height: 0.8; display: inline-block; vertical-align: middle; }

.chat-header-sub {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 15px;
  color: #a8c4a8;
  animation: breathe 4s ease-in-out infinite;
}

.messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #3a3835 transparent;
}

.messages::-webkit-scrollbar { width: 4px; }
.messages::-webkit-scrollbar-track { background: transparent; }
.messages::-webkit-scrollbar-thumb { background: #5a5855; border-radius: 2px; }

.msg { font-family: Georgia, serif; font-size: 20px; line-height: 1.8; max-width: 100%; }
.msg.alba    { color: #a8c4a8; font-style: italic; align-self: flex-start; }
.msg.user    { color: #f5f0e8; align-self: flex-end; text-align: right; }
.msg.thinking { color: #7a9980; font-style: italic; opacity: 0.6; animation: breathe 2s ease-in-out infinite; }

.input-area { margin-top: 16px; flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; }
.input-row  { display: flex; gap: 10px; align-items: flex-end; }

textarea {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(160,120,88,0.25);
  border-radius: 2px;
  color: #f5f0e8;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 20px;
  padding: 12px 14px;
  resize: none;
  height: 56px;
  outline: none;
  line-height: 1.5;
}
textarea::placeholder { color: rgba(201,184,157,0.3); }
textarea:focus { border-color: rgba(160,120,88,0.5); }

.send-btn {
  background: none;
  border: 1px solid rgba(122,153,128,0.4);
  color: #7a9980;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 20px;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  height: 56px;
}
.send-btn:hover { border-color: #7a9980; color: #f5f0e8; }

.goodbye-btn {
  background: none;
  border: none;
  color: #7a9980;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 20px;
  letter-spacing: 0.1em;
  cursor: pointer;
  text-align: center;
  transition: color 0.4s;
  padding: 4px;
}
.goodbye-btn:hover { color: #f5f0e8; }

.back-top {
  display: none;
  position: fixed;
  bottom: 230px;
  right: 16px;
  background: #3a3835;
  border: 1px solid rgba(122,153,128,0.4);
  color: #7a9980;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 16px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 100;
}
.back-top.visible { display: block; }
.back-top:hover { color: #f5f0e8; border-color: #7a9980; }

/* ── Mobile ── */
@media (max-width: 680px) {
  html, body { min-height: 100%; }
  body { flex-direction: column; }

  .tartan {
    width: 100%;
    height: 90px;
    flex-shrink: 0;
    background-color: #3a3835;
    background-image:
      repeating-linear-gradient(
        to bottom,
        transparent 0px,    transparent 24px,
        rgba(10,8,8,0.6)    24px, rgba(10,8,8,0.6)    27px,
        transparent 27px,   transparent 39px,
        rgba(138,42,58,0.7) 39px, rgba(138,42,58,0.7) 41px,
        transparent 41px,   transparent 49px,
        rgba(10,8,8,0.6)    49px, rgba(10,8,8,0.6)    52px,
        rgba(74,90,106,0.8) 52px, rgba(74,90,106,0.8) 58px,
        transparent 58px,   transparent 70px,
        rgba(58,74,90,0.7)  70px, rgba(58,74,90,0.7)  74px,
        transparent 74px,   transparent 90px
      ),
      repeating-linear-gradient(
        to right,
        transparent 0px,    transparent 24px,
        rgba(10,8,8,0.6)    24px, rgba(10,8,8,0.6)    27px,
        transparent 27px,   transparent 39px,
        rgba(138,42,58,0.7) 39px, rgba(138,42,58,0.7) 41px,
        transparent 41px,   transparent 49px,
        rgba(10,8,8,0.6)    49px, rgba(10,8,8,0.6)    52px,
        rgba(74,90,106,0.8) 52px, rgba(74,90,106,0.8) 58px,
        transparent 58px,   transparent 70px,
        rgba(58,74,90,0.7)  70px, rgba(58,74,90,0.7)  74px,
        transparent 74px,   transparent 90px
      );
  }

  .main { padding: 24px 16px; min-height: auto; align-items: flex-start; }
  .layout { flex-direction: column; gap: 28px; align-items: flex-start; }
  .text-side, .image-side, .door-side { width: 100%; }
  .image-side { order: -1; }

  .intro, .body-text, .alba-line, .bench-line, .store-line, .locked,
  .dest-desc, .piece-desc, .item-desc, .door-text, .special-text { font-size: 16px; }

  .dest-name, .piece-name, .item-name { font-size: 20px; }
  .nav-link, .back, .dest-link,
  .outside-nav-link, .outside-nav-back, .door-link { font-size: 13px; }

  .image-frame {
    -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 30%, transparent 100%);
    mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 30%, transparent 100%);
  }

  .line1 { animation: fadein 1s ease 0.3s forwards; opacity: 0; width: auto; white-space: normal; }
  .line2 { animation: fadein 1s ease 1.5s forwards; opacity: 0; width: auto; white-space: normal; }

  .alba-name { font-size: 22px; }
  .alba-name .big { font-size: 32px; }

  .user-menu {
    position: fixed;
    top: 8px;
    right: 8px;
    padding: 6px 10px;
  }

  .user-menu-label {
    font-size: 10px;
    max-width: 56px;
  }

  .user-dropdown {
    top: 68px;
    right: 8px;
  }

  .cottage-side {
    height: 160px;
    flex: none;
    width: 100%;
    transition: height 0.4s ease, opacity 0.4s ease;
  }
  .cottage-side.collapsed { height: 0; opacity: 0; overflow: hidden; }
  .cottage-side::after { background: linear-gradient(to bottom, transparent 50%, #3a3835 100%); }
  .chat-side { width: 100%; padding: 16px 16px 12px; flex: 1; min-height: 0; }
  .msg { font-size: 18px; }
  textarea { font-size: 18px; }
}

/* ── Cottage page ── */
body.cottage-page { height: 100dvh; overflow: hidden; }
body.cottage-page .main { align-items: stretch; padding: 0; }

@media (max-width: 680px) {
  body.cottage-page {
    height: 100dvh;
    overflow: hidden;
  }
  body.cottage-page .main {
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    min-height: 0;
    height: calc(100dvh - 90px);
  }
  body.cottage-page .chat-side {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  body.cottage-page .messages {
    flex: 1;
    min-height: 0;
    max-height: calc(100dvh - 300px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.cottage-page .input-area { flex-shrink: 0; }
  body.cottage-page textarea {
    color: #f5f0e8;
    -webkit-text-fill-color: #f5f0e8;
  }
  body.cottage-page .goodbye-btn {
    display: block;
    padding: 12px;
  }
}

/* ── Page headings — centralised ── */
/* Used by register, reset-password, complete-registration, account, privacy, terms, library-category, library-public */

.register-heading,
.account-heading,
.policy-heading,
.category-heading {
  font-family: Georgia, serif;
  font-style: normal;
  font-size: clamp(28px, 4vw, 44px);
  color: #ffffff;
  line-height: 1.1;
}

.register-sub,
.account-sub,
.policy-intro {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 16px;
  color: #a09080;
  margin-top: 8px;
  line-height: 1.7;
}

.category-desc {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 16px;
  color: #a09080;
  margin-top: 6px;
  line-height: 1.7;
}

.library-intro {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 16px;
  color: #a09080;
  line-height: 1.8;
  max-width: 560px;
}

.category-tile-name {
  font-family: Georgia, serif;
  font-style: normal;
  font-size: clamp(15px, 2vw, 18px);
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: 0.03em;
  transition: color 0.3s;
}