/* ==========================================================================
   Noel Seal — V3 World-Class Parisian Correspondence Atelier Stylesheet
   Fraunces (Optical Display Serif) + Plus Jakarta Sans + JetBrains Mono
   ========================================================================== */

:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --surface-tint: #f3ece1;
  --surface-warm: rgba(228, 217, 201, 0.52);
  --surface-deep: #170f13;
  --surface-deep-2: rgba(23, 15, 19, 0.94);

  --ink: #1e1518;
  --ink-body: rgba(30, 21, 24, 0.84);
  --muted: #6c5b61;

  --border: #e4d9c9;
  --border-strong: rgba(30, 21, 24, 0.16);

  --primary: #8c2332;
  --primary-deep: #6b1724;
  --gold: #b08843;
  --gold-soft: #f2d89d;

  --wax-midnight: #223047;
  --wax-plum: color-mix(in srgb, var(--primary-deep) 64%, var(--wax-midnight));
  --wax-frost: color-mix(in srgb, var(--wax-midnight) 58%, var(--bg));
  --wax-rosewood: color-mix(in srgb, var(--primary) 72%, var(--muted));

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-xs: 0 1px 2px rgba(30, 21, 24, 0.05);
  --shadow-sm: 0 4px 14px rgba(30, 21, 24, 0.06), 0 1px 3px rgba(30, 21, 24, 0.04);
  --shadow-md: 0 12px 32px rgba(30, 21, 24, 0.09), 0 2px 8px rgba(30, 21, 24, 0.04);
  --shadow-lg: 0 28px 70px rgba(23, 15, 19, 0.28), 0 4px 16px rgba(23, 15, 19, 0.12);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 30px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.68;
  color: var(--ink-body);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* Subtle fixed cotton letterpress paper grain */
.ns-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s var(--ease-out); }
a:hover { color: var(--primary-deep); }

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-variation-settings: "SOFT" 45, "WONK" 0;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 14px;
  text-wrap: balance;
}

h1 { font-size: clamp(36px, 4.4vw, 54px); font-weight: 600; }
h2 { font-size: clamp(27px, 3vw, 38px); font-weight: 600; }
h3 { font-size: clamp(19px, 1.8vw, 23px); font-weight: 600; line-height: 1.24; }
p { margin: 0 0 16px; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  font-weight: 500;
  color: var(--ink);
  background: rgba(176, 136, 67, 0.11);
  border: 1px solid rgba(176, 136, 67, 0.22);
  padding: 1px 6px;
  border-radius: 5px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.prose-shell {
  max-width: 780px;
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 16px;
  background: var(--primary);
  color: var(--surface);
  z-index: 200;
  border-radius: 0 0 10px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 12px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1.5px;
  background: var(--gold);
  border-radius: 2px;
}

.lead {
  font-size: clamp(16.5px, 1.5vw, 18.5px);
  line-height: 1.68;
  color: var(--ink-body);
  max-width: 60ch;
}

.section { padding: 84px 0; }
.section-tinted {
  background: var(--surface-tint);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head { margin-bottom: 40px; max-width: 680px; }
.section-head-split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: end;
}
.section-sub {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* ==========================================================================
   Buttons & Tactile Capsule CTAs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.22s var(--ease-spring),
    background-color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    box-shadow 0.22s var(--ease-out),
    color 0.2s var(--ease-out);
}
.btn:active { transform: scale(0.975); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: var(--surface);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 18px rgba(107, 23, 36, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover {
  color: var(--surface);
  transform: translateY(-1.5px);
  box-shadow: 0 10px 26px rgba(107, 23, 36, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.btn-cta-pill {
  padding: 8px 8px 8px 24px;
  min-height: 52px;
  gap: 14px;
  font-size: 15.5px;
}
.btn-cta-orb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform 0.28s var(--ease-spring), background-color 0.2s ease;
}
.btn-cta-pill:hover .btn-cta-orb {
  transform: translateX(3px) scale(1.05);
  background: rgba(255, 255, 255, 0.24);
}

.btn-pill-lg {
  padding: 13px 24px;
  min-height: 52px;
  font-size: 15px;
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}
.btn-outline:hover {
  background: var(--surface-tint);
  border-color: var(--gold);
  color: var(--ink);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
}
.btn-ghost:hover {
  background: rgba(140, 35, 50, 0.07);
  color: var(--primary);
}

.btn-danger {
  background: transparent;
  color: var(--primary);
  border-color: rgba(140, 35, 50, 0.3);
}
.btn-danger:hover {
  background: var(--primary);
  color: var(--surface);
  border-color: var(--primary);
}

.btn-hero-ghost {
  background: rgba(251, 248, 243, 0.07);
  color: var(--bg);
  border: 1px solid rgba(242, 216, 157, 0.34);
  backdrop-filter: blur(8px);
}
.btn-hero-ghost:hover {
  background: rgba(251, 248, 243, 0.14);
  border-color: rgba(242, 216, 157, 0.65);
  color: var(--surface);
  transform: translateY(-1.5px);
}

.btn-sm { padding: 8px 15px; min-height: 36px; font-size: 13.5px; }
.btn-lg { padding: 13px 26px; min-height: 50px; font-size: 15.5px; }
.btn-block { width: 100%; }

/* ==========================================================================
   In-App Notice, Airmail Ribbon & Frosted Atelier Header
   ========================================================================== */
.ns-inapp-bar {
  background: var(--surface-deep);
  color: var(--bg);
  font-size: 13.5px;
  border-bottom: 1px solid rgba(242, 216, 157, 0.18);
}
.ns-inapp-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 9px;
  padding-bottom: 9px;
}
.ns-inapp-dismiss {
  background: none;
  border: none;
  color: var(--gold-soft);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}

.airmail-ribbon {
  height: 4px;
  width: 100%;
  background: repeating-linear-gradient(
    -52deg,
    var(--primary) 0 13px,
    var(--bg) 13px 20px,
    var(--gold) 20px 33px,
    var(--bg) 33px 40px
  );
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 248, 243, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(228, 217, 201, 0.85);
  transition: box-shadow 0.25s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.brand-link img, .brand-link svg {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(30, 21, 24, 0.14);
}
.brand-lockup {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-wordmark {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-sub {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-body);
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-link:hover {
  color: var(--primary);
  background: rgba(140, 35, 50, 0.06);
}
.nav-link.is-active {
  color: var(--primary);
  background: rgba(140, 35, 50, 0.08);
}
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-nav-ghost {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
}
.btn-nav-ghost:hover {
  background: rgba(140, 35, 50, 0.07);
  color: var(--primary);
}
.btn-nav-folio {
  background: transparent;
  color: var(--ink);
  border-color: rgba(30, 21, 24, 0.24);
  box-shadow: none;
}
.btn-nav-folio:hover {
  border-color: var(--gold);
  background: var(--surface-tint);
  color: var(--ink);
}

.btn-icon-help {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-body);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-spring);
}
.btn-icon-help:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.nav-support-link {
  position: relative;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 8px;
}
.nav-support-link:hover { color: var(--primary); }
.ticket-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--surface);
  font-size: 12px;
  font-weight: 700;
  margin-left: 5px;
}

/* ==========================================================================
   Candlelit Parisian Desk Hero
   ========================================================================== */
.ns-hero {
  position: relative;
  background: var(--surface-deep);
  color: var(--bg);
  overflow: hidden;
  min-height: 550px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(176, 136, 67, 0.25);
}

.ns-hero-photo {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(68%, 940px);
  object-fit: cover;
  object-position: right 48%;
  pointer-events: none;
}

.ns-hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 56% 78% at 24% 48%, rgba(176, 136, 67, 0.11) 0%, transparent 68%),
    linear-gradient(90deg, var(--surface-deep) 0%, var(--surface-deep) 38%, rgba(23, 15, 19, 0.88) 51%, rgba(23, 15, 19, 0.36) 68%, rgba(23, 15, 19, 0.1) 100%);
}

.ns-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 64px;
  padding-bottom: 68px;
}

.ns-hero-copy {
  max-width: 560px;
}

.ns-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-soft);
  background: rgba(242, 216, 157, 0.08);
  border: 1px solid rgba(242, 216, 157, 0.24);
  padding: 6px 13px;
  border-radius: 999px;
  margin: 0 0 22px;
}
.ns-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 8px rgba(242, 216, 157, 0.8);
}

.ns-hero h1 {
  color: var(--bg);
  font-size: clamp(36px, 4.1vw, 52px);
  font-weight: 500;
  line-height: 1.09;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.ns-hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-soft);
}

.ns-hero-lead {
  font-size: 16.5px;
  line-height: 1.7;
  color: rgba(251, 248, 243, 0.84);
  max-width: 50ch;
  margin: 0 0 28px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.ns-hero-timing {
  margin: 14px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(242, 216, 157, 0.88);
  max-width: 54ch;
}

.ns-hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  list-style: none;
  padding: 18px 0 0;
  margin: 26px 0 0;
  border-top: 1px solid rgba(242, 216, 157, 0.16);
  font-size: 13px;
  font-weight: 500;
  color: rgba(251, 248, 243, 0.84);
}
.ns-hero-trust li {
  position: relative;
  padding-left: 14px;
}
.ns-hero-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
}


/* ==========================================================================
   24-Stamp Wax-Seal Folio Board (Double-Bezel Philatelic Collector's Mat)
   ========================================================================== */
.ns-folio-section {
  padding: 40px 0 64px;
  background: var(--bg);
}

.ns-welcome-back,
.ns-live-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 20px;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xs);
}
.ns-live-banner {
  background: linear-gradient(135deg, rgba(140, 35, 50, 0.06) 0%, rgba(176, 136, 67, 0.09) 100%);
  border-color: rgba(140, 35, 50, 0.24);
}
.ns-welcome-copy,
.ns-live-banner-text {
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 500;
}
.ns-welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ns-folio-bezel {
  padding: 8px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(228, 217, 201, 0.65) 0%, rgba(228, 217, 201, 0.32) 100%);
  border: 1px solid rgba(228, 217, 201, 0.95);
  box-shadow: var(--shadow-md);
}
.ns-folio-mat {
  background: var(--surface);
  border-radius: calc(var(--radius-xl) - 7px);
  border: 1px solid rgba(228, 217, 201, 0.9);
  padding: 34px 34px 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.ns-folio-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.ns-folio-whisper {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16.5px;
  color: var(--primary);
  margin: 0 0 6px;
}
.ns-folio-title-wrap h2 {
  font-size: clamp(28px, 3vw, 38px);
  margin: 0 0 10px;
}
.ns-folio-quickline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.ns-inline-cta {
  background: none;
  border: none;
  padding: 0 0 2px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 1.5px solid var(--primary);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-spring);
}
.ns-inline-cta:hover {
  color: var(--primary-deep);
  border-color: var(--gold);
  transform: translateX(2px);
}
.ns-folio-sub {
  font-size: 14.5px;
  color: var(--muted);
}

.ns-folio-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.ns-date-stamp {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px dashed var(--border-strong);
}
.ns-date-range {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-body);
}
.ns-date-year {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: lining-nums;
  color: var(--primary);
  line-height: 1;
}

.ns-sound-pill {
  padding: 8px 14px;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-body);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.ns-sound-pill:hover {
  border-color: var(--gold);
  background: var(--surface-tint);
  color: var(--ink);
}

.ns-folio-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}

/* 24 Perforated Archival Stamp Folio Grid */
.ns-seal-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.ns-stamp-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 5px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  text-align: center;
  box-shadow: 0 2px 6px rgba(30, 21, 24, 0.05);
  transition:
    transform 0.28s var(--ease-spring),
    box-shadow 0.28s var(--ease-out),
    border-color 0.22s ease;
}
.ns-stamp-tile:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 14px 28px rgba(30, 21, 24, 0.11);
}
.ns-stamp-tile:active {
  transform: translateY(-1px) scale(0.985);
}

/* Collector's-mat rhythm: every other stamp sits on warm paper, so the wall of 24 reads in beats instead of one flat grid */
.ns-stamp-tile:nth-child(even) {
  background: #faf6ef;
  border-color: rgba(228, 217, 201, 0.62);
}
.ns-stamp-tile:nth-child(even) .ns-stamp-paper {
  border-color: rgba(176, 136, 67, 0.3);
}

.ns-stamp-paper {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 182px;
  padding: 11px 9px 12px;
  border-radius: 9px;
  border: 1px dashed rgba(176, 136, 67, 0.36);
  background: var(--bg);
}

.ns-tint-rose .ns-stamp-paper  { background: linear-gradient(180deg, rgba(140, 35, 50, 0.055) 0%, rgba(251, 248, 243, 0.96) 100%); }
.ns-tint-sage .ns-stamp-paper  { background: linear-gradient(180deg, rgba(34, 48, 71, 0.045) 0%, rgba(251, 248, 243, 0.96) 100%); }
.ns-tint-honey .ns-stamp-paper { background: linear-gradient(180deg, rgba(176, 136, 67, 0.095) 0%, rgba(251, 248, 243, 0.96) 100%); }
.ns-tint-sky .ns-stamp-paper   { background: linear-gradient(180deg, rgba(34, 48, 71, 0.055) 0%, rgba(251, 248, 243, 0.96) 100%); }

.ns-stamp-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  gap: 4px;
}

.ns-stamp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 2px;
}

.ns-stamp-num {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink);
  line-height: 1;
}

/* 3D Glossy Wax Seal Droplet */
.ns-stamp-wax-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow:
    inset -1.5px -2px 3px rgba(23, 15, 19, 0.38),
    inset 1.5px 1.5px 2px rgba(255, 255, 255, 0.45),
    0 1px 2px rgba(30, 21, 24, 0.22);
  flex-shrink: 0;
}
.ns-wax-crimson  { background: var(--primary); }
.ns-wax-midnight { background: var(--wax-midnight); }
.ns-wax-gilt     { background: var(--gold); }
.ns-wax-plum     { background: var(--wax-plum); }
.ns-wax-frost    { background: var(--wax-frost); }
.ns-wax-rosewood { background: var(--wax-rosewood); }
.ns-wax-empty    { background: transparent; border: 1.5px dashed var(--border-strong); box-shadow: none; }

/* 12 Transparent Hand-Painted Victorian Bookplate Motifs */
.ns-motif-art {
  display: block;
  width: 96px;
  height: 96px;
  background-image: url("/_a/motifs-sprite-v2.14d2ea7235.webp");
  background-size: 400% 300%;
  background-repeat: no-repeat;
  margin: 2px auto;
  transition: transform 0.28s var(--ease-spring);
}
.ns-stamp-tile .ns-motif-art {
  transform: scale(1.08);
}
.ns-stamp-tile:hover .ns-motif-art {
  transform: scale(1.14);
}
.ns-motif-letter  { background-position: 0% 0%; }
.ns-motif-tree    { background-position: 33.333% 0%; }
.ns-motif-robin   { background-position: 66.667% 0%; }
.ns-motif-signet  { background-position: 100% 0%; }
.ns-motif-bells   { background-position: 0% 50%; }
.ns-motif-cottage { background-position: 33.333% 50%; }
.ns-motif-wreath  { background-position: 66.667% 50%; }
.ns-motif-candle  { background-position: 100% 50%; }
.ns-motif-lantern { background-position: 0% 100%; }
.ns-motif-gifts   { background-position: 33.333% 100%; }
.ns-motif-cocoa   { background-position: 66.667% 100%; }
.ns-motif-star    { background-position: 100% 100%; }

.ns-stamp-caption {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.25;
  max-width: 100%;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.ns-stamp-open-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--surface-deep);
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.ns-stamp-tile:hover .ns-stamp-open-pill {
  background: var(--primary);
  color: var(--surface);
}

.ns-stamp-tile.is-unlocked {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(140, 35, 50, 0.14), 0 8px 22px rgba(140, 35, 50, 0.14);
}
.ns-stamp-tile.is-suggested {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(140, 35, 50, 0.16);
}
.ns-stamp-tile.is-open .ns-motif-art {
  opacity: 0.22;
  filter: grayscale(0.4);
}
.ns-stamp-tile.is-open:hover .ns-motif-art {
  opacity: 0.45;
  filter: none;
}

.ns-folio-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.ns-folio-foot p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.ns-engage-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.btn-engage {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-spring);
}
.btn-engage:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--surface);
  transform: translateY(-1px);
}
.btn-engage[aria-pressed="true"] {
  background: rgba(140, 35, 50, 0.09);
  border-color: var(--primary);
  color: var(--primary);
}
.engage-heart { color: var(--primary); font-size: 14px; }
.engage-count { font-variant-numeric: tabular-nums; font-weight: 700; }
.share-msg { font-size: 13px; font-weight: 600; color: var(--primary); }

/* ==========================================================================
   How It Works — Brass Medallion Steps + Realistic Phone Walkthrough Frames
   ========================================================================== */
.ns-steps-rail {
  list-style: none;
  padding: 0;
  margin: 0 0 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.ns-step-item {
  padding: 6px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(228, 217, 201, 0.9);
  box-shadow: var(--shadow-xs);
}
.ns-step-inner {
  height: 100%;
  padding: 24px;
  border-radius: calc(var(--radius-lg) - 5px);
  background: var(--surface);
  border: 1px solid rgba(228, 217, 201, 0.85);
}
.ns-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 13px;
  border-bottom: 1px dashed rgba(176, 136, 67, 0.32);
}
.ns-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: lining-nums;
  color: var(--primary);
  background: linear-gradient(135deg, rgba(176, 136, 67, 0.16) 0%, rgba(140, 35, 50, 0.08) 100%);
  border: 1px solid rgba(176, 136, 67, 0.4);
}
.ns-step-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 999px;
}
.ns-step-inner h3 { font-size: 20px; margin-bottom: 10px; }
.ns-step-inner p { font-size: 15px; line-height: 1.65; color: var(--ink-body); }

.ns-shots-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.ns-shot-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}
.ns-shot-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.ns-shot-bezel {
  width: 100%;
  max-width: 268px;
  padding: 7px;
  border-radius: 30px;
  background: var(--surface-deep);
  box-shadow: 0 14px 30px rgba(23, 15, 19, 0.22), inset 0 0 0 1px rgba(242, 216, 157, 0.2);
}
.ns-shot-frame {
  position: relative;
  border-radius: 23px;
  overflow: hidden;
  background: var(--bg);
}
.ns-shot-frame img {
  width: 100%;
  height: auto;
  display: block;
}
.ns-shot-card figcaption {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-body);
  text-align: center;
}
.ns-shot-step {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: rgba(140, 35, 50, 0.08);
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 4px;
}

/* ==========================================================================
   Editorial Prose & Archival Letter Specimens
   ========================================================================== */
.ns-split-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 56px;
  align-items: start;
}

.prose h2 { margin-top: 34px; font-size: clamp(24px, 2.4vw, 31px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 26px; font-size: 21px; }
.prose p { font-size: 16px; line-height: 1.74; color: var(--ink-body); max-width: 64ch; }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 18px; }
.prose li { margin-bottom: 10px; line-height: 1.7; color: var(--ink-body); }
.prose strong { color: var(--ink); font-weight: 600; }

.ns-split-aside {
  position: sticky;
  top: 96px;
}
.ns-specimen-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.ns-letter-specimen {
  padding: 6px;
  border-radius: 16px;
  background: var(--surface-tint);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.3s ease;
}
.ns-specimen-tilt-a { transform: rotate(-0.9deg); }
.ns-specimen-tilt-b { transform: rotate(0.8deg); }
.ns-letter-specimen:hover { transform: rotate(0deg) translateY(-3px); box-shadow: var(--shadow-lg); }

.ns-specimen-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: 11px;
  padding: 20px 22px 22px;
}
.ns-specimen-alt .ns-specimen-inner { border-top-color: var(--gold); }

.ns-specimen-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.ns-specimen-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 4px;
}
.ns-specimen-salutation {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
}
.ns-specimen-postal {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.ns-specimen-cancel {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1.5px dashed var(--border-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
  transform: rotate(-10deg);
  font-family: var(--font-mono);
  color: var(--muted);
}
.ns-specimen-cancel span { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
.ns-specimen-cancel strong { font-size: 13px; font-weight: 600; color: var(--ink); }

.ns-specimen-stamp {
  display: block;
  width: 46px;
  height: 46px;
  background-image: url("/_a/motifs-sprite-v2.14d2ea7235.webp");
  background-size: 400% 300%;
  background-repeat: no-repeat;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
}

.ns-specimen-lined {
  padding-top: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 28px,
    rgba(228, 217, 201, 0.75) 28px,
    rgba(228, 217, 201, 0.75) 29px
  );
}
.ns-specimen-body {
  font-size: 15px;
  line-height: 29px;
  color: var(--ink-body);
  margin: 0;
}
.ns-specimen-sign {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  font-weight: 500;
  color: var(--primary);
  margin: 0;
  line-height: 29px;
}

.ns-specimen-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xs);
  transition: transform 0.22s var(--ease-spring), border-color 0.2s ease, background-color 0.2s ease;
}
.ns-specimen-link:hover {
  border-color: var(--primary);
  background: var(--surface-tint);
  transform: translateX(3px);
}

/* ==========================================================================
   Guides Directory — Asymmetrical Editorial Bento (Zero Orphan Gap)
   ========================================================================== */
.ns-guide-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.ns-guide-card {
  display: flex;
  flex-direction: column;
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  color: var(--ink);
  transition:
    transform 0.28s var(--ease-spring),
    border-color 0.22s ease,
    box-shadow 0.28s ease;
}
.ns-guide-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}

.ns-guide-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: center;
  padding: 32px 34px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%);
  border-color: var(--border-strong);
}
.ns-guide-featured-copy {
  display: flex;
  flex-direction: column;
}
.ns-guide-featured-art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--surface-tint);
  border: 1px dashed rgba(176, 136, 67, 0.45);
}
.ns-bento-stamp {
  width: 96px;
  height: 108px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-spring);
}
.ns-bento-stamp .ns-motif-art { width: 76px; height: 76px; margin: 0; }
.ns-bento-a { transform: rotate(-4deg); }
.ns-bento-b { transform: translateY(-6px); }
.ns-bento-c { transform: rotate(4deg); }
.ns-guide-featured:hover .ns-bento-a { transform: rotate(-6deg) translateY(-4px); }
.ns-guide-featured:hover .ns-bento-b { transform: translateY(-10px) scale(1.04); }
.ns-guide-featured:hover .ns-bento-c { transform: rotate(6deg) translateY(-4px); }

.ns-guide-tag {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(140, 35, 50, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.ns-guide-card h3 { font-size: 22px; margin-bottom: 10px; }
.ns-guide-featured h3 { font-size: clamp(24px, 2.3vw, 30px); }
.ns-guide-card p { font-size: 15px; line-height: 1.65; color: var(--muted); margin-bottom: 18px; flex: 1; }
.ns-guide-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
}
.ns-guide-card:hover .ns-guide-more { color: var(--primary-deep); }


/* ==========================================================================
   2-Column Editorial FAQ
   ========================================================================== */
.ns-faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 56px;
  align-items: start;
}
.ns-faq-intro {
  position: sticky;
  top: 96px;
}
.ns-faq-cta-card {
  margin-top: 26px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--surface-tint);
  border: 1px solid var(--border-strong);
}
.ns-faq-cta-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
}
.ns-faq-cta-text {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 14px;
}

.faq-list {
  border-top: 1px solid var(--border-strong);
}
.faq-item {
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s ease;
}
.faq-item[open] {
  background: rgba(255, 255, 255, 0.6);
}
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 6px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.32;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--primary); }

.faq-plus {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  flex-shrink: 0;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.28s var(--ease-spring);
}
.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--primary);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease-spring), opacity 0.2s ease;
}
.faq-plus::before { width: 11px; height: 1.5px; }
.faq-plus::after  { width: 1.5px; height: 11px; }
.faq-item[open] .faq-plus {
  border-color: var(--primary);
  background: rgba(140, 35, 50, 0.08);
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 38px 22px 6px;
}
.faq-answer p {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--ink-body);
  margin: 0;
}

/* ==========================================================================
   Winter Guestbook (Community Comments) & Shared Form Primitives
   ========================================================================== */
.ns-guestbook-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 52px;
  align-items: start;
}
.ns-guestbook-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}
.comments-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 7px 14px;
  border-radius: 999px;
}
.ns-guestbook-emblem {
  display: block;
  width: 60px;
  height: 60px;
  background-image: url("/_a/motifs-sprite-v2.14d2ea7235.webp");
  background-size: 400% 300%;
  background-repeat: no-repeat;
  opacity: 0.9;
}

.ns-bezel-card {
  padding: 6px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.comment-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-lg) - 5px);
  padding: 24px 26px;
}

.field-group { margin-bottom: 16px; }
.field-group:last-of-type { margin-bottom: 18px; }
.field-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.field-group input[type="text"],
.field-group input[type="email"],
.field-group textarea,
.field-group select {
  width: 100%;
  padding: 12px 14px;
  min-height: 46px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.field-group textarea {
  min-height: 108px;
  resize: vertical;
}
.field-group select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%236c5b61' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.field-group input:focus,
.field-group textarea:focus,
.field-group select:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(140, 35, 50, 0.12);
}
.field-group input::placeholder,
.field-group textarea::placeholder {
  color: var(--muted);
  opacity: 0.78;
}

.comment-form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.form-status {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

.comments-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.comments-list:empty::after {
  content: "No visitor notes yet — tell us who you are crafting a December folio for, or suggest a new painted winter motif.";
  display: block;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.65);
  border: 1px dashed var(--border-strong);
  font-size: 14.5px;
  color: var(--muted);
}
.comment-item {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}
.comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13.5px;
}
.comment-author { color: var(--ink); font-weight: 700; }
.comment-time { color: var(--muted); font-size: 12.5px; }
.comment-owner-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(140, 35, 50, 0.09);
  padding: 2px 8px;
  border-radius: 999px;
}
.comment-body { font-size: 15px; color: var(--ink-body); margin: 0 0 8px; }
.comment-reply-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
}
.comment-replies { margin-top: 10px; padding-left: 16px; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.reply-banner { padding: 8px 12px; border-radius: 8px; background: var(--surface-tint); font-size: 13.5px; margin-bottom: 10px; }

/* ==========================================================================
   Footer Colophon
   ========================================================================== */
.site-footer {
  position: relative;
  background:
    radial-gradient(ellipse 60% 70% at 15% 0%, rgba(176, 136, 67, 0.08) 0%, transparent 65%),
    var(--surface-deep);
  color: rgba(251, 248, 243, 0.8);
  padding: 0 0 42px;
}
.footer-brass-rule {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(176, 136, 67, 0.55) 25%, rgba(242, 216, 157, 0.75) 50%, rgba(176, 136, 67, 0.55) 75%, transparent 100%);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  padding-top: 64px;
  padding-bottom: 44px;
}
.footer-brand-link .brand-wordmark { color: var(--bg); }
.footer-brand-link .brand-sub { color: var(--gold-soft); }
.footer-tagline {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16.5px;
  line-height: 1.55;
  color: rgba(251, 248, 243, 0.9);
  max-width: 36ch;
}
.footer-colophon {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(251, 248, 243, 0.62);
  max-width: 40ch;
}
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 16px;
}
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-list a {
  color: rgba(251, 248, 243, 0.8);
  font-size: 14.5px;
  transition: color 0.2s ease, padding-left 0.2s var(--ease-spring);
}
.footer-list a:hover {
  color: var(--gold-soft);
  padding-left: 3px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(251, 248, 243, 0.1);
  font-size: 13px;
  color: rgba(251, 248, 243, 0.56);
}
.footer-bottom p { margin: 0; }
.footer-edition { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; }

/* ==========================================================================
   Inner Pages — Guide Hero, Unified Spec Strip, Prompt Slips, Atelier Sidebar
   ========================================================================== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }

.guide-hero {
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface-tint) 100%);
  border-bottom: 1px solid var(--border);
  padding: 54px 0 60px;
}
.guide-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 44px;
  align-items: center;
}
.guide-hero-copy h1 {
  font-size: clamp(32px, 3.8vw, 46px);
  margin-bottom: 16px;
}
.guide-hero-copy .lead { margin-bottom: 26px; }

.guide-vignette-card {
  position: relative;
  padding: 22px 20px 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.guide-vignette-cancel {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px dashed var(--border-strong);
  font-family: var(--font-mono);
  line-height: 1.25;
}
.guide-vignette-cancel span { font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
.guide-vignette-cancel strong { font-size: 12px; letter-spacing: 0.12em; color: var(--primary); }
.guide-vignette-stamps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.guide-mini-stamp {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px dashed rgba(176, 136, 67, 0.4);
}
.guide-mini-stamp .ns-motif-art { width: 64px; height: 64px; margin: 0; }
.guide-vignette-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* Unified Double-Bezel Quick-Answer Spec Strip */
.guide-spec-band {
  padding: 26px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.quick-answer-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.quick-answer-cell {
  padding: 18px 20px;
  border-right: 1px solid var(--border);
}
.quick-answer-cell:last-child { border-right: none; }
.qa-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 6px;
}
.qa-value {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.42;
  margin: 0;
}

/* 24 Copy-Ready Prompt Slips + Category Filter Pills */
.prompt-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.prompt-filter-btn {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-body);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.prompt-filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.prompt-filter-btn.is-active {
  background: var(--surface-deep);
  border-color: var(--surface-deep);
  color: var(--gold-soft);
}

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.prompt-card {
  padding: 5px;
  border-radius: var(--radius-md);
  background: var(--surface-tint);
  border: 1px solid var(--border);
  transition: transform 0.25s var(--ease-spring), border-color 0.2s ease, box-shadow 0.25s ease;
}
.prompt-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}
.prompt-card-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 16px;
  border-radius: calc(var(--radius-md) - 4px);
  background: var(--surface);
  border: 1px solid rgba(228, 217, 201, 0.85);
}
.prompt-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.prompt-day {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: rgba(140, 35, 50, 0.08);
  padding: 3px 9px;
  border-radius: 999px;
}
.prompt-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.prompt-text {
  font-family: var(--font-serif);
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 12px;
  flex: 1;
}
.prompt-tip {
  font-size: 12.5px;
  line-height: 1.48;
  color: var(--muted);
  margin: 0 0 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.prompt-foot { margin-top: auto; }
.prompt-copy-btn { width: 100%; }

/* Guide Body + Candlelit Mahogany Sticky Sidebar */
.guide-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 0.62fr);
  gap: 52px;
  align-items: start;
}
.guide-figure { margin: 0 0 28px; }
.guide-figure img { border-radius: var(--radius-md); border: 1px solid var(--border); }
.guide-figure figcaption { margin-top: 8px; font-size: 13.5px; color: var(--muted); }

.guide-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-atelier {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 90% 70% at 85% 0%, rgba(176, 136, 67, 0.16) 0%, transparent 65%),
    var(--surface-deep);
  color: var(--bg);
  border: 1px solid rgba(242, 216, 157, 0.24);
  box-shadow: var(--shadow-md);
}
.sidebar-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 10px;
}
.sidebar-atelier h3 {
  color: var(--bg);
  font-size: 24px;
  margin-bottom: 10px;
}
.sidebar-atelier p {
  font-size: 14.5px;
  line-height: 1.62;
  color: rgba(251, 248, 243, 0.8);
  margin-bottom: 18px;
}
.sidebar-atelier .btn + .btn { margin-top: 10px; }
.btn-sidebar-ghost {
  background: rgba(251, 248, 243, 0.08);
  color: var(--bg);
  border: 1px solid rgba(242, 216, 157, 0.28);
}
.btn-sidebar-ghost:hover {
  background: rgba(251, 248, 243, 0.16);
  color: var(--surface);
  border-color: rgba(242, 216, 157, 0.55);
}

.sidebar-links {
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.sidebar-links-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.sidebar-links ul { list-style: none; padding: 0; margin: 0; }
.sidebar-links li { border-top: 1px solid var(--border); }
.sidebar-links li:first-child { border-top: none; }
.sidebar-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}
.sidebar-links a:hover { color: var(--primary); }

/* Bottom Candlelit CTA Banner */
.cta-band { padding: 64px 0 84px; }
.cta-band-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 40px 44px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 65% 110% at 92% 50%, rgba(176, 136, 67, 0.16) 0%, transparent 65%),
    var(--surface-deep);
  border: 1px solid rgba(242, 216, 157, 0.26);
  box-shadow: var(--shadow-lg);
}
.cta-band-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold-soft);
  margin: 0 0 10px;
}
.cta-band-card h2 {
  color: var(--bg);
  font-size: clamp(26px, 2.8vw, 34px);
  margin-bottom: 10px;
}
.cta-band-card p {
  color: rgba(251, 248, 243, 0.8);
  max-width: 56ch;
  margin: 0;
}

/* Contact, Legal & 404 Pages */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}
.contact-prose { margin-top: 24px; }
.contact-email-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xs);
}
.contact-email-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 4px;
}
.contact-email-addr {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  word-break: break-all;
}
.contact-email-addr:hover { color: var(--primary-deep); text-decoration: underline; }
.contact-bezel {
  padding: 7px;
  border-radius: var(--radius-xl);
  background: var(--surface-tint);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
}
.contact-card {
  background: var(--surface);
  border-radius: calc(var(--radius-xl) - 6px);
  border: 1px solid var(--border);
  overflow: hidden;
}
.contact-card-ribbon {
  height: 5px;
  background: repeating-linear-gradient(
    -52deg,
    var(--primary) 0 12px,
    var(--surface) 12px 18px,
    var(--gold) 18px 30px,
    var(--surface) 30px 36px
  );
}
.contact-card-pad { padding: 30px 30px 28px; }
.contact-card h2 { font-size: 28px; margin-bottom: 8px; }
.muted-note { font-size: 14.5px; color: var(--muted); margin-bottom: 22px; }
.tickets-history {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.tickets-history h3 { font-size: 19px; margin-bottom: 10px; }

.legal-shell { max-width: 840px; margin: 0 auto; }
.legal-sheet {
  padding: 48px 54px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.meta-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.legal-prose h2 {
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.legal-prose h2:first-child { padding-top: 0; border-top: none; }
.legal-foot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.error-bezel {
  max-width: 640px;
  margin: 20px auto;
  padding: 8px;
  border-radius: var(--radius-xl);
  background: var(--surface-tint);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
}
.error-box {
  padding: 46px 40px;
  border-radius: calc(var(--radius-xl) - 7px);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}
.error-emblem { width: 108px; height: 108px; margin: 0 auto 16px; }
.error-box .lead { margin: 0 auto 26px; }
.error-box .hero-cta-row { justify-content: center; }


/* ==========================================================================
   Atelier Modal System — Unified Luxury Stationery Dialogs
   ========================================================================== */
@keyframes nsModalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.975); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ns-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(23, 15, 19, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow-y: auto;
}

.ns-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  border-radius: 22px;
  background: var(--bg);
  border: 1px solid rgba(242, 216, 157, 0.34);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: nsModalIn 0.28s var(--ease-spring) both;
}
.ns-modal::before {
  content: "";
  display: block;
  height: 5px;
  width: 100%;
  background: repeating-linear-gradient(
    -52deg,
    var(--primary) 0 12px,
    var(--bg) 12px 18px,
    var(--gold) 18px 30px,
    var(--bg) 30px 36px
  );
}
.ns-modal.is-wide { max-width: 780px; }

.ns-modal-close {
  position: absolute;
  top: 18px;
  right: 16px;
  z-index: 20;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(228, 217, 201, 0.9);
  background: rgba(251, 248, 243, 0.92);
  color: var(--ink);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xs);
  transition: transform 0.24s var(--ease-spring), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.ns-modal-close:hover {
  background: var(--surface);
  border-color: var(--primary);
  color: var(--primary);
  transform: rotate(90deg);
}

.ns-modal-pad { padding: 28px 32px 32px; }
.ns-modal-header {
  padding-right: 44px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.ns-modal-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 6px;
}
.ns-modal-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.5vw, 30px);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
}
.ns-modal-lead {
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink-body);
  margin: 0 0 20px;
}

/* Mode Selector Cards (Create Modal) */
.ns-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.ns-choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 15px 16px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--ease-spring);
}
.ns-choice-card:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}
.ns-choice-card input[type="radio"] {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  margin: 0;
}
.ns-choice-card.is-selected {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(140, 35, 50, 0.055) 0%, var(--surface) 100%);
  box-shadow: 0 0 0 3px rgba(140, 35, 50, 0.1);
}
.ns-choice-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  padding-right: 22px;
}
.ns-choice-desc {
  font-size: 13px;
  line-height: 1.48;
  color: var(--muted);
}

/* 3D Glossy Wax Swatch Chips & Inspiration Pills */
.ns-swatch-row,
.ns-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ns-swatch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-body);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s var(--ease-spring), box-shadow 0.2s ease;
}
.ns-swatch-btn:hover { border-color: var(--gold); transform: translateY(-1px); }
.ns-swatch-btn.is-selected {
  border-color: var(--primary);
  background: rgba(140, 35, 50, 0.08);
  color: var(--ink);
  box-shadow: 0 0 0 2px rgba(140, 35, 50, 0.12);
}
.ns-swatch-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  box-shadow:
    inset -1.5px -1.5px 3px rgba(23, 15, 19, 0.38),
    inset 1.5px 1.5px 2px rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}

.ns-pill-btn {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-tint);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-body);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-spring);
}
.ns-pill-btn:hover {
  background: var(--surface);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.ns-char-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Painted Holiday Motif Picker (Composer Modal) */
.ns-crest-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.ns-crest-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px 8px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-body);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.22s var(--ease-spring), box-shadow 0.2s ease;
}
.ns-crest-btn:hover { border-color: var(--gold); transform: translateY(-2px); }
.ns-crest-btn.is-selected {
  border-color: var(--primary);
  background: rgba(176, 136, 67, 0.14);
  color: var(--ink);
  box-shadow: 0 0 0 2px rgba(140, 35, 50, 0.14);
}
.ns-crest-thumb {
  display: block;
  width: 48px;
  height: 48px;
  background-image: url("/_a/motifs-sprite-v2.14d2ea7235.webp");
  background-size: 400% 300%;
  background-repeat: no-repeat;
}

/* Engraved Seal Code Slot, Saved Folios & Help Index Rows */
.ns-code-input {
  font-family: var(--font-mono) !important;
  font-size: 20px !important;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  padding: 15px 16px !important;
  background: var(--surface) !important;
  border-style: dashed !important;
}
.ns-code-box {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  margin-bottom: 18px;
}
.ns-code-display {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--primary);
}
.ns-warning-note {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(176, 136, 67, 0.12);
  border: 1px solid rgba(176, 136, 67, 0.34);
  font-size: 13.5px;
  color: var(--ink);
  margin-bottom: 14px;
}

.ns-actions-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.ns-saved-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ns-saved-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
}
.ns-saved-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.ns-empty-folio {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
}
.ns-empty-folio .ns-motif-art { width: 76px; height: 76px; margin: 0 auto 10px; }
.ns-empty-folio p { font-size: 14.5px; color: var(--muted); max-width: 40ch; margin: 0; }

.ns-help-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.ns-help-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 13px 15px;
  border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.ns-help-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(140, 35, 50, 0.08);
  border: 1px solid rgba(140, 35, 50, 0.18);
}
.ns-help-row p { font-size: 14px; line-height: 1.56; color: var(--ink-body); margin: 0; }
.ns-help-row strong { color: var(--ink); }

/* Two-Column Share & Invite Modal with Live 9:16 Story Card Preview */
.ns-share-split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 26px;
  align-items: start;
}
.ns-story-preview-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ns-story-preview-img {
  width: 100%;
  max-width: 230px;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
}
.ns-story-caption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.ns-share-invite-quote {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 16px;
}
.ns-share-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.ns-share-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  min-height: 35px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.ns-share-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--surface-tint);
}
.ns-manual-copy {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12.5px;
  margin-top: 10px;
}

/* Storybook Letter Reveal Modal */
.ns-letter-hero-band {
  position: relative;
  overflow: hidden;
  padding: 26px 32px 24px;
  background: var(--surface-deep);
  color: var(--bg);
}
.ns-letter-hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/_a/hero-desk.d44eff1197.webp") right center / cover no-repeat;
  opacity: 0.72;
}
.ns-letter-hero-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(23, 15, 19, 0.94) 0%, rgba(23, 15, 19, 0.72) 56%, rgba(23, 15, 19, 0.25) 100%);
}
.ns-letter-hero-inner {
  position: relative;
  z-index: 2;
  padding-right: 40px;
}
.ns-letter-brand-mini {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 6px;
}
.ns-letter-hero-band h2,
.ns-letter-hero-band .ns-modal-title {
  color: var(--bg);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 500;
  margin: 0;
}
.ns-letter-hero-sub {
  font-size: 13.5px;
  color: rgba(251, 248, 243, 0.78);
  margin: 6px 0 0;
}

.ns-stationery-outer {
  padding: 8px;
  border-radius: 12px;
  background: var(--surface-tint);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.ns-paper-vellum .ns-stationery-inner { background: var(--surface); }
.ns-paper-rose .ns-stationery-inner   { background: linear-gradient(180deg, rgba(140, 35, 50, 0.045) 0%, var(--surface) 100%); }
.ns-paper-frost .ns-stationery-inner  { background: linear-gradient(180deg, rgba(34, 48, 71, 0.05) 0%, var(--surface) 100%); }
.ns-paper-gilt .ns-stationery-inner   { background: linear-gradient(180deg, rgba(176, 136, 67, 0.085) 0%, var(--surface) 100%); }

.ns-stationery-inner {
  position: relative;
  padding: 24px 24px 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 5px rgba(228, 217, 201, 0.85);
}
.ns-stationery-postmark {
  float: right;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px 12px;
}
.ns-postmark-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px dashed var(--border-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--muted);
  transform: rotate(-10deg);
}
.ns-postmark-mini-art {
  display: block;
  width: 48px;
  height: 48px;
  background-image: url("/_a/motifs-sprite-v2.14d2ea7235.webp");
  background-size: 400% 300%;
  background-repeat: no-repeat;
  border: 1px solid var(--border);
  border-radius: 6px;
  background-color: var(--bg);
}
.ns-letter-salutation {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 27px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.2;
}

.ns-scratch-wrap {
  position: relative;
  min-height: 160px;
  padding-top: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 31px,
    rgba(228, 217, 201, 0.82) 31px,
    rgba(228, 217, 201, 0.82) 32px
  );
}
.ns-letter-text {
  font-size: 16.5px;
  line-height: 32px;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}
.ns-letter-from {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  font-weight: 500;
  line-height: 32px;
  color: var(--primary);
  margin: 0;
}

.ns-robin-perch {
  display: block;
  position: absolute;
  right: -8px;
  bottom: -14px;
  width: 84px;
  height: 84px;
  background: url("/_a/robin-corner.5c23296b3a.webp") center / contain no-repeat;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(30, 21, 24, 0.16));
}

.ns-scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
  border-radius: 6px;
  transition: opacity 0.42s var(--ease-out);
}
.ns-scratch-canvas.is-cleared {
  opacity: 0;
  pointer-events: none;
}

@keyframes nsCrack {
  0%   { transform: scale(1); }
  35%  { transform: scale(0.95) rotate(-1.2deg); }
  70%  { transform: scale(1.03) rotate(0.8deg); }
  100% { transform: scale(1); }
}
.ns-stamp-tile.is-cracking {
  animation: nsCrack 0.3s var(--ease-spring);
}

/* Toast & Confetti */
.ns-toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 160;
  max-width: min(92vw, 440px);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--surface-deep);
  color: var(--bg);
  border: 1px solid rgba(242, 216, 157, 0.32);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.ns-confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 150;
}

/* ==========================================================================
   Responsive Design — Tablet (1024px) & Mobile (768px / 390px) Zero Overflow
   ========================================================================== */
@media (max-width: 1040px) {
  .site-nav { display: none; }
  .ns-seal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ns-split-feature,
  .ns-faq-layout,
  .ns-guestbook-layout,
  .guide-hero-grid,
  .guide-body-grid,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .ns-split-aside,
  .ns-faq-intro,
  .guide-sidebar { position: static; }
  .ns-specimen-tilt-a,
  .ns-specimen-tilt-b { transform: none; }
  .quick-answer-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-answer-cell:nth-child(2) { border-right: none; }
  .quick-answer-cell:nth-child(1),
  .quick-answer-cell:nth-child(2) { border-bottom: 1px solid var(--border); }
  .prompt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ns-guide-featured { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .section-head-split { grid-template-columns: minmax(0, 1fr); gap: 12px; }

  /* Mobile hero: painted desk on top, copy tucked beneath */
  .ns-hero { min-height: 0; display: block; }
  .ns-hero-photo {
    position: relative;
    display: block;
    width: 100%;
    height: 178px;
    object-fit: cover;
    object-position: 62% 50%;
    -webkit-mask-image: linear-gradient(to bottom, var(--surface-deep) 62%, transparent 100%);
    mask-image: linear-gradient(to bottom, var(--surface-deep) 62%, transparent 100%);
  }
  .ns-hero-scrim { display: none; }
  .ns-hero-inner { margin-top: -16px; padding-top: 0; padding-bottom: 30px; }
  .ns-hero-kicker { border-radius: 16px; letter-spacing: 0.08em; line-height: 1.35; }
  .ns-hero h1 { font-size: clamp(30px, 8.4vw, 40px); margin-bottom: 14px; }
  .ns-hero-lead { font-size: 15.5px; line-height: 1.62; margin-bottom: 20px; }
  .ns-hero .btn-cta-pill { padding: 13px 20px; font-size: 15px; min-height: 46px; }
  .ns-hero .hero-cta-row .btn-hero-ghost { padding: 11px 18px; font-size: 14px; min-height: 44px; }
  .ns-hero-timing {
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.68;
    max-width: none;
    padding-left: 12px;
    border-left: 1px solid rgba(242, 216, 157, 0.22);
  }
  .ns-stamp-paper { min-height: 150px; }
  .ns-stamp-caption { font-size: 12px; letter-spacing: 0.02em; }

  .ns-folio-section { padding: 36px 0 56px; }
  .ns-folio-bezel { padding: 5px; border-radius: 22px; }
  .ns-folio-mat { padding: 20px 14px 18px; border-radius: 18px; }
  .ns-seal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .ns-stamp-paper { padding: 7px 6px 8px; }
  .ns-motif-art { width: 70px; height: 70px; }

  .ns-steps-rail,
  .ns-shots-grid,
  .ns-guide-bento,
  .prompt-grid,
  .footer-grid,
  .ns-share-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .ns-guide-featured { padding: 22px 20px; }
  .ns-guide-card { padding: 22px 20px; }
  .ns-bento-stamp { width: 76px; height: 86px; }
  .ns-bento-stamp .ns-motif-art { width: 58px; height: 58px; }

  .quick-answer-strip { grid-template-columns: minmax(0, 1fr); }
  .quick-answer-cell { border-right: none; border-bottom: 1px solid var(--border); }
  .quick-answer-cell:last-child { border-bottom: none; }

  .legal-sheet { padding: 28px 20px; border-radius: 20px; }
  .cta-band-card { padding: 28px 22px; border-radius: 22px; }
  .contact-card-pad { padding: 22px 18px; }
}

@media (max-width: 520px) {
  .header-inner { min-height: 60px; gap: 8px; }
  .brand-sub,
  .nav-support-link { display: none; }
  .brand-wordmark { font-size: 18.5px; }
  .header-actions { gap: 6px; }
  .header-actions .btn-sm { padding: 7px 11px; font-size: 12.5px; min-height: 34px; }
  .btn-icon-help { width: 32px; height: 32px; font-size: 12.5px; }

  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-row .btn { width: 100%; justify-content: center; }
  .btn-cta-pill { justify-content: space-between; padding: 8px 8px 8px 20px; }

  .ns-modal-backdrop { padding: 10px; align-items: flex-end; }
  .ns-modal { max-height: calc(100dvh - 20px); border-radius: 20px; }
  .ns-modal-pad { padding: 22px 18px calc(22px + env(safe-area-inset-bottom, 0px)); }
  .ns-mode-grid { grid-template-columns: minmax(0, 1fr); }
  .ns-crest-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ns-letter-hero-band { padding: 22px 18px 18px; }
  .ns-stationery-inner { padding: 18px 16px 24px; }
  .ns-robin-perch { width: 64px; height: 64px; right: -4px; bottom: -10px; }
  .ns-saved-item { flex-direction: column; align-items: flex-start; }
}

/* --- Split section header: pull the side note back onto the type line (2026-12-03) --- */
.section-head-split {
  gap: 20px 32px;
}
.section-head-split .section-sub {
  max-width: 42ch;
  justify-self: end;
  margin-left: auto;
}

/* --- 2026-12-03 review pass: headline rhythm, step cards, mobile CTA spacing, stamp captions --- */
.ns-hero h1 em {
  line-height: 1.18;
}
.ns-step-inner code {
  white-space: nowrap;
}
.ns-stamp-caption {
  line-height: 1.3;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .ns-hero-kicker {
    line-height: 1.42;
    letter-spacing: 0.055em;
    padding-inline: 12px;
  }
  .ns-stamp-paper { padding-bottom: 11px; }
  .ns-stamp-top { margin-bottom: 6px; }
  .ns-stamp-caption { font-size: 12.5px; }
}

@media (max-width: 520px) {
  .hero-cta-row { gap: 14px; }
  .ns-hero .hero-cta-row .btn { width: 100%; }
}

/* --- 2026-12-03 review pass II: mobile rhythm, step card alignment, stamp caption breathing room --- */
.ns-step-inner {
  align-items: flex-start;
  text-align: left;
}
.ns-step-head {
  justify-content: space-between;
  align-items: center;
}
.ns-step-inner p {
  font-size: 14.5px;
  color: var(--muted);
}
.ns-stamp-caption {
  padding-inline: 4px;
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .ns-hero h1 {
    font-size: clamp(28px, 7.8vw, 36px);
    line-height: 1.2;
  }
  .ns-hero-kicker {
    font-size: 12px;
    padding: 7px 12px;
  }
}

@media (max-width: 520px) {
  .hero-cta-row { gap: 16px; }
  .ns-hero .hero-cta-row .btn {
    width: 100%;
    min-height: 48px;
  }
  .ns-hero-lead { margin-bottom: 24px; }
}

/* --- 2026-12-03 review pass III: contrast, step tag legibility, section rhythm, header spacing --- */
.ns-hero-lead {
  color: rgba(251, 248, 243, 0.94);
}
.ns-hero-timing {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(242, 216, 157, 0.8);
}
.ns-step-tag {
  background: #e8d8c3;
  color: #5a4a3a;
  border-color: rgba(176, 136, 67, 0.34);
}
.ns-stamp-caption {
  letter-spacing: 0.05em;
}
#how-it-works {
  position: relative;
  border-top: 1px solid var(--border);
}
#how-it-works::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  margin-inline: auto;
  width: 56px;
  height: 2px;
  background: var(--gold);
}

@media (min-width: 769px) {
  .hero-cta-row { column-gap: 20px; }
  .ns-stamp-caption { font-size: 12px; }
}

@media (max-width: 768px) {
  .header-actions { gap: 12px; }
  .btn-nav-folio { border-color: rgba(176, 136, 67, 0.62); }
  .ns-stamp-caption { font-size: 13px; }
  .ns-hero-timing { line-height: 1.62; }
}

@media (max-width: 520px) {
  .ns-hero-trust {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
