/* Everyone's Album — one stylesheet for the marketing site and the app. */

:root {
  --cream: #f7f1e7;
  --paper: #fffaf2;
  --ink: #1e2a24;
  --ink-soft: #3c473f;
  --muted: #6d766c;
  --line: rgba(30, 42, 36, 0.14);
  --line-strong: rgba(30, 42, 36, 0.26);
  --terra: #a64b2a;
  --terra-dark: #82371c;
  --terra-soft: #f0d9cd;
  --sage: #89977e;
  --sage-soft: #dfe5d8;
  --gold: #c7a268;
  --white: #fffdf9;
  --shadow-sm: 0 2px 8px rgba(40, 32, 23, 0.06);
  --shadow-md: 0 18px 50px rgba(40, 32, 23, 0.12);
  --shadow-lg: 0 30px 90px rgba(40, 32, 23, 0.18);
  --radius: 18px;
  --radius-lg: 28px;
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1180px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(199, 162, 104, 0.09), transparent 36%),
    radial-gradient(circle at 85% 22%, rgba(166, 75, 42, 0.06), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(137, 151, 126, 0.1), transparent 40%);
}

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

a {
  color: inherit;
  text-decoration-color: rgba(166, 75, 42, 0.4);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

h1 {
  font-size: clamp(3rem, 6.4vw, 5.4rem);
}

h2 {
  font-size: clamp(2.25rem, 4.4vw, 3.6rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.16;
}

em {
  font-style: italic;
}

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--terra-soft);
  color: var(--terra-dark);
}

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 8px;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

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

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.19em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--terra-dark);
}

.muted {
  color: var(--muted);
}

.center {
  text-align: center;
}

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--terra);
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 620;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(130, 55, 28, 0.18);
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.button:hover {
  background: var(--terra-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(130, 55, 28, 0.24);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}

.button.secondary:hover {
  background: rgba(30, 42, 36, 0.055);
  border-color: var(--ink);
}

.button.small {
  min-height: 42px;
  padding: 9px 17px;
  font-size: 0.88rem;
}

.button.danger {
  background: #8e2f25;
}

.button.ghost-light {
  border-color: rgba(255, 250, 242, 0.35);
  color: var(--paper);
  background: transparent;
  box-shadow: none;
}

.button.ghost-light:hover {
  background: rgba(255, 250, 242, 0.1);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  font-size: 0.95rem;
  font-weight: 620;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}

.text-link:hover {
  border-color: var(--ink);
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 620;
  transition: background 0.15s ease;
}

.copy-button:hover {
  background: #f4eadb;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(247, 241, 231, 0.86);
  backdrop-filter: blur(14px);
  transition: border-color 0.2s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 1.34rem;
  line-height: 1;
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand em {
  color: var(--terra);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(166, 75, 42, 0.35);
  border-radius: 50%;
  color: var(--terra);
  font-family: var(--display);
  font-size: 0.88rem;
  font-style: italic;
  letter-spacing: -0.05em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9rem;
  font-weight: 580;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
}

.nav a:not(.button):hover {
  color: var(--terra-dark);
}

.nav .button {
  min-height: 43px;
  padding: 9px 18px;
  font-size: 0.88rem;
}

/* ---------- landing hero ---------- */

.hero {
  position: relative;
  overflow: clip;
  padding: clamp(56px, 8vw, 96px) 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-bottom: 40px;
}

.hero h1 {
  max-width: 11ch;
  margin-bottom: 24px;
}

.hero h1 em {
  color: var(--terra);
}

.lede {
  max-width: 46ch;
  margin-bottom: 30px;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.65;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  margin-bottom: 20px;
}

.micro {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-art {
  position: relative;
  min-height: 560px;
}

.collage {
  position: absolute;
  inset: 0;
  transform: translateY(-10px);
}

.photo-card {
  position: absolute;
  width: 46%;
  padding: 9px;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(30, 42, 36, 0.07);
}

.photo-card .scene {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  background: #d9cbb7;
}

.photo-card .scene svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.photo-card > span {
  display: block;
  padding: 10px 4px 11px;
  font-family: var(--display);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ink-soft);
  text-align: center;
}

.card-a {
  left: 2%;
  top: 6%;
  transform: rotate(-6deg);
  z-index: 2;
}

.card-b {
  right: 1%;
  top: 0;
  transform: rotate(4.5deg);
  z-index: 1;
}

.card-c {
  left: 13%;
  top: 42%;
  transform: rotate(2deg);
  z-index: 3;
}

.card-d {
  right: 4%;
  top: 48%;
  transform: rotate(-3.6deg);
  z-index: 2;
}

.scene.scene-dance {
  background:
    radial-gradient(circle at 70% 24%, rgba(255, 233, 188, 0.9), transparent 30%),
    linear-gradient(160deg, #8f5f4a 0%, #c08460 44%, #3d3a30 100%);
}

.scene.scene-table {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 241, 205, 0.5), transparent 34%),
    linear-gradient(150deg, #6e7d66 0%, #a8aa8d 48%, #40483a 100%);
}

.scene.scene-bouquet {
  background:
    radial-gradient(circle at 62% 30%, rgba(255, 220, 218, 0.55), transparent 35%),
    linear-gradient(145deg, #d8b7a9 0%, #b87967 52%, #5a423c 100%);
}

.scene.scene-confetti {
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 231, 171, 0.35), transparent 32%),
    linear-gradient(150deg, #2f4038 0%, #44584a 55%, #1f2a24 100%);
}

.float-card {
  position: absolute;
  left: -2%;
  bottom: -2%;
  z-index: 5;
  width: 196px;
  padding: 16px 17px;
  border-radius: 18px;
  background: rgba(255, 250, 242, 0.97);
  border: 1px solid rgba(30, 42, 36, 0.08);
  box-shadow: var(--shadow-md);
}

.float-kicker {
  display: block;
  margin-bottom: 4px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.float-card strong {
  display: block;
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
}

.float-card > span:not(.float-kicker) {
  font-size: 0.78rem;
  color: var(--muted);
}

.avatar-row {
  display: flex;
  margin-top: 11px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: -6px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--ink);
  font-size: 0.59rem;
  font-weight: 700;
}

.avatar:first-child {
  margin-left: 0;
}

.avatar:nth-child(2) {
  background: var(--terra-soft);
}

.avatar:nth-child(3) {
  background: #eadfc4;
}

.avatar.more {
  background: var(--ink);
  color: var(--paper);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  margin: 34px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.83rem;
}

.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.trust-row svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--sage);
}

/* ---------- sections ---------- */

.section {
  padding: clamp(74px, 10vw, 130px) 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: clamp(38px, 6vw, 62px);
}

.section-head.center {
  margin-inline: auto;
}

.section-head h2 {
  margin-bottom: 18px;
}

.section-head p {
  max-width: 54ch;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.problem {
  padding-bottom: clamp(60px, 8vw, 100px);
}

.problem-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}

.pullquote {
  position: sticky;
  top: 120px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 3.3vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.pullquote em {
  color: var(--terra);
}

.problem-copy {
  padding-top: 6px;
}

.problem-copy p {
  max-width: 57ch;
  color: var(--ink-soft);
}

.problem-copy p:first-child {
  font-size: 1.08rem;
  color: var(--ink);
}

.how {
  background: var(--ink);
  color: var(--paper);
}

.how .eyebrow {
  color: #d6b48b;
}

.how .section-head p {
  color: rgba(255, 250, 242, 0.72);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 250, 242, 0.18);
}

.step {
  padding: 34px 28px 0 0;
}

.step + .step {
  padding-left: 28px;
  border-left: 1px solid rgba(255, 250, 242, 0.18);
}

.step-number {
  display: block;
  margin-bottom: 20px;
  font-family: var(--display);
  font-size: 0.95rem;
  font-style: italic;
  color: #d6b48b;
}

.step h3 {
  margin-bottom: 12px;
  color: var(--paper);
}

.step p {
  margin: 0;
  color: rgba(255, 250, 242, 0.7);
  font-size: 0.94rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature {
  padding: 34px 38px 34px 0;
  border-bottom: 1px solid var(--line);
}

.feature:nth-child(even) {
  padding-left: 38px;
  border-left: 1px solid var(--line);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--ink);
}

.feature-icon svg {
  width: 21px;
  height: 21px;
}

.feature h3 {
  margin-bottom: 10px;
}

.feature p {
  max-width: 44ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.moment {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(42px, 7vw, 90px);
  align-items: center;
}

.moment-copy h2 {
  margin-bottom: 20px;
}

.moment-copy p {
  color: var(--ink-soft);
}

.moment-list {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 13px;
}

.moment-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.moment-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--terra);
  transform: translateY(-2px);
}

.mock-browser {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transform: rotate(1.4deg);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: #f6ecdd;
}

.mock-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(30, 42, 36, 0.18);
}

.mock-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
}

.mock-head strong {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.mock-head span {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 0 10px 10px;
}

.mock-tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 7px;
  background: #d8d0c1;
}

.mock-tile svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.faq {
  max-width: 880px;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.8vw, 1.42rem);
  letter-spacing: -0.015em;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  max-width: 68ch;
  margin: -2px 0 26px;
  padding-right: 50px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 112px) 0;
  background: var(--terra);
  color: var(--paper);
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 250, 242, 0.18);
  pointer-events: none;
}

.cta-band::before {
  width: 520px;
  height: 520px;
  right: -130px;
  top: -220px;
}

.cta-band::after {
  width: 720px;
  height: 720px;
  left: -260px;
  bottom: -520px;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 42px;
}

.cta-inner h2 {
  max-width: 13ch;
  margin: 0;
  color: var(--paper);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 6px;
}

.cta-actions .button {
  background: var(--paper);
  color: var(--terra-dark);
  box-shadow: none;
}

.cta-actions .button:hover {
  background: #fff;
}

.cta-actions .micro {
  color: rgba(255, 250, 242, 0.72);
}

/* ---------- footer ---------- */

.site-footer {
  padding: 58px 0 34px;
  border-top: 1px solid var(--line);
  background: var(--cream);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 34px 60px;
}

.footer-brand p {
  max-width: 32ch;
  margin: 14px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  font-size: 0.85rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-soft);
}

.footer-links a:hover {
  color: var(--terra-dark);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--muted);
}

/* ---------- generic form / app chrome ---------- */

.app-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
}

.app-header {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 241, 231, 0.9);
  backdrop-filter: blur(12px);
}

.app-header .header-inner {
  min-height: 68px;
}

.app-main {
  flex: 1;
  padding: clamp(36px, 5vw, 62px) 0 80px;
}

.app-wrap {
  width: min(1040px, calc(100% - 40px));
  margin-inline: auto;
}

.app-wrap.narrow {
  width: min(680px, calc(100% - 40px));
}

.app-title {
  margin-bottom: 12px;
  font-size: clamp(2.3rem, 4vw, 3.4rem);
}

.app-lede {
  max-width: 58ch;
  margin-bottom: 30px;
  color: var(--ink-soft);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.panel-pad {
  padding: clamp(22px, 3.5vw, 36px);
}

.field {
  margin-bottom: 20px;
}

.field:last-child {
  margin-bottom: 0;
}

.field label,
.field .label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.83rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.field .optional {
  font-weight: 400;
  color: var(--muted);
}

.input,
.textarea,
.select {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fffdf8;
  color: var(--ink);
  font-size: 0.98rem;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.textarea {
  min-height: 110px;
  resize: vertical;
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--terra);
  box-shadow: 0 0 0 3px rgba(166, 75, 42, 0.13);
}

.input::placeholder,
.textarea::placeholder {
  color: #9a9d93;
}

.hint {
  margin: 7px 0 0;
  font-size: 0.77rem;
  color: var(--muted);
}

.field-error {
  display: none;
  margin: 7px 0 0;
  font-size: 0.78rem;
  color: #9a3128;
}

.field-error.is-visible {
  display: block;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.check-row input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--terra);
  flex: none;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 26px;
}

.form-error {
  display: none;
  margin: 18px 0 0;
  padding: 12px 15px;
  border: 1px solid #d8aaa2;
  border-radius: 10px;
  background: #fbebe7;
  color: #7f2a22;
  font-size: 0.88rem;
}

.form-error.is-visible {
  display: block;
}

.form-success[hidden] {
  display: none;
}

.divider {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.small-note {
  font-size: 0.78rem;
  color: var(--muted);
}

.error-banner {
  padding: 14px 16px;
  border: 1px solid #d8aaa2;
  border-radius: 10px;
  background: #fbebe7;
  color: #7f2a22;
  font-size: 0.9rem;
}

/* ---------- create page ---------- */

.create-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: start;
}

.create-aside {
  padding-top: 8px;
}

.create-aside .side-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
}

.side-card h2 {
  font-size: 1.7rem;
  margin-bottom: 16px;
}

.side-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 13px;
  font-size: 0.89rem;
  color: rgba(255, 250, 242, 0.78);
}

.side-list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.side-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: #d6b48b;
  transform: translateY(-2px);
}

.recent {
  margin-top: 22px;
}

.recent:empty {
  display: none;
}

.recent h2 {
  margin-bottom: 12px;
  font-family: var(--body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.recent-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.recent-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  text-decoration: none;
  font-size: 0.88rem;
}

.recent-list a:hover {
  border-color: var(--line-strong);
}

.recent-list span {
  color: var(--muted);
  font-size: 0.75rem;
}

/* ---------- success / share ---------- */

.success-panel {
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

.success-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--ink);
}

.success-icon svg {
  width: 26px;
  height: 26px;
}

.success-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
}

.link-block {
  margin-top: 24px;
}

.link-block h3 {
  margin-bottom: 9px;
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.link-row {
  display: flex;
  gap: 8px;
}

.link-row .input {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.qr-box {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 22px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
}

.qr-code {
  flex: none;
  width: 132px;
  height: 132px;
  padding: 6px;
  border-radius: 6px;
  background: #fff;
}

.qr-code svg {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-copy p {
  margin: 0 0 7px;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.qr-copy strong {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 400;
}

.warning-box {
  margin-top: 22px;
  padding: 13px 15px;
  border-radius: 10px;
  background: #f6ead9;
  color: #6b4c2b;
  font-size: 0.83rem;
}

/* ---------- admin album ---------- */

.album-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px 40px;
  margin-bottom: 30px;
}

.album-title {
  margin-bottom: 6px;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
}

.album-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.album-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
}

.stat {
  padding: 17px 20px;
  background: var(--paper);
}

.stat-kicker {
  display: block;
  margin-bottom: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat strong {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.1;
}

.share-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  margin-bottom: 32px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.share-main h2 {
  margin: 0 0 4px;
  font-family: var(--body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.share-url {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-qr {
  width: 104px;
  height: 104px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.share-qr svg {
  width: 100%;
  height: 100%;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.switch input {
  position: relative;
  width: 40px;
  height: 23px;
  margin: 0;
  appearance: none;
  border-radius: 999px;
  background: #cfc8ba;
  transition: background 0.18s ease;
  cursor: pointer;
}

.switch input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(30, 42, 36, 0.25);
  transition: transform 0.18s ease;
}

.switch input:checked {
  background: var(--sage);
}

.switch input:checked::after {
  transform: translateX(17px);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.photo-tile {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #e6ddcd;
  cursor: zoom-in;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.photo-tile:hover img {
  transform: scale(1.035);
}

.photo-tile .tile-name {
  position: absolute;
  inset: auto 0 0;
  padding: 22px 9px 8px;
  color: #fff;
  font-size: 0.67rem;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(transparent, rgba(20, 26, 22, 0.66));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.photo-tile:hover .tile-name,
.photo-tile:focus-visible .tile-name {
  opacity: 1;
}

.photo-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.25), transparent),
    #ded4c3;
  color: var(--muted);
  text-align: center;
}

.photo-placeholder svg {
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
  opacity: 0.65;
}

.photo-placeholder span {
  font-size: 0.66rem;
  overflow-wrap: anywhere;
}

.empty-state {
  padding: clamp(34px, 7vw, 66px) 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  text-align: center;
  color: var(--muted);
}

.empty-state h2 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.8rem;
}

.empty-state p {
  max-width: 44ch;
  margin: 0 auto;
}

.empty-state .button {
  margin-top: 20px;
}

.settings-zone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.settings-zone p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 340px);
  background: #121814;
  color: var(--paper);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 26px;
}

.lightbox-img-wrap {
  display: grid;
  place-items: center;
  width: 100%;
  max-height: calc(100vh - 120px);
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: calc(100vh - 130px);
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-placeholder {
  display: grid;
  place-items: center;
  width: min(70vw, 460px);
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  background: #2d3a32;
  color: rgba(255, 250, 242, 0.6);
  text-align: center;
  padding: 30px;
  font-size: 0.86rem;
}

.lightbox-nav {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.lightbox-nav button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 250, 242, 0.25);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  font-size: 1rem;
}

.lightbox-nav button:hover {
  background: rgba(255, 250, 242, 0.1);
}

.lightbox-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px 28px;
  border-left: 1px solid rgba(255, 250, 242, 0.14);
  overflow-y: auto;
}

.lightbox-info h2 {
  margin: 0;
  font-size: 1.5rem;
  overflow-wrap: anywhere;
}

.lightbox-meta {
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 0.8rem;
  color: rgba(255, 250, 242, 0.68);
}

.lightbox-meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 250, 242, 0.12);
}

.lightbox-meta dt {
  color: rgba(255, 250, 242, 0.5);
}

.lightbox-meta dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

.lightbox-actions {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 250, 242, 0.25);
  border-radius: 50%;
  background: rgba(20, 26, 22, 0.5);
  color: var(--paper);
  font-size: 1.2rem;
}

.lightbox-close:hover {
  background: rgba(255, 250, 242, 0.13);
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(92vw, 420px);
  transform: translateX(-50%);
  pointer-events: none;
}

.toast-item {
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.83rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  animation: toast-in 0.2s ease both;
}

.toast-item.error {
  background: #862d23;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ---------- guest upload ---------- */

.guest-body {
  background:
    radial-gradient(circle at 50% -10%, rgba(199, 162, 104, 0.18), transparent 40%),
    var(--cream);
}

.guest-header {
  padding: 20px 0;
  text-align: center;
}

.guest-header .brand {
  justify-content: center;
}

.guest-main {
  width: min(620px, calc(100% - 36px));
  margin: 0 auto;
  padding: 10px 0 70px;
}

.guest-card {
  padding: clamp(24px, 5.5vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

.guest-intro {
  text-align: center;
  margin-bottom: 26px;
}

.guest-intro h1 {
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 7vw, 3rem);
  line-height: 1.02;
}

.guest-intro p {
  max-width: 42ch;
  margin-inline: auto;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.guest-count {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 600;
}

.upload-zone {
  position: relative;
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 188px;
  padding: 24px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 14px;
  background: #fdf7ed;
  text-align: center;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.upload-zone:hover,
.upload-zone.is-over {
  border-color: var(--terra);
  background: #fbf0e4;
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--terra-soft);
  color: var(--terra-dark);
}

.upload-icon svg {
  width: 22px;
  height: 22px;
}

.upload-zone strong {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 400;
}

.upload-zone span {
  font-size: 0.78rem;
  color: var(--muted);
}

.upload-hint {
  margin: 10px 0 0;
  font-size: 0.72rem;
  text-align: center;
  color: var(--muted);
}

.previews {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 16px;
}

.previews:empty {
  display: none;
}

.preview-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #e9dfd0;
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item .remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 26, 22, 0.7);
  color: #fff;
  font-size: 0.85rem;
  line-height: 1;
}

.preview-item .status {
  position: absolute;
  inset: auto 0 0;
  padding: 4px 5px;
  background: rgba(20, 26, 22, 0.65);
  color: #fff;
  font-size: 0.58rem;
  text-align: center;
}

.preview-item.done .status {
  background: rgba(70, 104, 71, 0.85);
}

.preview-item.failed .status {
  background: rgba(140, 45, 36, 0.88);
}

.upload-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.progress {
  overflow: hidden;
  height: 7px;
  margin-top: 18px;
  border-radius: 999px;
  background: #e6ddcd;
}

.progress[hidden] {
  display: none;
}

.progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--terra);
  transition: width 0.18s ease;
}

.upload-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
}

.thank-you {
  text-align: center;
  padding: 18px 0 8px;
}

.thank-you .success-icon {
  margin-inline: auto;
}

.thank-you h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 5vw, 2.7rem);
}

.thank-you p {
  max-width: 38ch;
  margin: 0 auto 22px;
  color: var(--ink-soft);
}

.pin-panel {
  text-align: center;
}

.pin-panel h2 {
  margin-bottom: 10px;
  font-size: 2rem;
}

.pin-panel p {
  margin-bottom: 22px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.pin-form {
  display: flex;
  gap: 8px;
  max-width: 300px;
  margin: 0 auto;
}

.pin-form .input {
  text-align: center;
  font-size: 1.25rem;
  letter-spacing: 0.35em;
  font-family: var(--mono);
}

.pin-form .button {
  flex: none;
  padding-inline: 18px;
}

.guest-footer {
  padding-bottom: 30px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
}

.guest-footer a {
  color: var(--muted);
}

.paused-panel {
  text-align: center;
  padding: 24px 14px;
}

.paused-panel h2 {
  margin-bottom: 10px;
  font-size: 2rem;
}

.paused-panel p {
  max-width: 38ch;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ---------- print sheet ---------- */

.print-sheet {
  display: none;
}

@media print {
  body.printing > *:not(.print-sheet) {
    display: none !important;
  }

  body.printing .print-sheet {
    display: block;
    padding: 54pt 42pt;
    color: #1e2a24;
  }

  .print-sheet .print-brand {
    font-family: var(--display);
    font-size: 13pt;
    letter-spacing: -0.02em;
    margin-bottom: 34pt;
  }

  .print-sheet .print-card {
    border: 1.5pt solid #1e2a24;
    border-radius: 18pt;
    padding: 30pt;
    text-align: center;
  }

  .print-sheet h1 {
    font-size: 30pt;
    margin-bottom: 8pt;
  }

  .print-sheet .print-sub {
    font-size: 11pt;
    color: #5f6a61;
    margin-bottom: 20pt;
  }

  .print-sheet .print-qr {
    width: 230pt;
    height: 230pt;
    margin: 0 auto 18pt;
  }

  .print-sheet .print-qr svg {
    width: 100%;
    height: 100%;
  }

  .print-sheet .print-url {
    font-family: var(--mono);
    font-size: 8pt;
    overflow-wrap: anywhere;
    color: #5f6a61;
  }

  .print-sheet .print-instructions {
    margin-top: 22pt;
    font-size: 12pt;
    line-height: 1.5;
  }
}

/* ---------- support / privacy / error ---------- */

.prose {
  max-width: 720px;
}

.prose h2 {
  margin: 42px 0 12px;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

.prose h2:first-of-type {
  margin-top: 30px;
}

.prose h3 {
  margin: 28px 0 8px;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 700;
}

.prose p,
.prose li {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.prose ul {
  padding-left: 20px;
}

.prose li {
  margin-bottom: 7px;
}

.prose code {
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(30, 42, 36, 0.07);
  font-family: var(--mono);
  font-size: 0.84em;
}

.error-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 30px;
  text-align: center;
}

.error-page main {
  max-width: 520px;
}

.error-page h1 {
  margin-bottom: 14px;
}

.error-page p {
  color: var(--ink-soft);
}

.error-page .button {
  margin-top: 20px;
}

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .hero-art {
    min-height: 470px;
  }

  .float-card {
    left: 0;
    bottom: 2%;
    width: 176px;
  }

  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .nav a:not(.button) {
    display: none;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-copy {
    padding-bottom: 10px;
  }

  .hero h1 {
    max-width: 14ch;
  }

  .hero-art {
    min-height: 0;
    width: min(100%, 560px);
    margin: 26px auto 0;
  }

  .collage {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    transform: none;
  }

  .photo-card {
    position: relative;
    inset: auto;
    width: auto;
    transform: none;
  }

  .card-b,
  .card-d {
    transform: translateY(22px);
  }

  .float-card {
    position: relative;
    left: auto;
    bottom: auto;
    width: auto;
    grid-column: 1 / -1;
    margin-top: 24px;
  }

  .problem-grid,
  .moment,
  .create-layout {
    grid-template-columns: 1fr;
  }

  .pullquote {
    position: static;
  }

  .how-grid {
    grid-template-columns: 1fr;
    border-top: 0;
  }

  .step {
    padding: 26px 0;
    border-top: 1px solid rgba(255, 250, 242, 0.18);
  }

  .step + .step {
    padding-left: 0;
    border-left: 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature,
  .feature:nth-child(even) {
    padding: 26px 0;
    border-left: 0;
  }

  .cta-inner {
    display: block;
  }

  .cta-actions {
    margin-top: 26px;
  }

  .create-layout {
    gap: 32px;
  }

  .create-aside {
    padding-top: 0;
  }

  .lightbox {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .lightbox-info {
    border-left: 0;
    border-top: 1px solid rgba(255, 250, 242, 0.14);
  }

  .lightbox-figure {
    padding: 18px;
  }

  .lightbox-img-wrap img {
    max-height: 56vh;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .wrap {
    width: calc(100% - 32px);
  }

  .header-inner {
    min-height: 64px;
  }

  .brand {
    font-size: 1.16rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .nav .button {
    min-height: 38px;
    padding: 7px 13px;
    font-size: 0.8rem;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .trust-row {
    gap: 9px 20px;
    font-size: 0.76rem;
  }

  .section {
    padding: 62px 0;
  }

  .galleries {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stat {
    padding: 13px 16px;
  }

  .share-panel {
    grid-template-columns: 1fr;
  }

  .share-qr {
    display: none;
  }

  .album-actions {
    width: 100%;
  }

  .album-actions .button {
    flex: 1;
  }

  .settings-zone {
    display: block;
  }

  .settings-zone .button {
    margin-top: 14px;
  }

  .recent-list a {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .qr-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .qr-code {
    width: 116px;
    height: 116px;
  }

  .field .input,
  .field .textarea {
    font-size: 16px;
  }

  .lightbox-info {
    padding: 22px 18px;
  }

  .lightbox-close {
    top: 10px;
    right: 12px;
  }

  .app-main {
    padding-top: 28px;
  }

  .previews {
    grid-template-columns: repeat(3, 1fr);
  }

  .pin-form {
    flex-direction: column;
  }

  .pin-form .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* small utility classes used instead of inline styles (CSP-safe) */

.mt-4 {
  margin-top: 16px;
}

.side-eyebrow {
  color: #d6b48b;
}

.pin-error {
  text-align: center;
}

.lightbox-eyebrow {
  color: #d6b48b;
}

.footer-flush {
  margin-top: 0;
  border-top: 0;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.preview-item.no-preview {
  display: grid;
  place-items: center;
  padding: 5px;
}

.preview-item .fallback {
  color: var(--muted);
  font-size: 0.58rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-align: center;
}

.photo-tile .photo-placeholder div {
  display: grid;
  place-items: center;
}
