@font-face {
  font-family: Manrope;
  src: url('/fonts/manrope.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url('/fonts/fraunces.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url('/fonts/fraunces-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #fffaf8;
  --white: #fff;
  --ink: #2e2030;
  --muted: #695c6a;
  --accent: #ac2c59;
  --accent-hover: #8e2047;
  --pink: #fce7ed;
  --border: #eadde3;
  --input-border: #cfc2cc;
  --display: Fraunces, Georgia, serif;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, a.button { cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 520; letter-spacing: -.045em; }
h3, legend { font-size: 19px; font-weight: 800; letter-spacing: -.025em; }
.shell { width: min(calc(100% - 56px), 1112px); margin-inline: auto; }
.top { min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 17px; font-weight: 800; letter-spacing: -.045em; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 11px; color: var(--accent); background: var(--pink); font-size: 21px; }
.top-link { font-size: 14px; font-weight: 750; text-decoration: none; padding: 6px 0; }
.top-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4.5vw, 64px);
  padding-block: 18px 44px;
  border-bottom: 1px solid var(--border);
}
.hero h1 { font-size: clamp(50px, 7.2vw, 100px); line-height: .98; }
.hero h1 em { color: var(--accent); font-weight: 480; }
.intro { max-width: 360px; margin-block: 24px; color: var(--muted); line-height: 1.65; font-size: clamp(16px, 1.5vw, 18px); }
.hero-photo { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 28px; background: #f3bfd2; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s, border-color .15s;
}
.primary { color: var(--white); background: var(--accent); }
.primary:hover:not(:disabled) { background: var(--accent-hover); }
.secondary { color: var(--ink); background: var(--white); border-color: var(--border); }
.secondary:hover:not(:disabled) { background: #fff2f5; border-color: #e4b9ca; }
.hero .primary { border-radius: 100px; min-height: 50px; padding-inline: 21px; }

.setup {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(225px, 1fr);
  align-items: start;
  gap: clamp(24px, 5vw, 72px);
  padding-block: 38px 76px;
  scroll-margin-top: 12px;
}
.setup h2 { font-size: clamp(32px, 4vw, 47px); line-height: 1.1; margin-bottom: 19px; }
.guide { border-radius: 20px; background: var(--pink); padding: 26px; margin-top: 70px; }
.guide dl { display: grid; gap: 14px; margin-top: 16px; }
.guide dl > div + div { border-top: 1px solid #e7c8d3; padding-top: 14px; }
.guide dt { font-size: 14px; font-weight: 800; }
.guide dd { color: var(--muted); font-size: 14px; line-height: 1.55; margin-top: 3px; }
.card {
  min-width: 0;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 6px 20px #48273706;
}
.card > h2, .card > h3 { margin-bottom: 8px; }
fieldset { min-inline-size: 0; border: 0; padding: 0; margin: 0; }
legend { padding: 0; margin-bottom: 14px; }
label { display: block; font-size: 14px; font-weight: 800; min-width: 0; }
small { color: var(--muted); font-weight: 550; margin-left: 4px; }
input, textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  margin: 6px 0 0;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  background: #fffcfc;
  color: var(--ink);
  font-size: 16px;
}
input:focus, textarea:focus { border-color: var(--accent); outline: 2px solid #f2c2d3; outline-offset: 1px; }
input::placeholder, textarea::placeholder { color: #796a7a; }
textarea { min-height: 175px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.verification-fields { display: grid; gap: 12px; margin-top: 15px; }
.verification-fields form { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.verification-fields label { flex: 1 1 160px; }
.section-line { height: 1px; background: var(--border); margin-block: 22px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.count { color: #85254a; background: var(--pink); border-radius: 50px; font-size: 12px; font-weight: 800; padding: 5px 10px; }
.subtle, .hint { color: var(--muted); font-size: 14px; line-height: 1.55; }
.participants-summary { margin: -6px 0 12px; }
.people { display: grid; gap: 9px; margin-bottom: 14px; }
.person-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) 44px; gap: 8px; }
.person-fields input { margin: 0; }
.remove { padding: 0; font-size: 20px; font-weight: 600; }
.remove:disabled { visibility: hidden; }
.person-fields:has(.remove:disabled) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); }
.form-end .button { margin-left: auto; }
.status { color: var(--muted); font-size: 14px; line-height: 1.55; }
.card > .status:not(:empty) { margin-top: 12px; }
.status.error { color: #982449; }

.dashboard { min-height: calc(100vh - 77px); padding-block: 18px 76px; }
.dashboard-banner { padding: clamp(22px, 5vw, 51px); border-radius: 24px; background: var(--pink); }
.eyebrow { color: #85254a; font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.dashboard h1 { font-size: clamp(41px, 7vw, 74px); line-height: 1.05; overflow-wrap: anywhere; }
.dashboard .meta { color: var(--muted); margin-top: 12px; font-size: 14px; }
.dashboard-grid, .organizer-grid { display: grid; align-items: start; gap: 18px; margin-top: 19px; }
.dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.organizer-grid { grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); grid-template-areas: "invitations organizer"; }
.organizer-side { grid-area: organizer; display: grid; gap: 18px; min-width: 0; }
.invitation-card { grid-area: invitations; }
.invitation-card > .hint { margin-top: 8px; }
.organizer-side .card > .button { margin-top: 14px; }
.dashboard-grid .recipient { background: #faedf2; }
.recipient h2 { font-size: clamp(31px, 4vw, 50px); line-height: 1.1; overflow-wrap: anywhere; }
.wishlist { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; margin-block: 14px 19px; }
.recipient-controls { justify-content: flex-start; }
.wishlist-title { font-size: 19px; letter-spacing: -.025em; }
.wishlist-title textarea { letter-spacing: normal; font-weight: 500; margin-top: 12px; }
.own-wishlist .hint { margin-block: 8px 15px; }
.roster { padding: 0; list-style: none; margin: 14px 0 0; border-top: 1px solid var(--border); }
.roster li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.roster li:last-child { border-bottom: 0; padding-bottom: 0; }
.roster-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.roster-person > div { min-width: 0; }
.roster strong, .roster small { display: block; overflow-wrap: anywhere; margin: 0; }
.roster strong { font-size: 15px; }
.avatar { display: grid; flex: 0 0 36px; place-items: center; width: 36px; height: 36px; border-radius: 100%; background: var(--pink); color: #85254a; font-size: 13px; font-weight: 800; }
.roster-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.dashboard-empty { padding-top: 40px; }
.dashboard-empty .status { margin-block: 12px; }
@media (max-width: 860px) {
  .organizer-grid { grid-template-columns: 1fr; grid-template-areas: "organizer" "invitations"; }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 34px); }
  .top { min-height: 66px; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding-block: 13px 24px; }
  .hero h1 { font-size: clamp(48px, 11vw, 79px); }
  .intro { margin-block: 16px 20px; }
  .hero-photo { aspect-ratio: 16 / 9; border-radius: 20px; }
  .setup, .dashboard-grid { grid-template-columns: 1fr; }
  .setup { padding-block: 28px 48px; }
  .guide { margin-top: 0; }
  .dashboard { padding-bottom: 48px; }
}
@media (max-width: 460px) {
  .person-fields, .person-fields:has(.remove:disabled) {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 6px;
  }
  .person-fields:has(.remove:disabled) { grid-template-columns: minmax(0, 1fr); }
  .person-fields:has(.remove:disabled) .remove { display: none; }
  .person-fields input { grid-column: 1; }
  .person-fields .remove { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .person-fields + .person-fields { margin-top: 3px; }
  .roster li { grid-template-columns: 1fr; }
  .roster-actions { padding-left: 46px; }
}
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }

/* Organizer onboarding and account pages */
.setup { display: block; }
.guide { margin-top: 0; }
.guide dl { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.guide dl > div + div { border-top: 0; border-left: 1px solid #e7c8d3; padding: 0 0 0 14px; }
.flow { max-width: 760px; min-height: calc(100vh - 77px); padding-block: 18px 68px; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-bottom: 2px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}
.step-number {
  flex: 0 0 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f3e9ee;
}
.steps li[aria-current] { border-color: var(--accent); color: var(--accent); }
.steps li[aria-current] .step-number { background: var(--accent); color: var(--white); }
.steps li.complete .step-number { color: #32664a; background: #e7f3eb; }
.flow-card h1 { font-size: clamp(33px, 5.5vw, 54px); line-height: 1.08; }
.flow-card > p, .verified-note { color: var(--muted); line-height: 1.55; margin-top: 12px; }
.auth-form { display: grid; gap: 15px; margin-top: 22px; }
.auth-form > .button { justify-self: start; }
.auth-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.text-link { color: var(--accent); padding-inline: 0; margin-top: 12px; }
.text-link:hover { text-decoration: underline; }
.verified-note { display: inline-block; margin: 0 0 16px; padding: 5px 11px; border-radius: 20px; background: #e7f3eb; color: #315b44; font-size: 13px; font-weight: 750; overflow-wrap: anywhere; }
.setup-flow .setup-form h2 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 16px; }
.account-banner { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px; }
.account-banner .meta { overflow-wrap: anywhere; }
.exchange-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.exchange-item { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.exchange-item h2 { font-size: clamp(24px, 4vw, 34px); overflow-wrap: anywhere; }
.exchange-empty { margin-top: 20px; }
.account-legacy { margin-top: 16px; }
@media (max-width: 700px) {
  .guide dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide dl > div + div { padding: 0; border: 0; }
}
@media (max-width: 460px) {
  .steps { gap: 5px; }
  .steps li { align-items: flex-start; flex-direction: column; padding: 6px 3px; line-height: 1.25; font-size: 12px; }
  .step-number { flex-basis: auto; width: 23px; height: 23px; }
}

@font-face {
  font-family: 'Noto Sans Armenian';
  src: url('/fonts/noto-sans-armenian.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0530-058F, U+FB13-FB17;
}
:root:lang(hy) {
  --display: Fraunces, 'Noto Sans Armenian', Georgia, serif;
  font-family: Manrope, 'Noto Sans Armenian', system-ui, sans-serif;
}
:lang(hy) .hero h1 { font-size: clamp(35px, 4.9vw, 64px); line-height: 1.17; }
:lang(hy) .hero h1 em { font-style: normal; }
:lang(hy) .eyebrow { line-height: 1.45; }
.top-controls { display: flex; align-items: center; justify-content: flex-end; gap: clamp(8px, 2vw, 18px); }
#language-picker {
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  min-height: 36px;
  padding: 5px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 450px) {
  .top { gap: 7px; }
  .brand { font-size: 14px; gap: 5px; }
  .brand-mark { width: 25px; height: 25px; font-size: 17px; flex: 0 0 auto; }
  .top-link { font-size: 12px; }
  .top-controls { gap: 7px; }
}

.faq { padding-bottom: 52px; }
.faq h2 { margin-bottom: 16px; font-size: clamp(28px, 4.5vw, 42px); }
.faq details { border-top: 1px solid var(--border); padding-block: 14px; }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 800; line-height: 1.5; }
.faq details p { max-width: 680px; color: var(--muted); margin-top: 9px; line-height: 1.65; }
.site-footer { display: flex; gap: 16px; padding-block: 18px 28px; border-top: 1px solid var(--border); }
.site-footer a { color: var(--muted); font-size: 14px; text-underline-offset: 3px; }
