:root {
  --ink: #2b2118;
  --ink-soft: #5a4636;
  --muted: #8a7463;
  --line: rgba(247, 148, 29, 0.22);
  --bg: #fffaf5;
  --bg-elevated: #fff7ef;
  --paper: #ffffff;
  --orange: #f7941d;
  --orange-deep: #e07800;
  --orange-soft: #ffe4c2;
  --orange-wash: rgba(247, 148, 29, 0.12);
  --shadow: 0 16px 40px rgba(224, 120, 0, 0.08);
  --radius: 6px;
  --max: 720px;
  --wide: 1100px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Sora", "Avenir Next", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 100% 0%, rgba(247, 148, 29, 0.14), transparent 55%),
    radial-gradient(700px 420px at 0% 30%, rgba(255, 228, 194, 0.55), transparent 50%),
    var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--orange-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--orange);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.95rem 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
}

.site-header a {
  color: inherit;
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header a:hover {
  color: var(--orange-deep);
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--orange-deep);
}

/* —— Hero —— */
.hero {
  position: relative;
  display: grid;
  background: var(--paper);
  overflow: hidden;
}

.hero-media {
  position: relative;
  min-height: min(86vh, 820px);
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transform: scale(1.03);
  animation: heroEase 18s ease-out forwards;
}

@keyframes heroEase {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1.02);
  }
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 245, 0.12) 0%, rgba(255, 250, 245, 0) 32%, rgba(255, 250, 245, 0.35) 72%, var(--bg) 100%),
    linear-gradient(90deg, rgba(255, 250, 245, 0.18), transparent 50%);
  pointer-events: none;
}

/* —— Scroll cue —— */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.35rem;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: #fff;
  filter: drop-shadow(0 6px 18px rgba(43, 33, 24, 0.35));
  transition: opacity 200ms ease, transform 200ms ease;
}

.scroll-cue:hover {
  color: #fff;
  transform: translateX(-50%) translateY(2px);
  opacity: 0.92;
}

.scroll-cue-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.9;
}

.scroll-cue-mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 6px;
  background: rgba(247, 148, 29, 0.18);
  backdrop-filter: blur(6px);
}

.scroll-cue-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  animation: scrollDot 1.6s cubic-bezier(0.45, 0, 0.4, 1) infinite;
}

@keyframes scrollDot {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateY(12px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 0;
  }
}

.scroll-cue-chevrons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: -2px;
}

.scroll-cue-chevrons span {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.85);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.85);
  transform: rotate(45deg);
  animation: scrollChevron 1.6s ease-in-out infinite;
}

.scroll-cue-chevrons span:nth-child(2) {
  animation-delay: 0.15s;
  opacity: 0.55;
}

@keyframes scrollChevron {
  0%,
  100% {
    opacity: 0.25;
    transform: rotate(45deg) translate(-2px, -2px);
  }
  50% {
    opacity: 1;
    transform: rotate(45deg) translate(0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue-dot,
  .scroll-cue-chevrons span {
    animation: none;
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--wide));
  margin: -3.5rem auto 0;
  padding: 0 0 2rem;
  display: grid;
  gap: 1.5rem;
  animation: rise 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(1.85rem, 4.4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 0.85rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-sub {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 36ch;
}

.hero-nostalgia {
  margin: 0.65rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.98rem, 1.8vw, 1.12rem);
  color: var(--orange-deep);
  max-width: 40ch;
}

.hero-grid {
  display: grid;
  gap: 1rem;
}

@media (max-width: 899px) {
  .hero-inner {
    margin-top: -2.25rem;
  }

  .hero-grid .subscribe-panel {
    order: -1;
  }

  .hero h1 {
    font-size: clamp(1.65rem, 7vw, 2.25rem);
  }
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
    gap: 1.25rem;
  }
}

/* —— Forms —— */
.subscribe-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.35rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: rise 1100ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both;
}

.subscribe-panel h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 450;
  margin: 0 0 0.35rem;
  color: var(--ink);
}

.subscribe-panel p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.subscribe-form {
  display: grid;
  gap: 0.65rem;
}

.subscribe-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.subscribe-form input {
  width: 100%;
  appearance: none;
  border: 1px solid rgba(224, 120, 0, 0.28);
  background: var(--bg-elevated);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  font: inherit;
  font-size: 0.95rem;
}

.subscribe-form input:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
  border-color: var(--orange);
}

.btn {
  appearance: none;
  border: 0;
  border-radius: var(--radius);
  background: var(--orange);
  color: #fff;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.btn:hover {
  background: var(--orange-deep);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.form-note {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}

.form-status {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  min-height: 1.2em;
}

.form-status.ok {
  color: #2f6b45;
}

.form-status.err {
  color: #9b2c2c;
}

.subscribe-light {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.subscribe-light h2 {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
  font-weight: 450;
}

.subscribe-light p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
}

.subscribe-light .subscribe-form input {
  border: 1px solid rgba(224, 120, 0, 0.28);
  background: var(--bg-elevated);
}

/* —— Content sections —— */
.section {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 3.5rem 0;
}

.section-wide {
  width: min(100% - 2rem, var(--wide));
}

.story {
  animation: rise 900ms cubic-bezier(0.22, 1, 0.36, 1) 180ms both;
}

.story p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0 0 1.15rem;
}

.story p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 3.2rem;
  float: left;
  line-height: 0.8;
  padding: 0.15rem 0.45rem 0 0;
  color: var(--orange);
}

.divider {
  width: 48px;
  height: 2px;
  background: var(--orange);
  margin: 0 auto 2.5rem;
  opacity: 0.85;
  border-radius: 2px;
}

.archive-header {
  text-align: center;
  margin-bottom: 2rem;
}

.archive-header h2 {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 0.5rem;
}

.archive-header p {
  margin: 0;
  color: var(--muted);
}

.archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.archive-item {
  border-bottom: 1px solid var(--line);
}

.archive-item a {
  display: grid;
  gap: 0.35rem;
  padding: 1.35rem 0.15rem;
  text-decoration: none;
  color: inherit;
  transition: padding-left 200ms ease, background 200ms ease;
}

.archive-item a:hover {
  padding-left: 0.5rem;
  background: linear-gradient(90deg, var(--orange-wash), transparent);
}

.archive-meta {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-deep);
}

.archive-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 450;
  line-height: 1.3;
  color: var(--ink);
}

.archive-excerpt {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

.archive-empty,
.archive-loading {
  text-align: center;
  color: var(--muted);
  padding: 2rem 0;
}

.cta-band {
  padding: 1rem 0 4.5rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1rem 2.75rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  background: var(--paper);
}

.site-footer p {
  margin: 0.25rem 0;
}

/* —— Note page —— */
.note-top {
  background:
    linear-gradient(180deg, #fff3e4 0%, var(--paper) 100%);
  color: var(--ink);
  padding: 2.5rem 1rem 2rem;
  border-bottom: 1px solid var(--line);
}

.note-top-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.note-top a.back {
  color: var(--orange-deep);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.note-top h1 {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin: 1rem 0 0.6rem;
  color: var(--ink);
}

.note-date {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.note-body {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 2.75rem 0 4rem;
}

.note-block {
  margin-bottom: 2.25rem;
}

.note-block h2 {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 1.45rem;
  margin: 0 0 1rem;
}

.note-block h3 {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 1.2rem;
  margin: 0 0 0.85rem;
  color: var(--orange-deep);
}

.note-block p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0 0 1rem;
}

.note-body blockquote {
  margin: 0 0 1.25rem;
  padding: 0.2rem 0 0.2rem 1.1rem;
  border-left: 3px solid var(--orange);
  background: linear-gradient(90deg, var(--orange-wash), transparent);
}

.note-body blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.note-body cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.note-signoff {
  margin-top: 1.5rem !important;
}

.note-signature {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink) !important;
  font-size: 1.15rem !important;
}

.note-prompt {
  font-weight: 500;
  color: var(--ink) !important;
}

/* —— Admin —— */
.admin-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.admin-workspace {
  width: min(100%, 760px);
  display: grid;
  gap: 1.25rem;
}

.admin-workspace .admin-panel.wide {
  width: 100%;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.admin-section-title {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 1.45rem;
  margin: 0 0 0.35rem;
  color: var(--ink);
}

.admin-check {
  display: flex !important;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.1rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 0.92rem !important;
  color: var(--ink-soft) !important;
  cursor: pointer;
}

.admin-check input {
  width: auto;
  margin: 0;
}

.admin-panel {
  width: min(100%, 560px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.admin-panel.wide {
  width: min(100%, 720px);
}

.admin-panel h1 {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 1.8rem;
  margin: 0 0 0.35rem;
  color: var(--orange-deep);
}

.admin-panel .lede {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-panel label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.9rem 0 0.35rem;
}

.admin-panel input,
.admin-panel textarea {
  width: 100%;
  border: 1px solid rgba(224, 120, 0, 0.28);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  padding: 0.85rem 0.95rem;
  font: inherit;
  color: var(--ink);
}

.admin-panel textarea {
  min-height: 280px;
  resize: vertical;
  line-height: 1.55;
}

.admin-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(224, 120, 0, 0.35);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--orange-wash);
}

.btn-danger {
  background: transparent;
  border: 1px solid rgba(155, 44, 44, 0.35);
  color: #9b2c2c;
  appearance: none;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 0.7rem 0.9rem;
  cursor: pointer;
}

.btn-danger:hover {
  background: rgba(155, 44, 44, 0.08);
}

.admin-hint {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--bg-elevated);
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
}

.admin-hint code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
}

.admin-note-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.admin-note-item {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.admin-note-item.is-archived {
  opacity: 0.72;
}

.admin-note-meta {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.admin-note-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--orange-wash);
  color: var(--orange-deep);
  font-size: 0.68rem;
}

.admin-note-item.is-archived .admin-note-badge {
  background: rgba(90, 70, 54, 0.1);
  color: var(--muted);
}

.admin-note-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.3;
}

.admin-note-excerpt {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.admin-note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-note-actions .btn,
.admin-note-actions .btn-ghost,
.admin-note-actions .btn-danger {
  padding: 0.65rem 0.85rem;
  font-size: 0.72rem;
}

.admin-note-empty {
  color: var(--muted);
  padding: 1rem 0;
}

.note-image-wrap {
  margin: 1.25rem 0;
}

.note-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.55rem;
}

.editor-toolbar button {
  appearance: none;
  border: 1px solid rgba(224, 120, 0, 0.3);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.55rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.editor-toolbar button:hover {
  background: var(--orange-wash);
  border-color: var(--orange);
}

.admin-email-box {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.admin-subsection {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 450;
  margin: 0 0 0.75rem;
  color: var(--orange-deep);
}

.admin-field-hint {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.admin-check {
  display: flex !important;
  align-items: center;
  gap: 0.55rem;
  margin: 0.85rem 0 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 0.92rem !important;
  color: var(--ink) !important;
  cursor: pointer;
}

.admin-check input {
  width: auto !important;
  margin: 0;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.admin-workspace {
  width: min(100%, 760px);
  display: grid;
  gap: 1.25rem;
}

.admin-workspace .admin-panel.wide {
  width: 100%;
}

.admin-section-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 450;
  margin: 0 0 0.35rem;
}

.admin-note-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.admin-note-item {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.admin-note-item.is-archived {
  opacity: 0.72;
}

.admin-note-meta {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.admin-note-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--orange-wash);
  color: var(--orange-deep);
  font-size: 0.68rem;
}

.admin-note-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.3;
}

.admin-note-excerpt {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.admin-note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-note-empty {
  color: var(--muted);
  padding: 0.5rem 0;
}

.btn-danger {
  background: transparent;
  border: 1px solid rgba(155, 44, 44, 0.35);
  color: #9b2c2c;
  appearance: none;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
}

.btn-danger:hover {
  background: rgba(155, 44, 44, 0.08);
}

@media (min-width: 720px) {
  .admin-note-item {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 720px) {
  .admin-note-item {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0.85rem 1rem;
  }

  .hero-media {
    min-height: 300px;
  }

  .hero-media img {
    object-position: center 12%;
  }

  .subscribe-panel,
  .hero-copy {
    padding: 1.15rem;
  }

  .section {
    padding: 2.75rem 0;
  }
}

/* —— Welcome popup + confetti —— */
.welcome-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(43, 33, 24, 0.42);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.welcome-modal.is-open {
  opacity: 1;
}

.welcome-modal.is-leaving {
  opacity: 0;
}

.welcome-modal__panel {
  width: min(100%, 420px);
  background:
    radial-gradient(420px 180px at 50% 0%, rgba(247, 148, 29, 0.18), transparent 60%),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(43, 33, 24, 0.18);
  padding: 1.75rem 1.5rem 1.4rem;
  text-align: center;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.welcome-modal.is-open .welcome-modal__panel {
  transform: translateY(0) scale(1);
}

.welcome-modal__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-deep);
  font-weight: 600;
}

.welcome-modal__panel h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(1.55rem, 4vw, 1.9rem);
  color: var(--ink);
  line-height: 1.2;
}

.welcome-modal__body {
  margin: 0 0 1.35rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
}

.welcome-modal__close {
  min-width: 11rem;
}

.confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  bottom: -12px;
  border-radius: 2px;
  opacity: 0.95;
  animation-name: confetti-burst;
  animation-timing-function: cubic-bezier(0.15, 0.75, 0.25, 1);
  animation-fill-mode: forwards;
}

.confetti-piece.is-round {
  border-radius: 50%;
}

@keyframes confetti-burst {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--drift), calc(-1 * var(--rise)), 0)
      rotate(var(--rot));
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-modal,
  .welcome-modal__panel {
    transition: none;
  }

  .confetti-piece {
    animation-duration: 1.1s !important;
  }
}
