:root {
  color-scheme: light;
  --paper: #f7efe0;
  --paper-light: #fffaf1;
  --paper-deep: #eee2cf;
  --ink: #1a3127;
  --muted: #4e5d51;
  --pine: #204939;
  --pine-deep: #12362a;
  --pine-night: #0b281f;
  --wine: #8d2639;
  --wine-deep: #681626;
  --brass: #f2d8a1;
  --gold: #ad8546;
  --gold-line: #d0ad6a;
  --rule: #dbccb4;
  --serif: Georgia, "Palatino Linotype", "Times New Roman", serif;
  --sans: system-ui, sans-serif;
  --gutter: clamp(1rem, 4.8vw, 4.5rem);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(ellipse at 18% 7%, #fffaf0 0%, transparent 51rem);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 0.23em; }
:focus-visible { outline: 3px solid #994933; outline-offset: 4px; }
main [id] { scroll-margin-top: 1.5rem; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1, h2 { letter-spacing: -0.055em; }
h1 em, h2 em { font-weight: inherit; }
.wrap {
  width: min(100% - 2 * var(--gutter), 75rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 5;
  inset: 0 auto auto 0;
  padding: 0.65rem 1rem;
  transform: translateY(-120%);
  background: var(--paper-light);
  color: var(--ink);
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  border-bottom: 2px solid var(--gold-line);
  background: radial-gradient(ellipse at 10% 130%, var(--pine), transparent 70%), var(--pine-night);
  color: var(--paper-light);
}
.site-header :focus-visible { outline-color: var(--brass); }
.site-header__inner, .site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.75rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.225rem;
  line-height: 1.15;
  letter-spacing: -0.035em;
  text-decoration: none;
}
.wordmark__mark {
  display: grid;
  width: 1.8em;
  height: 1.8em;
  place-items: center;
  border: 1px solid #c9a393;
  border-radius: 50%;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 0.86em;
  line-height: 1;
}
.site-header .wordmark__mark {
  border-color: var(--gold-line);
  background: var(--brass);
  color: var(--wine-deep);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 3vw, 2rem);
  font-size: 0.89rem;
  font-weight: 700;
}
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.site-nav__action {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.72rem;
  border: 1px solid var(--gold-line);
  border-radius: 0.25rem;
  color: var(--brass);
  white-space: nowrap;
}
.site-nav__action span, .text-link span { margin-inline-start: 0.15em; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.65rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(2.25rem, 4.3vw, 4.4rem);
}
.eyebrow {
  color: var(--wine-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero .eyebrow, .calendar-intro .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.hero .eyebrow::before, .calendar-intro .eyebrow::before {
  width: 0.42rem;
  aspect-ratio: 1;
  transform: rotate(45deg);
  background: var(--gold);
  content: "";
}
.hero h1 {
  margin: 0.55rem 0 1.45rem;
  font-size: clamp(3rem, 5.9vw, 5.35rem);
  line-height: 0.99;
}
.hero h1 em { color: var(--wine); }
.hero__description {
  max-width: 25rem;
  color: var(--muted);
  font-size: clamp(1.025rem, 1.8vw, 1.27rem);
}
.create-form { margin-top: 1.75rem; }
.create-form label, .note-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
  font-weight: 700;
}
.create-form__entry {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  max-width: 32rem;
}
input, textarea {
  min-width: 0;
  width: 100%;
  padding: 0.66rem 0.78rem;
  border: 1px solid #bba889;
  border-radius: 0.25rem;
  background: var(--paper-light);
  color: var(--ink);
}
input::placeholder, textarea::placeholder { color: #68665b; }
.create-form input { flex: 1 1 8rem; }
.button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.62rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 130ms ease, border-color 130ms ease, color 130ms ease;
}
.button--primary {
  border-color: var(--wine-deep);
  background: linear-gradient(165deg, var(--wine), var(--wine-deep));
  color: var(--paper-light);
  box-shadow: inset 0 1px #f2d8a12e;
}
.button--primary:hover { background: var(--wine-deep); }
.button--outline { border-color: #bba889; background: transparent; color: var(--ink); }
.button--outline:hover { border-color: var(--wine); color: var(--wine-deep); }
.button:disabled { cursor: wait; opacity: 0.66; }
.form-status { color: var(--wine-deep); overflow-wrap: anywhere; }
.form-status[data-kind="notice"] { color: var(--pine); }
.form-status:not(:empty), .notice { margin-top: 0.65rem; }
.notice { color: var(--wine-deep); }
.hero__links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.3rem; margin-top: 0.95rem; }
.text-link {
  width: fit-content;
  color: var(--wine-deep);
  font-size: 0.91rem;
  font-weight: 700;
  text-decoration-thickness: 1px;
}
.text-link:hover { text-decoration-thickness: 2px; }
.code-entry {
  margin-top: 0.7rem;
  max-width: 32rem;
}
.code-entry summary {
  width: fit-content;
  min-height: 2.75rem;
  padding-block: 0.65rem;
  color: var(--wine-deep);
  cursor: pointer;
  font-size: 0.91rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.23em;
}
.code-entry summary:hover { text-decoration-thickness: 2px; }
.code-entry__form {
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 0.3rem;
  background: var(--paper-light);
}
.code-entry__form label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
}
.code-entry__fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.code-entry__fields input { flex: 1 1 8.5rem; }
.code-entry__hint {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.83rem;
}
.owned-calendars {
  margin-top: 1.15rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--rule);
}
.owned-calendars h2 { font-size: 1.35rem; letter-spacing: -0.025em; }
.owned-calendars ul { margin: 0; padding: 0; list-style: none; }
.owned-calendars li + li { border-top: 1px solid var(--rule); }
.owned-calendars a {
  display: block;
  width: fit-content;
  min-height: 2.75rem;
  padding-block: 0.65rem;
  color: var(--pine);
  font-weight: 650;
  overflow-wrap: anywhere;
}
.code-entry + .hero__links { margin-top: 0.35rem; }

.sample-calendar {
  min-width: 0;
  border: 1px solid var(--gold);
  border-radius: 0.55rem;
  color: var(--paper-light);
  background: radial-gradient(ellipse at 82% 5%, var(--pine), transparent 66%), var(--pine-night);
  box-shadow: 0 0.2rem 0 var(--gold), 0 1.65rem 2.6rem -1.7rem #17342baa;
}
.sample-calendar__art {
  aspect-ratio: 3.4 / 1;
  overflow: hidden;
  border-bottom: 3px double var(--gold-line);
  border-radius: 0.48rem 0.48rem 0 0;
  background: var(--pine-night);
}
.christmas-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.sample-calendar__body {
  padding: clamp(0.9rem, 2.15vw, 1.55rem);
}
.sample-calendar__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.15rem 0.75rem;
}
.sample-calendar h2 {
  color: var(--paper-light);
  font-size: clamp(1.65rem, 2.8vw, 2.45rem);
  line-height: 1;
}
.sample-calendar__head span {
  color: var(--brass);
  font-size: 0.75rem;
  font-weight: 650;
  white-space: nowrap;
}
.sample-calendar__hint {
  margin: 0.5rem 0 0.85rem;
  color: var(--paper-deep);
  font-size: 0.88rem;
}
.sample-calendar :focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.83rem;
}
.sample-calendar .legend { margin-top: 0.9rem; color: var(--paper-deep); }
.legend li { display: flex; align-items: center; gap: 0.38rem; }
.legend__swatch {
  width: 0.8rem;
  height: 0.8rem;
  border: 1px solid currentColor;
  border-radius: 0.15rem;
}
.legend__swatch--open { background: var(--brass); color: #62441f; }
.legend__swatch--sealed { background: var(--wine); color: #efb0ac; }
.sample-calendar .legend__swatch--open { color: var(--brass); }
.legend__swatch--empty { border-style: dashed; }
.board-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid #cabc9d5e;
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}
.board-title span + span {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}
.door-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.35rem, 0.95vw, 0.8rem);
}
.door {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  align-content: center;
  align-items: center;
  gap: 0.12rem 0.15rem;
  min-height: 4.55rem;
  min-width: 0;
  padding: 0.44rem 0.5rem;
  border: 1px solid #c6ae8b;
  border-radius: 0.25rem 0.25rem 0.34rem 0.34rem;
  color: var(--ink);
  background: linear-gradient(135deg, #fff6e6, var(--paper-deep));
  text-align: left;
  box-shadow: inset 0 -2px #31281e15;
  transition: transform 130ms ease, box-shadow 130ms ease;
}
.door:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px #1a100e28;
}
.door__number {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--serif);
  font-size: clamp(1.18rem, 2.15vw, 1.85rem);
  letter-spacing: -0.06em;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.door__icon {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  font-size: 0.77rem;
  line-height: 1;
}
.door--sealed .door__icon, .door--open .door__icon {
  display: grid;
  width: 1.28rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.door--sealed .door__icon {
  background: var(--wine-deep);
  color: var(--brass);
}
.door--open .door__icon { color: #794b22; }
.door__label {
  grid-column: 1 / -1;
  grid-row: 2;
  max-width: 100%;
  padding-top: 0.1rem;
  overflow-wrap: anywhere;
  font-size: clamp(0.67rem, 1.15vw, 0.82rem);
  line-height: 1.18;
}
.door--open {
  color: #44321b;
  background: linear-gradient(135deg, #fff1cb, var(--brass));
  border-color: var(--gold);
}
.door--sealed {
  color: var(--paper-light);
  background: linear-gradient(145deg, var(--wine), var(--wine-deep));
  border-color: #bd7880;
}
.door--empty { border-style: dashed; }
.door-grid--demo .door {
  min-height: 3.55rem;
  grid-template-rows: auto auto;
  border-bottom-width: 2px;
}
.door::after {
  position: absolute;
  inset: auto 0.16rem 0.15rem auto;
  width: 1.2rem;
  height: 0.85rem;
  background: linear-gradient(142deg, transparent 48%, currentColor 49% 51%, transparent 54%);
  content: "";
  pointer-events: none;
  opacity: 0.25;
}
.door-grid:empty { min-height: 3rem; }

.instructions {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.45rem, 5vw, 4.5rem);
  padding-block: clamp(2.3rem, 5.5vw, 4.5rem);
  border-top: 1px solid var(--rule);
}
.instructions__art {
  margin: 0;
  padding: 0.36rem;
  border: 1px solid var(--rule);
  background: var(--paper-light);
  box-shadow: 0 0.8rem 1.35rem -1rem #53312699;
}
.instructions__art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.instructions h2 { margin-bottom: 1.5rem; font-size: clamp(2.25rem, 4.8vw, 3.65rem); line-height: 1.05; }
.instructions__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
  gap: clamp(1rem, 3.7vw, 3.4rem);
  counter-reset: step;
}
.instructions__steps li {
  border-top: 1px solid #b5a48b;
  padding-top: 1.12rem;
  counter-increment: step;
}
.instructions__steps li::before {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  content: "0" counter(step);
}
.instructions__steps h3 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  letter-spacing: -0.025em;
}
.instructions__steps p { color: var(--muted); }
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(1rem, 4.9vw, 4rem);
  padding-block: clamp(2.15rem, 5vw, 4rem) clamp(2.65rem, 6.3vw, 5rem);
  border-top: 1px solid var(--rule);
}
.faq h2 {
  max-width: 11ch;
  font-size: clamp(2.25rem, 4.7vw, 3.55rem);
  line-height: 1.05;
}
.faq__items { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  padding: 0.8rem 0.25rem;
  color: var(--ink);
  font-weight: 650;
  cursor: pointer;
}
.faq summary::marker { color: var(--wine); }
.faq details p { padding: 0 0.25rem 0.9rem 1.1rem; color: var(--muted); }
.site-footer {
  border-top: 1px solid var(--gold-line);
  background: var(--paper-deep);
}

.calendar-page {
  width: min(100% - 2 * var(--gutter), 64rem);
  min-height: 70vh;
  padding-block: clamp(2rem, 5.4vw, 4.7rem);
}
.calendar-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  padding: 0.32rem;
  border: 1px solid var(--gold-line);
  border-radius: 0.45rem;
  background: var(--paper-light);
  box-shadow: 0 0.7rem 1.7rem -1.35rem #5e3627a6;
}
.calendar-intro__main {
  z-index: 1;
  min-width: 0;
  align-self: center;
  padding: clamp(0.9rem, 3.25vw, 2rem);
}
.calendar-intro__art {
  position: relative;
  overflow: hidden;
  min-height: 10rem;
  border-radius: 0.2rem;
  background: var(--pine-deep);
}
.calendar-intro__art .christmas-art { position: absolute; inset: 0; object-position: 53% 50%; }
.calendar-intro__art::after {
  position: absolute;
  inset: 0.38rem;
  border: 1px solid #d0ad6a99;
  content: "";
  pointer-events: none;
}
.calendar-intro h1, .privacy-page h1 {
  margin: 0.4rem 0 0.6rem;
  font-size: clamp(2.55rem, 5.8vw, 4.9rem);
  line-height: 1.02;
  overflow-wrap: anywhere;
}
.calendar-intro h1 { font-size: clamp(2.1rem, 5vw, 3.9rem); }
.calendar-intro__summary { margin-bottom: 0.9rem; color: var(--muted); font-size: 1.08rem; }
.calendar-controls { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.45rem 0.65rem; }
.calendar-controls--owner {
  display: grid;
  justify-items: start;
  gap: 0.65rem;
}
.share-panel {
  width: 100%;
  padding: 0.78rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 0.32rem;
  background: var(--paper);
}
.share-panel h2 {
  margin-bottom: 0.3rem;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}
.share-panel p { font-size: 0.88rem; }
.share-panel__code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  color: var(--muted);
}
.share-panel__code code {
  padding: 0.15rem 0.42rem;
  border: 1px solid var(--rule);
  border-radius: 0.22rem;
  background: var(--paper-light);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  overflow-wrap: anywhere;
}
.share-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}
.share-panel--private {
  border-color: var(--gold-line);
  background: var(--pine-deep);
  color: var(--paper-light);
}
.share-panel--private p { color: var(--paper-deep); }
.share-panel--private .button {
  margin-top: 0.65rem;
  border-color: var(--gold-line);
  color: var(--brass);
}
.share-panel--private .button:hover { background: var(--pine); color: var(--paper-light); }
.share-panel--private :focus-visible { outline-color: var(--brass); }
.calendar-management { position: relative; }
.calendar-management summary {
  min-height: 2.8rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 0.25rem;
  color: var(--pine);
  font-weight: 650;
  cursor: pointer;
}
.calendar-management summary::marker { color: var(--wine); }
.calendar-management__actions {
  position: absolute;
  z-index: 1;
  inset: calc(100% + 0.4rem) 0 auto auto;
  display: grid;
  justify-items: start;
  gap: 0.45rem;
  width: max-content;
  max-width: calc(100vw - 2rem);
  padding: 0.65rem;
  border: 1px solid var(--rule);
  border-radius: 0.25rem;
  background: var(--paper-light);
  box-shadow: 0 0.8rem 1.35rem #53312622;
}
.share-output { max-width: 33rem; margin-top: 0.5rem; }
.copy-buffer { position: fixed; top: 0; left: -100vw; width: 1px; height: 1px; }
.button-as-link {
  min-height: 2.6rem;
  padding: 0.3rem 0.2rem;
  border: 0;
  background: none;
  color: var(--wine-deep);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.button-as-link:hover { text-decoration-thickness: 2px; }
.calendar-board {
  margin-top: 1.45rem;
  padding: clamp(0.72rem, 2.75vw, 1.9rem);
  border: 1px solid var(--gold);
  border-radius: 0.4rem;
  background: radial-gradient(at 83% 8%, var(--pine), transparent 28rem), var(--pine-night);
  box-shadow: 0 0.2rem 0 var(--gold), 0 1rem 1.55rem -1.3rem #17342bac;
}
.calendar-board .board-title { flex-wrap: wrap; border-color: #d0ad6a70; color: var(--paper-light); }
.board-title [data-door-progress] { color: var(--brass); letter-spacing: 0.025em; }
.calendar-board :focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.door-grid--calendar .door { min-height: clamp(4.5rem, 9.6vw, 7.45rem); }
.calendar-meta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; margin-top: 0.9rem; }

.door-dialog {
  width: min(35rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1px solid var(--gold-line);
  border-radius: 0.4rem;
  background: var(--paper-light);
  color: var(--ink);
  box-shadow: 0 12px 60px #211a1480;
}
.door-dialog::backdrop { background: #0b281fc7; }
.door-dialog__inner {
  padding: clamp(1.35rem, 5vw, 2.5rem);
  border-top: 0.4rem solid transparent;
  border-image: repeating-linear-gradient(135deg, var(--wine) 0 9px, var(--paper-light) 9px 15px, var(--pine) 15px 24px, var(--brass) 24px 28px) 1;
  background: radial-gradient(ellipse at top left, var(--paper), transparent 65%);
}
.door-dialog h2 {
  margin-block: 0.18rem 0.55rem;
  padding-right: 1.5rem;
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  line-height: 1.08;
}
.door-dialog__message {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--rule);
  border-top: 3px double var(--gold);
  background: var(--paper);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.door-dialog[data-door-mode="read"] .door-dialog__message {
  padding: clamp(1.15rem, 4.2vw, 2rem);
  box-shadow: 0 0.6rem 1.2rem -1rem #53312699;
  line-height: 1.65;
}
.door-dialog__signature { margin-top: 0.5rem; color: var(--muted); overflow-wrap: anywhere; }
.icon-button {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--paper-light);
  color: var(--wine-deep);
  font-size: 1.35rem;
  line-height: 1;
}
.icon-button:hover { border-color: var(--wine); }
.door-dialog__close { position: absolute; top: 0.88rem; right: 0.88rem; }
.note-form { margin-top: 1rem; }
.note-form label + input { margin-bottom: 0.8rem; }
.note-form label span { color: var(--muted); font-weight: 400; }
.note-form textarea { min-height: 7rem; resize: vertical; }
.note-form__footer { display: flex; align-items: baseline; justify-content: space-between; gap: 0.7rem; }
[data-note-count] { color: var(--muted); font-size: 0.83rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.field-hint { margin: 0.1rem 0 0.65rem; color: var(--muted); font-size: 0.83rem; }

.privacy-page {
  width: min(100% - 2 * var(--gutter), 44rem);
  min-height: 70vh;
  padding-block: clamp(2.5rem, 6vw, 5.5rem);
}
.privacy-page__intro { font-size: 1.2rem; }
.privacy-page h2 { margin-top: 1.65rem; font-size: 1.65rem; }
.privacy-page p { color: var(--muted); }

@media (max-width: 57rem) {
  .hero { gap: 1.45rem; }
  .hero h1 { font-size: clamp(2.65rem, 6.1vw, 3.9rem); }
  .door-grid--demo { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 48rem) {
  .hero, .faq { grid-template-columns: 1fr; }
  .hero { padding-top: 2.1rem; gap: 1.55rem; }
  .hero h1 { font-size: clamp(2.8rem, 9.9vw, 4.6rem); }
  .site-header__inner, .site-footer__inner { min-height: 3.95rem; }
  .calendar-intro { grid-template-columns: minmax(0, 1fr); }
  .calendar-intro__art { grid-row: 1; min-height: 0; aspect-ratio: 4 / 1; }
  .calendar-intro__main { padding-top: 1.1rem; }
  .calendar-management__actions { position: static; margin-top: 0.4rem; }
  .door-grid--calendar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 44rem) {
  .instructions { grid-template-columns: 1fr; }
  .instructions__art { max-width: 28rem; }
}

@media (max-width: 30rem) {
  .site-header__inner { gap: 0.6rem; }
  .site-nav a:not(.site-nav__action) { display: none; }
  .wordmark { font-size: 1.1rem; }
  .site-nav { font-size: 0.81rem; }
  .site-header .wordmark { font-size: 1.04rem; }
  .site-nav__action { padding-inline: 0.45rem; }
  .calendar-controls .button { padding-inline: 0.76rem; }
  .calendar-controls--guest > .button, .share-panel__actions > .button { flex: 1 1 8.75rem; }
  .instructions__steps { grid-template-columns: 1fr; }
  .door { padding-inline: 0.34rem; }
  .door--sealed .door__icon, .door--open .door__icon { width: 1.05rem; }
  .door__icon { font-size: 0.68rem; }
}

@media (max-width: 23rem) {
  .create-form input, .create-form .button { width: 100%; }
  .hero h1 { font-size: 2.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .door, .button { transition: none; }
}

.wordmark .gf-site-icon { display: inline-block; width: 32px; height: 32px; flex: none; }
