/* aaryabhuva.com — one cozy house, one page.
   Colours: each room has its own wall colour. Text is always --ink on light walls. */

:root {
  --ink: #3A2E28;
  --ink-soft: #6B5B50;
  --ink-deep: #2A1F1A;
  --paper: #FFFDF8;
  --line: #EFE7DA;
  --terracotta: #B4553A;
  --terracotta-dark: #8F4430;
  --wood: #B9875A;
  --wood-dark: #A0724A;
  --wood-chair: #C9A277;
  --brass: #E3C06B;

  --wall-porch: #F5E9DA;
  --wall-living: #DFE7D6;
  --wall-living-stripe: #D9E2CF;
  --wall-study: #DCE5EE;
  --wall-dining: #F6EACB;
  --wall-hall: #F3DED6;
  --wall-hall-low: #EBCFC5;
  --wall-kitchen: #E2EEE8;

  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Kalam", "Comic Sans MS", cursive;

  --shadow-card: 0 2px 4px rgba(58, 46, 40, 0.05), 0 18px 40px rgba(58, 46, 40, 0.10);
  --shadow-soft: 0 6px 14px rgba(58, 46, 40, 0.12);
  --room-top: clamp(36px, 4vw, 52px);
  --header-h: 62px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--wall-porch);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
p { margin: 0; }
a { color: var(--ink); text-underline-offset: 5px; }
a:hover { color: var(--terracotta-dark); }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; color: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--paper); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px;
  background: var(--terracotta); color: #FFFFFF; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease;
  font-size: 15px;
}
.btn:hover { background: var(--terracotta-dark); color: #FFFFFF; }
.btn:active { transform: translateY(1px); }
.btn--dark { background: var(--ink); }
.btn--dark:hover { background: var(--ink-deep); }
.btn--ghost {
  min-height: 44px; padding: 0 16px; background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink); font-size: 15px;
}
.btn--ghost:hover { background: rgba(58, 46, 40, 0.06); color: var(--ink); }

/* ---------- Header and the "which room?" menu ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(245, 233, 218, 0.94);
  -webkit-backdrop-filter: saturate(1.2) blur(6px);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid #E4D3BE;
}
.topbar__inner {
  display: flex; justify-content: space-between; align-items: center; gap: 12px 24px;
  padding-top: 9px; padding-bottom: 9px;
}
.wordmark { font-family: var(--serif); font-size: 22px; line-height: 1.2; text-decoration: none; color: var(--ink); }
.wordmark:hover { color: var(--ink); }

.rooms { position: relative; }
.rooms__toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 16px 0 12px;
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: 999px; cursor: pointer;
  font-size: 15px; box-shadow: 0 3px 0 rgba(58, 46, 40, 0.15); white-space: nowrap;
}
.rooms__toggle .dim { color: var(--ink-soft); }
.rooms__chevron { transition: transform 0.2s ease; flex: none; }
.rooms__toggle[aria-expanded="true"] .rooms__chevron { transform: rotate(180deg); }
.chip { display: inline-block; flex: none; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #CDBBA6; background: var(--wall-porch); }

.rooms__menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 280px; max-width: calc(100vw - 48px);
  background: var(--paper); border-radius: 16px; padding: 10px;
  box-shadow: 0 4px 8px rgba(58, 46, 40, 0.08), 0 22px 44px rgba(58, 46, 40, 0.18);
}
.js .rooms__menu[hidden] { display: none; }
.rooms__menu p { margin: 6px 10px; font-family: var(--hand); font-size: 20px; font-weight: 700; }
.rooms__menu ul { list-style: none; margin: 0; padding: 0; }
.rooms__menu a {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 10px; border-radius: 10px;
  text-decoration: none; font-size: 16px; font-weight: 500;
}
.rooms__menu a:hover { background: #F7EFE3; color: var(--ink); }
.rooms__menu a[aria-current="location"] { background: #F1E6D6; font-weight: 700; }
/* Without JavaScript the menu is simply a visible list under the header. */
html:not(.js) .rooms__toggle { display: none; }
html:not(.js) .rooms__menu { position: static; width: auto; box-shadow: none; background: transparent; padding: 0; }
html:not(.js) .rooms__menu p { display: none; }
html:not(.js) .rooms__menu ul { display: flex; flex-wrap: wrap; gap: 4px; }

/* ---------- Rooms ---------- */
.room { position: relative; }
.room__inner { padding-top: var(--room-top); padding-bottom: clamp(28px, 3.4vw, 40px); }
.room__inner--roomy { padding-bottom: clamp(56px, 7vw, 88px); }

.plaque {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 2px 12px 2px 9px; font-family: var(--hand); font-size: 15px; font-weight: 700; line-height: 1.5;
}
.room-title {
  font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 40px);
  line-height: 1.12; letter-spacing: -0.01em; margin: 12px 0 0; max-width: 820px;
}
.lede { font-size: 16.5px; line-height: 1.6; margin-top: 12px; max-width: 600px; }
.prose { font-size: 16.5px; line-height: 1.65; margin-top: 14px; max-width: 620px; }
.prose p + p { margin-top: 10px; }
.prose + .btn { margin-top: 20px; }

/* text on one side, the picture on the other */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; }
.split--top { align-items: flex-end; }
.split__text { flex: 1 1 380px; min-width: 0; max-width: 520px; }
.split__visual { flex: 1.5 1 500px; min-width: 0; }

.floor {
  position: relative; height: 22px; border-top: 6px solid var(--paper);
  background: repeating-linear-gradient(90deg, #D8B48A 0 180px, #C9A277 180px 182px);
}
.floor__thing { position: absolute; top: 0; }

.tilt-n2 { transform: rotate(-2deg); }
.tilt-n1 { transform: rotate(-1deg); }
.tilt-1 { transform: rotate(1.5deg); }
.tilt-2 { transform: rotate(2deg); }

/* ---------- Porch: the letter ---------- */
.porch { background: var(--wall-porch); }
.porch__inner { max-width: 1120px; padding-top: clamp(28px, 4vw, 44px); padding-bottom: clamp(72px, 8vw, 92px); }
.letter {
  position: relative; background-color: var(--paper);
  background-image: repeating-linear-gradient(transparent 0 35px, var(--line) 35px 36px);
  border-radius: 14px; padding: clamp(24px, 3.4vw, 40px); box-shadow: var(--shadow-card);
  background-image: repeating-linear-gradient(transparent 0 31px, var(--line) 31px 32px);
}
.letter__date { font-family: var(--hand); font-size: 17px; color: var(--ink-soft); }
.letter h1 {
  margin: 12px 0 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -0.01em;
}
.letter__body { margin-top: 16px; font-size: 17px; line-height: 1.75; max-width: 560px; }
.letter__body p + p { margin-top: 10px; }
.letter__sign { margin-top: 14px; font-family: var(--hand); font-size: 32px; font-weight: 700; color: var(--terracotta); line-height: 1; }
.letter .btn { margin-top: 16px; }
.letter__me { position: absolute; right: 18px; bottom: -48px; width: clamp(120px, 18vw, 170px); height: auto; }
.letter__clip { position: absolute; top: -20px; left: 40px; width: 22px; height: 60px; transform: rotate(-8deg); }
.letter__ring { position: absolute; right: -20px; top: 20px; width: 90px; height: 90px; opacity: 0.32; }

.porch__row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px 48px; }
.porch__row .letter { flex: 1 1 560px; min-width: 0; max-width: 720px; }
.directory {
  flex: 0 1 300px; min-width: 0; margin-top: 28px; background: var(--paper); border-radius: 10px;
  padding: 18px 20px 14px; box-shadow: var(--shadow-soft); transform: rotate(1.5deg); position: relative;
}
.directory::before { content: ""; position: absolute; top: -9px; left: 50%; width: 70px; height: 20px; margin-left: -35px; background: rgba(243, 203, 91, 0.75); transform: rotate(-3deg); }
.directory__title { font-family: var(--hand); font-size: 20px; font-weight: 700; color: var(--terracotta); }
.directory ol { list-style: none; margin: 8px 0 0; padding: 0; }
.directory li + li { border-top: 1px dashed #E2D6C4; }
.directory a { display: flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 4px 0; text-decoration: none; }
.directory a span { font-weight: 700; font-size: 15px; }
.directory a small { font-size: 13.5px; color: var(--ink-soft); }
.directory a:hover span { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Living room: the shelf ---------- */
.living { background: repeating-linear-gradient(90deg, var(--wall-living) 0 28px, var(--wall-living-stripe) 28px 56px); }
.shelf { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 28px 48px; }
.shelf__left { flex: 1 1 460px; min-width: 0; max-width: 560px; }
.shelf__unit { margin-top: 12px; }
.shelf__row { display: flex; align-items: flex-end; gap: 4px; padding: 0 12px; min-height: 264px; }
.shelf__plant { flex: 0 1 50px; min-width: 30px; width: 50px; height: auto; }
.shelf__plank { height: 14px; background: var(--wood); border-radius: 4px; box-shadow: 0 8px 0 var(--wood-dark), 0 18px 26px rgba(58, 46, 40, 0.16); }
.shelf__toys { flex: 0 1 104px; min-width: 64px; margin-left: 8px; display: flex; align-items: flex-end; gap: 2px; }
.shelf__toys svg:first-child { flex: 0 1 70px; min-width: 42px; width: 70px; height: auto; }
.shelf__toys svg:last-child { flex: 0 1 32px; min-width: 22px; width: 32px; height: auto; transform: rotate(-14deg); }

.book {
  flex: 0 1 var(--w); min-width: 30px; width: var(--w); height: var(--h);
  background: var(--c); color: var(--ink-deep); border: 0; border-radius: 6px 6px 2px 2px;
  padding: 12px 0; display: flex; align-items: flex-start; justify-content: center; cursor: pointer;
  box-shadow: inset -7px 0 0 rgba(58, 46, 40, 0.10), inset 0 22px 0 rgba(255, 253, 248, 0.35), inset 0 -26px 0 rgba(58, 46, 40, 0.08);
  transform-origin: bottom center; transform: rotate(var(--tilt, 0deg));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}
.book span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; white-space: nowrap; }
.book:hover { transform: translateY(-8px) rotate(var(--tilt, 0deg)); }
.book[aria-pressed="true"] {
  transform: translateY(-28px);
  box-shadow: inset -7px 0 0 rgba(58, 46, 40, 0.10), inset 0 22px 0 rgba(255, 253, 248, 0.35), inset 0 -26px 0 rgba(58, 46, 40, 0.08), 0 16px 24px rgba(58, 46, 40, 0.22);
}

.reading { flex: 1 1 400px; min-width: 0; display: grid; padding-bottom: 8px; }
.open-book {
  grid-area: 1 / 1; align-self: end;
  background: var(--c); border-radius: 12px; padding: 10px; box-shadow: 0 20px 40px rgba(58, 46, 40, 0.20);
}
.js .open-book { opacity: 0; visibility: hidden; transform: translateY(14px); transition: transform 0.2s ease, opacity 0.15s ease, visibility 0s linear 0.2s; }
.js .open-book.is-open { opacity: 1; visibility: visible; transform: none; transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.12s, opacity 0.3s ease 0.12s, visibility 0s linear 0s; }
html:not(.js) .reading { gap: 16px; }
html:not(.js) .open-book { grid-area: auto; }
.open-book__pages { display: flex; flex-wrap: wrap; background: var(--paper); border-radius: 6px; overflow: hidden; }
.open-book__left { flex: 1 1 160px; min-width: 0; padding: 20px 20px; background: linear-gradient(90deg, var(--paper) 80%, var(--line)); }
.open-book__right { flex: 1 1 230px; min-width: 0; padding: 20px 20px; background: linear-gradient(90deg, var(--line), var(--paper) 18%); }
.open-book__kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--ink-soft); }
.open-book h3 { margin: 8px 0 0; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.15; }
.open-book__when { margin-top: 8px; font-family: var(--hand); font-size: 18px; font-weight: 700; color: var(--terracotta); }
.open-book__right p { font-size: 15px; line-height: 1.6; }
.open-book__right p + p { margin-top: 8px; }
.open-book__right a { display: inline-flex; align-items: center; min-height: 40px; margin-top: 6px; font-weight: 700; font-size: 15px; }

/* ---------- Study ---------- */
.study { background: var(--wall-study); }
.study__grid { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 56px; }
.study__text { flex: 1 1 440px; min-width: 0; }
.study__desk { flex: 1 1 420px; min-width: 0; max-width: 480px; }
.pinned-label { font-family: var(--hand); font-size: 18px; font-weight: 700; color: #4F6478; margin-bottom: 8px; }
.stickies { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.sticky {
  position: relative; background: var(--bg); border-radius: 4px; padding: 14px 8px 10px;
  font-family: var(--hand); font-size: 17px; font-weight: 700; text-align: center; line-height: 1.2;
  box-shadow: var(--shadow-soft); transform: translateY(var(--y, 0)) rotate(var(--r, 0deg));
}
.sticky::before {
  content: ""; position: absolute; top: 6px; left: 50%; width: 10px; height: 10px; margin-left: -5px;
  border-radius: 50%; background: var(--pin, var(--terracotta));
}
.desk { width: 100%; height: auto; margin-top: 16px; }

/* ---------- Dining table ---------- */
.dining { background: var(--wall-dining); }
.dining__scene { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 24px; }
.table { position: relative; flex: 1 1 330px; min-width: 0; padding: 34px 0; }
.table__chairs { position: absolute; left: 0; right: 0; display: flex; justify-content: space-around; padding: 0 9%; }
.table__chairs--top { top: 0; }
.table__chairs--bottom { bottom: 0; }
.table__chairs span { width: 64px; height: 30px; background: var(--wood-chair); }
.table__chairs--top span { border-radius: 14px 14px 6px 6px; }
.table__chairs--bottom span { border-radius: 6px 6px 14px 14px; }
.table__top {
  position: relative; background: var(--wood);
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 3px, transparent 3px 22px);
  border-radius: 22px; padding: 16px 3%; box-shadow: 0 14px 26px rgba(58, 46, 40, 0.18);
}
.seats { display: flex; justify-content: space-around; align-items: flex-start; }
.seats--bottom { align-items: flex-end; }
.seat { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 31%; }
.seats--bottom .seat { flex-direction: column-reverse; }
.plate { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 8px #F1E6D6; }
.place-card {
  background: var(--paper); padding: 3px 8px; border-radius: 3px; font-family: var(--hand); font-size: 14px; font-weight: 700;
  line-height: 1.15; text-align: center; box-shadow: 0 3px 0 rgba(58, 46, 40, 0.2); transform: rotate(var(--r, 0deg));
}
.table__runner {
  margin: 12px auto; max-width: 260px; background: var(--wall-dining); border-radius: 10px; padding: 6px 12px; text-align: center;
  font-family: var(--hand); font-size: 16px; font-weight: 700; transform: rotate(-1.5deg); box-shadow: 0 4px 0 rgba(58, 46, 40, 0.18);
}
.plan {
  flex: 0 1 196px; min-width: 0; align-self: center; background: var(--paper); border-radius: 10px;
  border-left: 10px solid #D9785C; padding: 16px 18px; box-shadow: 0 10px 24px rgba(58, 46, 40, 0.14); transform: rotate(-2deg);
}
.plan__title { font-family: var(--hand); font-size: 22px; font-weight: 700; line-height: 1; }
.checklist { list-style: none; margin: 8px 0 0; padding: 0; font-family: var(--hand); font-size: 15.5px; line-height: 1.25; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 4px 0; }
.checklist svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.done { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--ink-soft); }

/* ---------- Hallway ---------- */
.hallway { background: linear-gradient(var(--wall-hall) 0, var(--wall-hall) 70%, var(--paper) 70%, var(--paper) calc(70% + 6px), var(--wall-hall-low) calc(70% + 6px)); }
.frames { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 28px; margin: 28px 0 0; padding: 0; list-style: none; }
.frame { margin: 0; text-align: center; }
.frame__hook { width: 90px; height: 22px; margin: 0 auto; }
.frame__pic {
  background: var(--paper); border: 8px solid #A97C55; padding: 8px; box-shadow: 0 10px 22px rgba(58, 46, 40, 0.16);
  transform: rotate(var(--r, 0deg));
}
.frame__pic img { width: 100%; height: 130px; object-fit: cover; }
.frame figcaption { display: inline-block; margin-top: 10px; background: var(--brass); border-radius: 4px; padding: 3px 10px; font-size: 12.5px; font-weight: 700; line-height: 1.35; }
.hallway__aside { flex: 1 1 300px; min-width: 0; max-width: 440px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.thanks {
  position: relative; background: var(--paper); border-radius: 6px; padding: 20px 20px 14px;
  box-shadow: 0 10px 24px rgba(58, 46, 40, 0.12); transform: rotate(-1.5deg);
  font-family: var(--hand); font-size: 17px; font-weight: 400; line-height: 1.4;
}
.thanks::before { content: ""; position: absolute; top: 10px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--terracotta); box-shadow: 0 2px 0 rgba(58, 46, 40, 0.25); }
.hallway__links { display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 15px; font-weight: 700; }
.hallway__links a { min-height: 40px; display: inline-flex; align-items: center; }

/* ---------- Kitchen ---------- */
.kitchen { background: var(--wall-kitchen); }
.kitchen__grid { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; }

.fridge-wrap { flex: 0 1 340px; min-width: 260px; margin: 0 auto; }
.fridge { position: relative; background: #F7F4EE; border: 3px solid var(--ink); border-radius: 24px; overflow: hidden; box-shadow: 0 18px 36px rgba(58, 46, 40, 0.14); }
.fridge__freezer { position: relative; height: 104px; border-bottom: 3px solid var(--ink); }
.fridge__handle { position: absolute; right: 18px; width: 10px; border-radius: 5px; background: var(--ink); }
.magnet { position: absolute; filter: drop-shadow(0 3px 0 rgba(58, 46, 40, 0.25)); transition: transform 0.2s ease; }
.magnet:hover { transform: scale(1.12) rotate(0deg) !important; }
.fridge__door { position: relative; padding: 20px 36px 22px 18px; }
.bucket {
  position: relative; background-color: var(--paper);
  background-image: repeating-linear-gradient(transparent 0 33px, var(--line) 33px 34px); background-position: 0 58px;
  padding: 16px 16px 12px; box-shadow: var(--shadow-soft); transform: rotate(-1.5deg);
  background-image: repeating-linear-gradient(transparent 0 25px, var(--line) 25px 26px); background-position: 0 42px;
}
.bucket::before, .bucket::after { content: ""; position: absolute; top: -10px; width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 2px 0 rgba(58, 46, 40, 0.25); }
.bucket::before { left: 24px; background: #D9785C; }
.bucket::after { right: 24px; background: #A9C79F; }
.bucket h3 { margin: 0; font-family: var(--hand); font-size: 24px; font-weight: 700; line-height: 1; }
.bucket ul { list-style: none; margin: 6px 0 0; padding: 0; font-family: var(--hand); font-size: 15px; line-height: 26px; }
.bucket li { display: flex; gap: 10px; align-items: flex-start; }
.bucket svg { flex: none; width: 15px; height: 15px; margin-top: 6px; }
.fridge__feet { display: flex; justify-content: space-between; padding: 0 36px; }
.fridge__feet span { width: 26px; height: 12px; background: var(--ink); border-radius: 0 0 6px 6px; }

.jar-area { flex: 1 1 420px; min-width: 0; }
.jar-hint { margin-top: 8px; font-family: var(--hand); font-size: 18px; font-weight: 700; color: var(--ink-soft); }
.counter { position: relative; height: 262px; margin-top: 0; max-width: 460px; }
.jar-note {
  position: absolute; left: 50%; bottom: 160px; width: 240px; max-width: calc(100% - 16px); margin-left: -120px;
  padding: 12px 16px; border-radius: 6px; background: var(--note-bg, #FCEFCB); z-index: 2;
  font-family: var(--hand); font-size: 20px; font-weight: 700; line-height: 1.2;
  box-shadow: 0 2px 4px rgba(58, 46, 40, 0.08), 0 14px 28px rgba(58, 46, 40, 0.14);
  transform: rotate(-3deg); transform-origin: center bottom;
}
.jar {
  position: absolute; left: 50%; bottom: 18px; width: 128px; height: 162px; margin-left: -64px; z-index: 1;
  padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 16px;
}
.jar__svg { width: 100%; height: 100%; transform-origin: center bottom; transition: transform 0.2s ease; }
.jar:hover .jar__svg { transform: rotate(-3deg); }
.shake-hint {
  position: absolute; right: calc(50% + 100px); bottom: 104px; z-index: 3; margin: 0; white-space: nowrap;
  font-family: var(--hand); font-size: 18px; font-weight: 700; line-height: 24px; color: var(--terracotta-dark); transform: rotate(-4deg);
}
.shake-hint svg { position: absolute; right: -50px; top: 14px; width: 48px; height: 36px; color: var(--terracotta-dark); }
.counter__mug { position: absolute; left: 4%; bottom: 18px; width: 44px; height: 44px; }
.counter__plant { position: absolute; right: 6%; bottom: 18px; width: 46px; height: 72px; }
.counter__top { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: var(--wood); border-radius: 6px; box-shadow: 0 8px 0 var(--wood-dark); }
.jar-area .btn { margin-top: 14px; }

/* ---------- Letterbox ---------- */
.letterbox { background: var(--wall-porch); }
.letterbox__grid { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 56px; }
.letterbox__scene-wrap { flex: 1 1 460px; min-width: 0; }
.letterbox__scene { position: relative; width: 100%; max-width: 520px; height: 380px; }
.door { position: absolute; right: 0; top: 0; width: 240px; height: 380px; background: var(--terracotta); border-radius: 16px 16px 0 0; box-shadow: 0 18px 36px rgba(58, 46, 40, 0.16); }
.door__panel { position: absolute; left: 24px; right: 24px; border: 3px solid rgba(58, 46, 40, 0.18); border-radius: 10px; }
.door__knob { position: absolute; top: 200px; right: 22px; width: 18px; height: 18px; border-radius: 50%; background: var(--brass); box-shadow: 0 2px 0 rgba(58, 46, 40, 0.3); }
.slot-plate { position: absolute; top: 112px; left: 45px; width: 150px; height: 50px; background: var(--brass); border-radius: 10px; box-shadow: 0 3px 0 rgba(58, 46, 40, 0.3); }
.slot-plate p { margin: 6px 0 0; text-align: center; font-size: 10px; line-height: 12px; font-weight: 700; letter-spacing: 0.24em; color: #6B4E1E; }
.slot { position: relative; margin: 5px auto 0; width: 118px; height: 11px; background: var(--ink-deep); border-radius: 6px; }
.slot__flap { position: absolute; left: 0; right: 0; top: 0; height: 12px; border-radius: 6px; background: #C9A24E; transform-origin: top center; }

.note {
  position: absolute; top: 64px; left: 0; width: 280px; max-width: 100%; z-index: 2;
  background-color: #FCEFCB; background-image: repeating-linear-gradient(transparent 0 35px, #EBD9A6 35px 36px); background-position: 0 58px;
  border-radius: 6px; padding: 16px 20px 16px; transform-origin: top center; transform: rotate(-2deg);
  background-image: repeating-linear-gradient(transparent 0 29px, #EBD9A6 29px 30px); background-position: 0 50px;
  box-shadow: 0 2px 4px rgba(58, 46, 40, 0.08), 0 18px 36px rgba(58, 46, 40, 0.16);
}
.note label { display: block; font-family: var(--hand); font-size: 22px; font-weight: 700; }
.note textarea {
  display: block; width: 100%; margin-top: 4px; border: 0; background: transparent; resize: none; padding: 0;
  font-family: var(--hand); font-size: 18px; line-height: 30px; color: var(--ink);
}
.note textarea::placeholder { color: #8A7A4A; }
.note textarea:focus-visible { outline: 2px dashed var(--terracotta); outline-offset: 4px; }
.note__actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.note__actions .btn { min-height: 42px; font-size: 14px; padding: 0 18px; }
.note__envelope { position: absolute; inset: 0; border-radius: 6px; background: #FCEFCB; opacity: 0; pointer-events: none; }
.note__envelope svg { width: 100%; height: 100%; }
.note.is-gone { visibility: hidden; }
.note .note__from { display: block; margin-top: 2px; font-family: var(--hand); font-size: 16px; font-weight: 700; line-height: 30px; }
.note__email {
  display: block; width: 100%; height: 30px; padding: 0; border: 0; border-bottom: 1.5px dashed #C9AE6A; background: transparent;
  font-family: var(--hand); font-size: 16px; color: var(--ink);
}
.note__email::placeholder { color: #8A7A4A; }
.note__email:focus-visible { outline: 2px dashed var(--terracotta); outline-offset: 4px; }
.note__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contacts__email { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.copy-btn {
  min-height: 32px; padding: 0 12px; border: 1.5px solid #CDBBA6; border-radius: 999px; background: transparent;
  font-size: 13px; font-weight: 700; color: var(--ink-soft); cursor: pointer;
}
.copy-btn:hover { border-color: var(--ink); color: var(--ink); }

.sent { min-height: 56px; margin-top: 16px; }
.sent[hidden], .sent__row a[hidden] { display: none; }
.sent__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.sent__row p { font-family: var(--hand); font-size: 22px; font-weight: 700; color: var(--terracotta); }
.sent__row a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; font-size: 16px; }

.contacts { flex: 1 1 340px; min-width: 0; max-width: 460px; }
.contacts__hand { margin-top: 18px; font-family: var(--hand); font-size: 19px; font-weight: 700; color: var(--ink-soft); }
.contacts__label { margin-top: 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--ink-soft); }
.contacts__label + ul { margin-top: 4px; }
.contacts ul { list-style: none; padding: 0; margin: 0; font-size: 15.5px; font-weight: 700; }
.contacts li + li { border-top: 1px solid #DCCBB6; }
.contacts a { display: flex; align-items: center; gap: 10px; min-height: 42px; word-break: break-word; }
.contacts svg { flex: none; width: 19px; height: 19px; }
/* Official LinkedIn and Instagram files, shown in a single solid colour */
.brand-icon { flex: none; width: 22px; height: 22px; background: var(--ink); -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.brand-icon--linkedin { -webkit-mask-image: url("../icons/linkedin.png"); mask-image: url("../icons/linkedin.png"); }
.brand-icon--instagram { -webkit-mask-image: url("../icons/instagram.svg"); mask-image: url("../icons/instagram.svg"); }

/* ---------- The deck viewer ---------- */
.deck { width: min(92vw, 1100px); max-height: 92vh; padding: 0; border: 0; border-radius: 14px; background: var(--paper); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.deck::backdrop { background: rgba(42, 31, 26, 0.72); }
.deck__frame { background: #FFFFFF; }
.deck__frame img { width: 100%; height: auto; max-height: calc(92vh - 64px); object-fit: contain; }
.deck__bar { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px; }
.deck__btn { min-width: 44px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); font-weight: 700; cursor: pointer; }
.deck__btn:hover { background: #F1E6D6; }
.deck__count { min-width: 56px; text-align: center; font-weight: 700; font-size: 14px; color: var(--ink-soft); }
.deck__close { margin-left: 12px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--wall-porch); }
.footer__inner { padding-top: 28px; padding-bottom: 20px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 40px; }
.footer__bye { font-family: var(--hand); font-size: 20px; }
.footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.footer__group { display: flex; align-items: center; gap: 10px; }
.footer__group span { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: #E3D6C6; }
.footer__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; border: 1.5px solid #8C7B6E; transition: background 0.15s ease, border-color 0.15s ease;
}
.footer__icon:hover { background: rgba(245, 233, 218, 0.12); border-color: var(--wall-porch); }
.footer__icon img { width: 22px; height: auto; }
.footer__small { margin-top: 20px; padding-top: 16px; border-top: 1px solid #5A4A40; font-size: 14px; color: #E3D6C6; }

/* ---------- Phones: each room should fit about one screen ---------- */
@media (max-width: 640px) {
  :root { --room-top: 28px; --header-h: 58px; }
  .wordmark { font-size: 19px; }
  .rooms__toggle { padding: 0 12px 0 10px; font-size: 14px; min-height: 40px; }
  .rooms__toggle .dim { display: none; }
  .room__inner { padding-bottom: 24px; }
  .room-title { font-size: 26px; margin-top: 10px; }
  .plaque { font-size: 14px; }
  .lede, .prose { font-size: 15.5px; line-height: 1.55; margin-top: 10px; }
  .prose p + p { margin-top: 8px; }
  .prose + .btn { margin-top: 14px; }
  .btn { min-height: 44px; font-size: 14.5px; padding: 0 18px; }
  .split, .study__grid, .kitchen__grid, .letterbox__grid { gap: 20px; }
  .floor { height: 16px; border-top-width: 5px; }

  /* porch */
  .porch__inner { padding-top: 20px; padding-bottom: 64px; }
  .letter { padding: 22px 20px 24px; }
  .letter h1 { font-size: 36px; }
  .letter__body { font-size: 15.5px; line-height: 1.7; margin-top: 12px; }
  .letter__sign { font-size: 28px; margin-top: 10px; }
  .letter__me { width: 120px; bottom: -40px; right: 10px; }
  .letter__ring { display: none; }
  .directory { display: none; }

  /* living room */
  .shelf { gap: 18px; }
  .shelf__row { min-height: 196px; padding: 0 4px; gap: 3px; }
  .book { height: calc(var(--h) * 0.76); min-width: 27px; padding: 10px 0; }
  .book span { font-size: 11px; }
  .book[aria-pressed="true"] { transform: translateY(-20px); }
  .shelf__plant { min-width: 26px; }
  .shelf__toys { min-width: 54px; margin-left: 4px; }
  .shelf__toys svg:first-child { min-width: 36px; }
  .shelf__toys svg:last-child { min-width: 18px; }
  .open-book { padding: 7px; }
  .open-book__left { flex-basis: 100%; padding: 14px 16px 4px; background: var(--paper); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }
  .open-book__kicker { flex-basis: 100%; font-size: 11px; }
  .open-book h3 { font-size: 21px; margin-top: 4px; }
  .open-book__when { font-size: 15px; margin-top: 0; }
  .open-book__right { padding: 8px 16px 14px; background: var(--paper); }
  .open-book__right p { font-size: 14.5px; line-height: 1.55; }

  /* study */
  .desk { display: none; }
  .pinned-label { font-size: 16px; margin-bottom: 6px; }
  .stickies { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .sticky { font-size: 14px; padding: 12px 4px 8px; }
  .sticky::before { width: 8px; height: 8px; margin-left: -4px; top: 4px; }

  /* dining table */
  .dining__scene { gap: 14px; }
  .table { flex-basis: 100%; padding: 0; }
  .table__chairs { display: none; }
  .table__top { padding: 10px 2%; border-radius: 16px; }
  .plate { width: 28px; height: 28px; box-shadow: inset 0 0 0 5px #F1E6D6; }
  .seat { gap: 5px; }
  .place-card { font-size: 11.5px; padding: 2px 5px; }
  .table__runner { font-size: 13px; padding: 4px 10px; margin: 8px auto; max-width: 210px; }
  .plan { flex-basis: 100%; padding: 12px 14px; transform: rotate(-1deg); }
  .plan__title { font-size: 19px; }
  .checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; font-size: 13.5px; margin-top: 4px; }
  .checklist svg { width: 15px; height: 15px; }

  /* hallway: photos slide sideways instead of stacking */
  .frames { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-top: 16px; padding: 0 2px 10px; }
  .frames > li { flex: 0 0 76%; scroll-snap-align: start; }
  .frame__hook { width: 70px; height: 16px; }
  .frame__pic { border-width: 6px; padding: 6px; }
  .frame__pic img { height: 110px; }
  .frame figcaption { font-size: 12px; }
  .thanks { font-size: 16px; padding: 18px 18px 14px; }
  .hallway__aside { gap: 4px; }

  /* kitchen: words and jar first, then the fridge */
  .kitchen__grid { flex-direction: column-reverse; align-items: stretch; }
  .fridge-wrap { min-width: 0; width: 100%; max-width: none; }
  .fridge__freezer { height: 100px; }
  .fridge__door { padding: 16px 32px 18px 14px; }
  .bucket { padding: 12px 12px 8px; }
  .bucket h3 { font-size: 20px; }
  .bucket ul { font-size: 14px; line-height: 22px; }
  .bucket svg { width: 13px; height: 13px; margin-top: 5px; }
  .jar-hint { display: none; }
  .counter { height: 160px; margin-top: 14px; }
  .jar-note { width: 210px; margin-left: -105px; bottom: 96px; font-size: 16px; padding: 9px 12px; }
  .jar { width: 76px; height: 96px; margin-left: -38px; bottom: 16px; }
  .shake-hint { right: calc(50% + 66px); bottom: 62px; font-size: 15px; line-height: 20px; }
  .shake-hint svg { right: -32px; top: 10px; width: 30px; height: 26px; }
  .counter__mug { display: none; }
  .counter__plant { width: 38px; height: 60px; bottom: 16px; }
  .counter__top { height: 16px; }
  .jar-area .btn { margin-top: 10px; }

  /* letterbox */
  .letterbox__grid { flex-direction: column-reverse; align-items: stretch; }
  .letterbox__scene { height: 300px; }
  .door { width: 170px; height: 300px; }
  .door__knob { top: 160px; right: 14px; }
  .slot-plate { left: 10px; width: 150px; top: 70px; }
  .note { top: 60px; width: 240px; padding: 10px 14px; }
  .note label { font-size: 19px; }
  .note textarea { font-size: 16px; line-height: 26px; height: 52px; }
  .note .note__from { font-size: 14px; line-height: 26px; }
  .note__email { height: 28px; font-size: 14px; }
  .note__actions .btn { min-height: 40px; font-size: 13.5px; }
  .contacts { max-width: none; }
  .contacts__hand { display: none; }
  .contacts__label { margin-top: 8px; font-size: 11.5px; }
  .contacts ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; font-size: 14px; }
  .contacts li + li { border-top: 0; }
  .contacts a { min-height: 40px; padding: 0 12px; border: 1.5px solid #CDBBA6; border-radius: 999px; text-decoration: none; background: var(--paper); }
  .contacts svg { width: 16px; height: 16px; }
  .split__text { max-width: none; }
  .kitchen__grid > *, .letterbox__grid > * { flex: 0 0 auto; }

  /* footer */
  .footer__bye { font-size: 18px; }
}
@media (max-width: 380px) {
  .wordmark { font-size: 17px; }
  .stickies { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
