/* ─── Angelli Nguyen Photography · Wedding Portal ──────────────────────────
   Editorial ivory. Serif display, hairline rules, generous air.
   Deliberately a different world from the commercial client portal.
   ------------------------------------------------------------------------ */

:root {
  --ivory:      #fbf8f3;
  --paper:      #fffdfa;
  --ink:        #2a2622;
  --ink-soft:   #6b635a;
  --ink-faint:  #9a9188;
  --rule:       #e6ded2;
  --rule-soft:  #f0e9df;
  --accent:     #9a8467;
  --accent-dp:  #7d684d;
  --blush:      #f4ece3;
  --sage:       #eef0e9;
  --serif: 'Iowan Old Style', 'Hoefler Text', 'Apple Garamond', Baskerville, 'Palatino Linotype', Palatino, 'Times New Roman', Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1, 'onum' 1;
}

a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); transition: border-color .25s ease, color .25s ease; }
a:hover { border-color: var(--accent); color: var(--accent-dp); }
a.plain { border-bottom: 0; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.center { text-align: center; }

/* ─── Typography ─────────────────────────────────────────────────────────── */

.label {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin: 0 0 .85rem;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; margin: 0 0 1rem; }
h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); line-height: 1.14; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.22; }
h3 { font-size: 1.2rem; line-height: 1.3; }

.display {
  font-size: clamp(2.3rem, 8.5vw, 5.1rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  margin: 0;
  /* Flex-wrap so two long names stack on a phone instead of overflowing. */
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  overflow-wrap: break-word;
}
.display .n { white-space: nowrap; }
.display .amp {
  font-style: italic;
  color: var(--accent);
  padding: 0 .12em;
  font-size: .86em;
}

.lede { font-size: 1.12rem; line-height: 1.66; color: var(--ink-soft); max-width: 46ch; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ─── Header ─────────────────────────────────────────────────────────────── */

.w-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(251, 248, 243, .88);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--rule-soft);
  transition: transform .34s cubic-bezier(.4,0,.2,1);
}
.w-header.hidden { transform: translateY(-102%); }
.w-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.05rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.w-mark {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 0;
}
.w-nav { display: flex; gap: 1.9rem; flex-wrap: wrap; }
.w-nav a {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 0;
  position: relative;
  padding: .25rem 0;
}
.w-nav a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
}
.w-nav a:hover { color: var(--ink); }
.w-nav a:hover::after, .w-nav a[aria-current="page"]::after { transform: scaleX(1); }
.w-nav a[aria-current="page"] { color: var(--ink); }

/* ─── Layout ─────────────────────────────────────────────────────────────── */

.w-main { max-width: 1240px; margin: 0 auto; padding: 2.25rem 2rem 4rem; }
.w-main > section { animation: rise .7s cubic-bezier(.22,.61,.36,1) both; }
.w-main > section:nth-child(1) { animation-delay: .04s; }
.w-main > section:nth-child(2) { animation-delay: .12s; }
.w-main > section:nth-child(3) { animation-delay: .2s; }
.w-main > section:nth-child(4) { animation-delay: .28s; }
.w-main > section:nth-child(5) { animation-delay: .36s; }
.w-main > section:nth-child(6) { animation-delay: .44s; }
.w-main > section:nth-child(7) { animation-delay: .52s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .w-main > section { animation: none; } }

section + section { margin-top: 2.4rem; }

/* ─── Hero ───────────────────────────────────────────────────────────────── */

.hero { text-align: center; padding: 1.25rem 0 0; }

.page-head {
  display: grid; grid-template-columns: 1fr; gap: .5rem 3rem; align-items: end;
  border-bottom: 1px solid var(--rule); padding-bottom: 1.1rem;
}
@media (min-width: 900px) { .page-head { grid-template-columns: 1.05fr .95fr; } }
.page-head h1 { margin: 0; font-size: clamp(1.85rem, 3.2vw, 2.5rem); }
.page-head .label { margin-bottom: .5rem; }
.page-head .lede { font-size: 1rem; max-width: 54ch; margin: 0; padding-bottom: .3rem; }
.hero .kicker {
  font-family: var(--sans);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.3rem;
}
.hero-meta {
  margin-top: 1.15rem;
  text-wrap: balance;
  font-size: 1.02rem;
  letter-spacing: .04em;
  color: var(--ink-soft);
}
.hero-meta .dot { color: var(--rule); padding: 0 .6rem; }

.rule-ornament {
  display: flex; align-items: center; justify-content: center;
  gap: .9rem; margin: 1.5rem auto; max-width: 220px;
  color: var(--accent);
}
.rule-ornament::before, .rule-ornament::after {
  content: ''; flex: 1; height: 1px; background: var(--rule);
}
.rule-ornament span { font-size: .8rem; letter-spacing: .3em; }

.countdown { margin-top: 1.1rem; }
.countdown .num {
  font-size: clamp(2.4rem, 6vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  display: block;
}
.countdown .unit {
  font-family: var(--sans);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: .6rem; display: block;
}

/* ─── Cards ──────────────────────────────────────────────────────────────── */

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: clamp(1.4rem, 2.6vw, 2rem);
}
.card + .card { margin-top: 1.1rem; }
.card-compact { padding: 1.25rem 1.35rem; }
.card-compact h3 { font-size: 1.06rem; line-height: 1.3; margin-bottom: .4rem; }
.card-compact p { font-size: .92rem; line-height: 1.5; }
.card-quiet { background: transparent; border-style: solid; border-color: var(--rule-soft); }
.card-blush { background: var(--blush); border-color: #e9ddcf; }
.card-sage  { background: var(--sage);  border-color: #dfe4d7; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.card-head h2, .card-head h3 { margin: 0; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.1rem; }

/* Two panels side by side on a laptop, stacked on a phone. Used wherever two
   short cards would otherwise each burn a full screen of scroll. */
.split { display: grid; grid-template-columns: 1fr; gap: 1.1rem; align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-wide { grid-template-columns: 1.15fr .85fr; }
}

/* A definition list that runs in two columns, halving its height. */
.rows.two { display: grid; grid-template-columns: 1fr; column-gap: 2.75rem; }
@media (min-width: 760px) {
  .rows.two { grid-template-columns: 1fr 1fr; }
  .rows.two .row:nth-last-child(-n+2) { border-bottom: 0; padding-bottom: 0; }
}
/* The "what happens next" cards read best two up, never orphaned three-and-one. */
.grid-next { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 620px) { .grid-next { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-next { grid-template-columns: repeat(4, 1fr); } }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; }
/* Add-ons cap at three across so an odd count never leaves a lone card in a wide row. */
.grid-addons { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 640px) { .grid-addons { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .grid-addons { grid-template-columns: repeat(3, 1fr); } }

/* ─── Detail rows ────────────────────────────────────────────────────────── */

.rows { border-top: 1px solid var(--rule-soft); }
/* No trailing hairline against the card edge (or against the total's rule). */
.rows > .row:last-child { border-bottom: 0; padding-bottom: 0; }
.row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.5rem; padding: .7rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
.row dt, .row .k {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: var(--ink-faint);
  white-space: nowrap;
}
.row dd, .row .v { margin: 0; text-align: right; }
.row dd small, .row .v small { display: block; margin-top: .25rem; font-family: var(--sans); font-size: 12px;
  color: var(--ink-faint); letter-spacing: .01em; line-height: 1.45; }
@media (max-width: 560px) {
  .row { flex-direction: column; gap: .2rem; }
  .row dd, .row .v { text-align: left; }
}

/* ─── Pills ──────────────────────────────────────────────────────────────── */

.pill {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .34rem .7rem;
  border-radius: 100px;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  white-space: nowrap;
  vertical-align: middle;
}
.pill-paid    { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.pill-due     { background: transparent; color: var(--accent-dp); border-color: var(--accent); }
.pill-open    { background: transparent; color: var(--ink-faint); border-style: dashed; }
.pill-soon    { background: var(--accent); color: #fff; border-color: var(--accent); }
.pill-closed  { background: var(--rule-soft); color: var(--ink-faint); border-color: var(--rule); text-decoration: line-through; }

/* ─── Timeline ───────────────────────────────────────────────────────────── */

.timeline { margin: 0; padding: 0; list-style: none; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 6.6rem; top: .6rem; bottom: .6rem;
  width: 1px; background: var(--rule);
}
.tl-item { display: flex; gap: 2rem; padding: 1.15rem 0; position: relative; }
.tl-time {
  width: 5.2rem; flex: 0 0 5.2rem; text-align: right;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: .08em; color: var(--ink); padding-top: .2rem;
}
.tl-item::after {
  content: ''; position: absolute; left: 6.35rem; top: 1.55rem;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ivory); border: 1px solid var(--accent);
}
.tl-body { flex: 1; padding-left: 1.4rem; }
.tl-body h4 { margin: 0 0 .2rem; font-family: var(--serif); font-weight: 400; font-size: 1.1rem; }
.tl-body p { margin: 0; font-size: .96rem; color: var(--ink-soft); }
@media (max-width: 560px) {
  .timeline::before { left: .3rem; }
  .tl-item { gap: 0; padding-left: 1.6rem; flex-direction: column; }
  .tl-item::after { left: 0; top: 1.5rem; }
  .tl-time { width: auto; flex: none; text-align: left; }
}

.empty-note {
  border: 1px dashed var(--rule);
  border-radius: 3px;
  padding: 2rem;
  text-align: center;
  color: var(--ink-soft);
  background: transparent;
}

/* ─── Vendors ────────────────────────────────────────────────────────────── */

.vendor { padding: .9rem 0; border-bottom: 1px solid var(--rule-soft); }
.vendor:first-child { padding-top: 0; }
.vendor:last-child { border-bottom: 0; padding-bottom: 0; }
.vendor .role { font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.vendor .name { font-size: 1.16rem; margin: .3rem 0 .15rem; }
.vendor .contact { font-size: .95rem; color: var(--ink-soft); }
.vendor .contact a { color: var(--ink-soft); }

/* ─── Money ──────────────────────────────────────────────────────────────── */

.money-total {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; padding-top: 1.1rem; margin-top: .3rem;
  border-top: 1px solid var(--ink);
}
.money-total .k { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.money-total .v { font-size: 1.55rem; }
.amount { font-variant-numeric: lining-nums tabular-nums; }

.pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; margin-top: 0; }
.pay-method {
  border: 1px solid var(--rule); border-radius: 3px; padding: .95rem 1.05rem; background: var(--paper);
}
.pay-method .m-name { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.pay-method .m-val { margin-top: .35rem; font-size: 1.02rem; }
.pay-method .m-note { margin-top: .3rem; font-size: .86rem; color: var(--ink-faint); font-family: var(--sans); line-height: 1.45; }

/* ─── Add-ons + offers ───────────────────────────────────────────────────── */

.addon {
  border: 1px solid var(--rule); border-radius: 3px; background: var(--paper);
  padding: 1.2rem 1.35rem; display: flex; flex-direction: column; gap: .45rem;
}
.addon.closed { opacity: .5; }
.addon-top { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; }
.addon h4 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.14rem; line-height: 1.3; }
.addon .price { font-size: 1.14rem; white-space: nowrap; }
.addon .why { font-size: .91rem; line-height: 1.5; color: var(--ink-soft); margin: 0; }
.addon .deadline { font-family: var(--sans); font-size: 11.5px; color: var(--ink-faint); letter-spacing: .01em; margin-top: auto; padding-top: .4rem; }

.offer {
  border: 1px solid var(--accent); border-radius: 3px;
  background: var(--blush); padding: 1.35rem 1.5rem;
}
.offer h4 { margin: 0 0 .35rem; font-size: 1.16rem; font-family: var(--serif); font-weight: 400; }
.offer p { margin: 0; font-size: .93rem; line-height: 1.55; color: var(--ink-soft); }
.offer .expires { display: block; margin-top: .7rem; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--accent-dp); }

/* ─── Disclosure ─────────────────────────────────────────────────────────── */
/* The full terms are reference material, not reading. Collapsed by default so
   the page ends on the offers instead of on a wall of contract language. */

.disclosure summary {
  cursor: pointer;
  list-style: none;
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary h2 { margin: 0; }
.disclosure summary .more {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dp);
  white-space: nowrap;
}
.disclosure summary .more::after { content: 'Read the terms  +'; }
.disclosure[open] summary .more::after { content: 'Hide  \2212'; }
.disclosure summary:hover .more { color: var(--ink); }
.disclosure .disclosure-body { margin-top: 1.1rem; }

/* ─── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  padding: .95rem 1.9rem;
  border: 1px solid var(--ink); border-radius: 2px;
  background: var(--ink); color: var(--ivory);
  cursor: pointer; text-align: center;
  transition: background .25s ease, color .25s ease, opacity .25s ease;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--ivory); }
.btn:disabled { opacity: .45; cursor: default; }
.btn-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }

/* ─── Forms ──────────────────────────────────────────────────────────────── */

/* Balanced columns, not a grid: with a grid every row is as tall as its
   tallest field, so a one-line input beside a textarea leaves a dead block.
   Columns pack the fields and let the browser even out the two heights. */
.fields { column-count: 1; column-gap: 2.4rem; }
@media (min-width: 760px) { .fields { column-count: 2; } }
.field { margin-bottom: 1.25rem; break-inside: avoid; -webkit-column-break-inside: avoid; }
.field-wide { margin-bottom: 1.4rem; }
.field label {
  display: block;
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: .55rem;
}
.field .hint { font-family: var(--sans); font-size: 12.5px; color: var(--ink-faint); margin: -.25rem 0 .6rem; letter-spacing: 0; text-transform: none; font-weight: 400; line-height: 1.5; }
.field input[type="text"], .field input[type="time"], .field input[type="email"], .field textarea, .field select {
  width: 100%;
  font-family: var(--serif); font-size: 1rem; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule); border-radius: 3px;
  padding: .8rem .95rem;
  transition: border-color .2s ease;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: none; }
.field textarea { min-height: 4.6rem; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.choice-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.choice {
  font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .06em;
  border: 1px solid var(--rule); border-radius: 100px; padding: .55rem 1.15rem;
  background: var(--paper); cursor: pointer; color: var(--ink-soft);
  transition: all .2s ease;
}
.choice[aria-pressed="true"] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

.save-state { font-family: var(--sans); font-size: 12px; color: var(--ink-faint); margin-top: .9rem; min-height: 1.2em; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */

.w-footer {
  border-top: 1px solid var(--rule-soft);
  margin-top: 2rem;
  padding: 2rem 2rem 2.5rem;
  text-align: center;
}
.w-footer .sig { font-size: 1.35rem; font-style: italic; color: var(--ink-soft); }
.w-footer .meta { margin-top: .9rem; font-family: var(--sans); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.w-footer a { color: var(--ink-faint); border-bottom-color: var(--rule-soft); }

/* ─── Small screens ──────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  body { font-size: 17px; }
  .w-header-inner { padding: .9rem 1.15rem; gap: .5rem .9rem; }
  .w-nav { gap: .55rem 1.15rem; }
  .w-main { padding: 1.75rem 1.15rem 3rem; }
  section + section { margin-top: 1.9rem; }
}

/* ─── Print ──────────────────────────────────────────────────────────────── */

@media print {
  .w-header, .w-footer, .btn, .btn-row { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .card { border-color: #ccc; break-inside: avoid; }
  .w-main > section { animation: none; }
}
