@font-face {
  font-family: Geometria;
  src: url("/assets/fonts/Geometria-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Geometria;
  src: url("/assets/fonts/Geometria-Medium.woff") format("woff");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Geometria;
  src: url("/assets/fonts/Geometria-Bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}
:root {
  --ink: #20201d;
  --muted: #6f6a60;
  --paper: #f8f5ef;
  --gold: #aa8952;
  --line: #dfd8cb;
  --white: #fff;
  --green: #315a44;
  --red: #a33131;
  font-family: Geometria, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
button,
input,
select,
textarea {
  border-radius: 2px;
}
button {
  border: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
p {
  line-height: 1.65;
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.04em;
}
h1 {
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 1.05;
}
h2 {
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.15;
}
h3 {
  font-size: 20px;
  line-height: 1.35;
}
small,
.muted {
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(1320px, calc(100% - 80px));
  margin: auto;
}
.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: white;
  padding: 16px;
}
.skip:focus {
  top: 10px;
}
.header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  min-height: 132px;
  border-bottom: 1px solid var(--line);
}
.campaign-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font:
    44px Georgia,
    serif;
  letter-spacing: -0.07em;
}
.campaign-mark span {
  font:
    10px/1.5 Geometria,
    sans-serif;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.foundation-logo {
  justify-self: center;
}
.foundation-logo img {
  width: 235px;
  height: auto;
}
.loreal-logo {
  justify-self: end;
  width: 170px;
  height: auto;
}
.nav {
  display: flex;
  gap: 32px;
  align-items: center;
  min-height: 68px;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}
.nav a {
  text-decoration: none;
}
.nav a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.nav #login-button {
  margin-left: auto;
}
.text-button {
  padding: 8px 0;
  color: inherit;
  background: none;
  font-weight: 500;
  text-align: left;
}
.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  padding: 16px 23px;
  background: var(--ink);
  color: white;
  font-weight: 500;
  border: 1px solid var(--ink);
  font-size: 14px;
  line-height: 1.4;
}
.button:hover {
  background: #484237;
}
.button.light {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}
.button.light:hover {
  background: #eee7da;
}
.button.small {
  font-size: 12px;
  padding: 10px 14px;
}
.button.danger {
  color: var(--red);
  background: white;
  border-color: #dfb3ac;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  padding: 76px 0 68px;
  align-items: center;
}
.hero h1 {
  margin: 25px 0 28px;
  max-width: 670px;
}
.hero h1 em {
  font-weight: 400;
  color: #8b7049;
}
.hero-copy {
  max-width: 500px;
  color: var(--muted);
  font-size: 16px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 34px;
}
.deadline {
  font-size: 12px;
  line-height: 1.6;
  max-width: 200px;
}
.deadline strong {
  font-weight: 700;
}
.hero-art {
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid #d3c8b7;
  border-radius: 50% 50% 2px 2px;
  background: #eee7da;
  isolation: isolate;
  overflow: hidden;
}
.hero-art:before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border: 1px solid #cbb895;
  transform: rotate(45deg);
  z-index: -1;
}
.hero-art .number {
  font:
    italic 155px/1 Georgia,
    serif;
  letter-spacing: -0.08em;
  margin: 18px 0 4px;
}
.hero-art .art-text {
  max-width: 180px;
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
}
.star {
  font: 34px Georgia;
  color: #a98c59;
  position: absolute;
}
.star.a {
  left: 35px;
  top: 65px;
}
.star.b {
  right: 43px;
  bottom: 74px;
  font-size: 52px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
  gap: 38px;
}
.step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
}
.step > span {
  font: italic 26px Georgia;
  color: var(--gold);
}
.step h3 {
  font-size: 15px;
  margin: 0 0 8px;
}
.step p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.catalog-section {
  padding: 70px 0;
}
.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.section-title h2 {
  margin-bottom: 0;
}
.section-title p {
  margin: 0;
  max-width: 360px;
  font-size: 13px;
  color: var(--muted);
}
.filters {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  gap: 14px;
  margin: 25px 0 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}
.field input,
.field select,
.field textarea {
  border: 1px solid #cfc8bd;
  background: white;
  color: var(--ink);
  padding: 13px 14px;
  min-width: 0;
  width: 100%;
  min-height: 48px;
}
.field textarea {
  resize: vertical;
}
.field small {
  font-size: 11px;
  line-height: 1.5;
}
.filter-count {
  font-size: 12px;
  color: var(--muted);
  margin: 20px 0;
}
.gift-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gift-card {
  padding: 27px;
  background: white;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 275px;
  position: relative;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.gift-card:hover {
  transform: translateY(-3px);
  border-color: #aa8952;
}
.gift-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}
.gift-id {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #827867;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  border: 1px solid var(--line);
  padding: 6px 9px;
  border-radius: 20px;
  line-height: 1.3;
}
.badge.available {
  color: var(--green);
  background: #f2f7f2;
  border-color: #d9e6da;
}
.badge.reserved,
.badge.active {
  color: #8c6837;
  background: #fcf5e8;
}
.badge.fulfilled,
.badge.shipped,
.badge.received {
  color: var(--green);
  background: #edf5eb;
  border-color: #cfdcc9;
}
.badge.expired,
.badge.cancelled {
  color: #7a7165;
  background: #f3f0e9;
}
.gift-card h3 {
  font:
    31px Georgia,
    serif;
  margin-bottom: 7px;
}
.gift-meta {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 22px;
}
.gift-wish {
  font-size: 15px;
  line-height: 1.7;
  flex: 1;
  overflow-wrap: anywhere;
}
.gift-card .button {
  margin-top: 16px;
  width: 100%;
}
.gift-card .status-note {
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin-top: auto;
}
.empty {
  grid-column: 1/-1;
  padding: 42px;
  border: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
}
.notice {
  border-left: 3px solid var(--gold);
  background: #eee7da;
  padding: 18px 22px;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 25px;
}
.notice.error {
  border-color: var(--red);
  background: #fff0ed;
  color: var(--red);
}
.notice.success {
  border-color: var(--green);
  background: #f1f7ee;
  color: var(--green);
}
.page-heading {
  padding: 55px 0 25px;
}
.page-heading h1 {
  font-size: 52px;
  margin-bottom: 18px;
}
.page-heading p {
  color: var(--muted);
  max-width: 750px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  padding: 28px;
  margin-bottom: 22px;
}
.panel h2 {
  font-size: 30px;
}
.stack {
  display: grid;
  gap: 17px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.6;
}
.check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--ink);
}
.error-text {
  color: var(--red);
  font-size: 13px;
  line-height: 1.6;
  margin-top: 13px;
}
.help {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}
.booking-card {
  margin-bottom: 20px;
  border: 1px solid var(--line);
  background: white;
  padding: 30px;
}
.booking-card h2 {
  font-size: 32px;
  margin-bottom: 10px;
}
.booking-header {
  display: flex;
  justify-content: space-between;
  gap: 22px;
}
.booking-card .wish {
  max-width: 750px;
  font-size: 16px;
}
.booking-time {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.countdown {
  font-variant-numeric: tabular-nums;
  color: #8b6836;
  display: block;
  margin-top: 7px;
}
.shipping {
  background: #f5f0e7;
  padding: 22px;
  margin: 20px 0;
}
.shipping h3 {
  font-size: 17px;
}
.shipping-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 15px;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.shipping-row > span:first-child {
  color: var(--muted);
}
.copy {
  background: transparent;
  color: #806743;
  font-size: 11px;
  padding: 2px 5px;
}
.shipping .notice {
  margin-top: 18px;
  font-size: 12px;
}
.small-meta {
  font-size: 11px;
  color: var(--muted);
}
.footer {
  margin-top: 55px;
  padding: 48px 0;
  background: #20201d;
  color: #e4ddcf;
}
.footer > .wrap {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}
.footer p,
.footer a {
  font-size: 12px;
  line-height: 1.7;
}
.footer img {
  margin-bottom: 18px;
}
.footer a {
  text-underline-offset: 5px;
}
dialog {
  border: 1px solid #bdb3a1;
  padding: 38px;
  width: min(650px, calc(100% - 30px));
  max-height: 90dvh;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 20px 90px #0003;
}
dialog::backdrop {
  background: #1d1b166b;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 36px;
  margin-right: 25px;
}
.close-dialog {
  position: absolute;
  right: 16px;
  top: 11px;
  font-size: 29px;
  background: none;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 25px;
  background: var(--ink);
  color: white;
  box-shadow: 0 5px 20px #0002;
  z-index: 100;
  max-width: 90vw;
  font-size: 13px;
}
.loading {
  padding: 100px 0;
  text-align: center;
  color: var(--muted);
}
.code-input {
  font-size: 28px !important;
  letter-spacing: 0.4em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin: 10px 0 12px;
}
.stat {
  padding: 23px 20px;
  border: 1px solid var(--line);
  background: white;
}
.stat strong {
  font: 44px Georgia;
  display: block;
  margin-bottom: 10px;
}
.stat span {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.stat.completed {
  background: #eaf0e5;
  border-color: #c4d3b9;
}
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  margin: 15px 0 25px;
}
.tab {
  background: transparent;
  padding: 11px 15px;
  border: 1px solid transparent;
  font-size: 12px;
}
.tab[aria-selected="true"] {
  background: var(--ink);
  color: white;
}
.admin-tools {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.table-scroll {
  overflow: auto;
  width: 100%;
  border: 1px solid var(--line);
  background: white;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
th {
  font-weight: 500;
  color: var(--muted);
  background: #eee9df;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
th,
td {
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.55;
}
td .text-button {
  font-size: 12px;
}
td p {
  margin-bottom: 4px;
}
.table-scroll td {
  max-width: 350px;
  overflow-wrap: anywhere;
}
.family {
  border: 1px solid var(--line);
  background: white;
  padding: 24px;
  margin-bottom: 16px;
}
.family summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
}
.kv {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 8px 20px;
  font-size: 12px;
  line-height: 1.6;
}
.kv dt {
  color: var(--muted);
}
.kv dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.json-field {
  font-family: monospace !important;
  font-size: 12px !important;
  min-height: 170px;
}
.audit-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.audit-item summary {
  font-size: 12px;
  cursor: pointer;
}
.audit-item pre {
  white-space: pre-wrap;
  font-size: 11px;
  max-height: 300px;
  overflow: auto;
}
.booking-select {
  padding: 14px;
  border: 1px solid var(--line);
  background: white;
}
.login-panel {
  max-width: 560px;
  margin: 50px auto 90px;
}
.inline-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.admin-hint {
  max-width: 850px;
}
.status-select {
  min-width: 150px;
}
#print-label {
  display: none;
}
.catalog-section,
.hero {
  animation: appear 0.55s ease both;
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1400px) {
  .hero {
    gap: 110px;
  }
  .hero-art {
    min-height: 430px;
  }
}
@media (max-width: 1000px) {
  .wrap {
    width: calc(100% - 44px);
  }
  .hero {
    gap: 35px;
    padding: 50px 0;
  }
  .hero-art {
    min-height: 340px;
  }
  .hero-art .number {
    font-size: 130px;
  }
  .gift-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .header {
    min-height: 110px;
  }
  .foundation-logo img {
    width: 195px;
  }
  .campaign-mark {
    font-size: 36px;
  }
  .loreal-logo {
    width: 135px;
  }
  .steps {
    gap: 20px;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .header {
    grid-template-columns: 1fr 1fr;
    min-height: 112px;
    gap: 18px;
    padding: 20px 0;
  }
  .campaign-mark {
    display: none;
  }
  .foundation-logo {
    justify-self: start;
  }
  .foundation-logo img {
    width: 184px;
  }
  .loreal-logo {
    width: 120px;
  }
  .nav {
    gap: 17px;
    flex-wrap: wrap;
    padding: 14px 0;
    min-height: 60px;
    font-size: 11px;
  }
  .nav #admin-link {
    order: 4;
  }
  .nav #login-button {
    font-size: 11px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 36px 0;
    gap: 30px;
  }
  .hero h1 {
    font-size: 47px;
    max-width: 500px;
    margin: 20px 0;
  }
  .hero-copy {
    font-size: 14px;
  }
  .hero-art {
    min-height: 230px;
    border-radius: 140px 140px 2px 2px;
  }
  .hero-art .number {
    font-size: 98px;
  }
  .hero-art .art-text {
    font-size: 11px;
    max-width: 230px;
  }
  .hero-art:before {
    width: 180px;
    height: 180px;
  }
  .hero-actions {
    gap: 18px;
  }
  .deadline {
    font-size: 11px;
  }
  .steps {
    grid-template-columns: 1fr;
    padding: 25px 0;
    gap: 22px;
  }
  .step p {
    max-width: 400px;
  }
  .catalog-section {
    padding: 38px 0;
  }
  .section-title {
    display: block;
  }
  .section-title p {
    margin-top: 14px;
  }
  .gift-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .gift-card {
    min-height: 250px;
    padding: 24px;
  }
  .filters {
    gap: 10px;
  }
  .field {
    font-size: 11px;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
    padding: 12px 10px;
  }
  .field select {
    font-size: 13px;
  }
  .page-heading {
    padding: 35px 0 20px;
  }
  .page-heading h1 {
    font-size: 42px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }
  .stat {
    padding: 19px 15px;
  }
  .stat strong {
    font-size: 37px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .panel,
  .booking-card {
    padding: 22px;
  }
  .booking-header {
    display: block;
  }
  .booking-header .badge {
    margin-bottom: 17px;
  }
  .shipping {
    padding: 17px;
  }
  .shipping-row {
    grid-template-columns: 1fr auto;
    gap: 4px 10px;
  }
  .shipping-row > span:first-child {
    grid-column: 1/-1;
    font-size: 10px;
  }
  .shipping-row > span:nth-child(2) {
    font-size: 12px;
  }
  .footer > .wrap {
    display: block;
  }
  .footer img {
    width: 200px;
  }
  .footer > .wrap > div + div {
    margin-top: 25px;
  }
  .admin-tabs {
    gap: 3px;
  }
  .tab {
    font-size: 11px;
    padding: 10px;
  }
  .admin-tools .field {
    width: 100%;
  }
  dialog {
    padding: 28px 20px;
  }
  dialog h2 {
    font-size: 31px;
  }
  .actions .button {
    flex: 1;
  }
  .kv {
    grid-template-columns: 1fr;
  }
  .kv dd {
    padding-bottom: 10px;
  }
  .button {
    padding: 14px 18px;
  }
  .table-scroll th,
  .table-scroll td {
    padding: 12px;
  }
  .hero .eyebrow {
    font-size: 9px;
  }
  .login-panel {
    margin: 35px auto 60px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  body > * {
    display: none !important;
  }
  #print-label {
    display: block !important;
    border: 2px solid #111;
    padding: 24px;
    font:
      18px/1.6 Geometria,
      sans-serif;
    color: black;
  }
  #print-label h1 {
    font-size: 34px;
  }
  #print-label img {
    width: 170px;
  }
  dialog {
    display: none !important;
  }
  @page {
    margin: 15mm;
  }
}
