@font-face {
  font-family: "Boska";
  src: url("https://framerusercontent.com/third-party-assets/fontshare/wf/XWA5B7QYO35APXAF3YE3ZGLUEKXM5AUE/OM4E67LNKOMULZHKAOYI4D5ITKBZEHPB/2WOBSOJLL4JK7IHX3NLDIY3DAIT52O4K.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Boska";
  src: url("https://framerusercontent.com/third-party-assets/fontshare/wf/XDSHNQOL6DH55YEQWSNM525DMPYUB5JR/GECNAC4UXYMIXSSO3FJ2FMV4QQ7E45P4/HKX3FF46MBT76S26FX57MMHX52HVGDK5.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: "General Sans";
  src: url("https://framerusercontent.com/third-party-assets/fontshare/wf/MFQT7HFGCR2L5ULQTW6YXYZXXHMPKLJ3/YWQ244D6TACUX5JBKATPOW5I5MGJ3G73/7YY3ZAAE3TRV2LANYOLXNHTPHLXVWTKH.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "General Sans";
  src: url("https://framerusercontent.com/third-party-assets/fontshare/wf/KWXO5X3YW4X7OLUMPO4X24HQJGJU7E2Q/VOWUQZS3YLP66ZHPTXAFSH6YACY4WJHT/NIQ54PVBBIWVK3PFSOIOUJSXIJ5WTNDP.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

:root {
  --paper: #f2f2f2;
  --ink: #2e2e2e;
  --line: #2e2e2e1a;
  --rose: #e0dbda;
  --blue: #cfdbe0;
  --sand: #f4e8d0;
  --accent: #1d1c1c;
  --white: #fffdf8;
  --danger: #9c2f24;
  --shadow: 0 18px 60px rgba(46, 46, 46, .08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  color: var(--ink);
  background: var(--paper);
  font-family: "General Sans", Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100svh;
  margin: 0;
  background: var(--paper);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  display: grid;
  grid-template-areas:
    "intro"
    "form"
    "photo";
  gap: 18px;
  min-height: 100svh;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
}

.intro,
.form-panel,
.photo-slot {
  transition:
    opacity .42s ease,
    transform .52s cubic-bezier(.14, .94, .56, 1),
    filter .42s ease;
}

.page-shell::before {
  content: none;
}

.intro {
  grid-area: intro;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding-top: 12px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "Boska", Georgia, serif;
  font-size: clamp(4.1rem, 22vw, 8.4rem);
  font-weight: 400;
  line-height: .82;
  letter-spacing: 0;
}

.lead {
  max-width: 31rem;
  margin: 20px 0 0;
  font-size: 1.06rem;
  line-height: 1.55;
}

.photo-slot {
  grid-area: photo;
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 48svh;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
}

.photo-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form-panel,
.success-panel {
  grid-area: form;
  align-self: end;
  width: 100%;
  padding: 16px;
  background: rgba(242, 242, 242, .88);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: blur(14px);
}

form {
  display: grid;
  gap: 10px;
}

label {
  margin-top: 8px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .01em;
}

label small {
  color: rgba(46, 46, 46, .58);
  font-size: .82rem;
  font-weight: 400;
}

input {
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(46, 46, 46, .24);
  border-radius: 0;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

input:focus {
  background: var(--white);
  border-color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  margin-top: 12px;
  padding: 0 20px;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .18s ease, background .18s ease, color .18s ease;
}

.button:hover {
  color: var(--paper);
  background: var(--accent);
}

.button:disabled {
  cursor: wait;
  opacity: .68;
}

.button-secondary {
  min-height: 44px;
  margin: 0;
  color: var(--paper);
  background: var(--accent);
  border-color: var(--line);
}

.form-message {
  min-height: 44px;
  margin: 4px 0 0;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: .94rem;
  line-height: 1.35;
}

.form-message:empty {
  display: none;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-message[data-variant="success"] {
  color: var(--paper);
  background: var(--accent);
  border-color: rgba(46, 46, 46, .12);
}

.form-message[data-variant="error"] {
  color: var(--danger);
  background: rgba(156, 47, 36, .09);
  border-color: rgba(156, 47, 36, .24);
}

.form-message[data-variant="pending"] {
  background: var(--blue);
  border-color: rgba(46, 46, 46, .12);
}

.success-stage {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(.96);
  filter: blur(12px);
  transition:
    opacity .5s ease .22s,
    transform .68s cubic-bezier(.14, .94, .56, 1) .22s,
    filter .5s ease .22s;
}

.success-close {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  right: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(46, 46, 46, .28);
  border-radius: 0;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity .3s ease .46s,
    transform .42s cubic-bezier(.14, .94, .56, 1) .46s,
    background .18s ease;
}

.success-close:hover {
  color: var(--paper);
  background: var(--accent);
}

.success-stage:focus {
  outline: none;
}

.success-stage .eyebrow {
  margin: 0;
}

.success-stage h2 {
  margin: 0 0 24px;
  font-family: "Boska", Georgia, serif;
  font-size: clamp(4.25rem, 18vw, 8.4rem);
  font-weight: 400;
  line-height: .9;
}

.success-stage p:not(.eyebrow) {
  max-width: 36rem;
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.55;
}

.page-shell.is-submitted .intro,
.page-shell.is-submitted .form-panel,
.page-shell.is-submitted .photo-slot {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-22px) scale(.985);
  filter: blur(8px);
}

.page-shell.is-submitted .success-stage {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  filter: blur(0);
  animation: success-stage-in .68s cubic-bezier(.14, .94, .56, 1) .22s both;
}

.page-shell.is-submitted .success-close {
  opacity: 1;
  transform: translateY(0);
}

@keyframes success-stage-in {
  0% {
    letter-spacing: 0;
  }

  100% {
    letter-spacing: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro,
  .form-panel,
  .photo-slot,
  .success-stage {
    transition: none;
  }

  .page-shell.is-submitted .success-stage {
    animation-duration: .01ms;
    animation-delay: 0ms;
  }
}

.page-shell-thanks {
  display: flex;
  align-items: center;
}

.success-panel h1 {
  margin-bottom: 22px;
}

.success-panel p:not(.eyebrow) {
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.55;
}

.admin-page {
  background: var(--paper);
}

.admin-shell {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 28px 18px;
}

.admin-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-header h1 {
  font-size: clamp(3rem, 12vw, 6.2rem);
}

.admin-summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: fit-content;
  margin-bottom: 18px;
  padding: 12px 14px;
  color: var(--paper);
  background: var(--accent);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-summary strong {
  font-family: "Boska", Georgia, serif;
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1;
}

.table-wrap {
  overflow-x: auto;
  background: rgba(255, 253, 248, .78);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

td {
  font-size: .95rem;
}

tr:last-child td {
  border-bottom: 0;
}

.empty {
  color: rgba(46, 46, 46, .58);
  text-align: center;
}

@media (min-width: 760px) {
  .page-shell {
    grid-template-areas:
      "intro photo"
      "form photo";
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: end;
    gap: 30px 42px;
    width: min(100%, 1060px);
    padding: 52px 28px;
  }

  .intro {
    min-height: 0;
  }

  .photo-slot {
    align-self: stretch;
    max-height: none;
    min-height: calc(100svh - 104px);
  }

  .form-panel {
    margin-bottom: 0;
    padding: 18px;
  }
}

@media (max-width: 560px) {
  .admin-header {
    display: grid;
    align-items: start;
  }

  .button-secondary {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .table-wrap {
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  table {
    min-width: 0;
  }

  thead {
    display: none;
  }

  tbody {
    display: grid;
    gap: 10px;
  }

  tr {
    display: grid;
    gap: 8px;
    padding: 14px;
    background: rgba(255, 253, 248, .82);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  td {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    padding: 0;
    border-bottom: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  td::before {
    content: attr(data-label);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(46, 46, 46, .58);
  }

  .empty {
    display: block;
  }

  .empty::before {
    display: none;
  }
}
