@font-face {
  font-family: "Athelas";
  src: url("assets/fonts/Athelas-Regular-01.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Athelas";
  src: url("assets/fonts/Athelas-Italic-02.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Athelas";
  src: url("assets/fonts/Athelas-Bold-04.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #171511;
  --paper: #d7cbbb;
  --paper-light: #e6ddd0;
  --line: rgba(23, 21, 17, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Athelas", Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

.hero,
.register {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background-color: var(--paper);
  background-image: linear-gradient(rgba(225, 216, 203, 0.08), rgba(225, 216, 203, 0.08)),
    url("assets/images/ChatGPT Image Jul 28, 2026 at 03_50_14 PM.webp");
  background-size: cover;
  background-position: left center;
}

.hero {
  --page-space: clamp(76px, 8vw, 115px);
  background-attachment: fixed;
}

.hero::after,
.register::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  box-shadow: inset 0 0 80px rgba(54, 39, 21, 0.08);
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.invitation-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(390px, 0.8fr) minmax(600px, 1.2fr);
  gap: clamp(100px, 12vw, 240px);
  width: min(75vw, 1530px);
  min-height: auto;
  align-items: stretch;
  margin: 0 auto;
  padding: var(--page-space) 0;
}

.invitation-visual,
.invitation-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.archive-logo {
  width: min(64%, 293px);
  height: auto;
  margin-bottom: 22px;
}

.portrait-card {
  width: min(100%, 445px);
  margin: 0;
}

.portrait-card img {
  display: block;
  width: 100%;
}

.invitation-imtiaz-logo {
  width: min(42%, 205px);
  height: auto;
  margin-top: 25px;
}

.invitation-copy {
  align-self: stretch;
  justify-content: center;
  padding-top: 0;
}

.invitation-copy h1 {
  margin: 0 0 34px;
  font-size: clamp(30px, 2.2vw, 42px);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.invitation-key {
  width: 48px;
  height: auto;
  margin-bottom: 32px;
}

.invitation-copy > p {
  margin: 0 0 38px;
  font-size: clamp(18px, 1.28vw, 26px);
  line-height: 1.45;
}

.invitation-copy .partner-line {
  margin-bottom: 24px;
}

.event-details {
  margin-top: clamp(44px, 8vh, 90px);
}

.event-details p {
  margin-bottom: 3px;
  font-size: clamp(17px, 1.15vw, 23px);
  font-style: italic;
}

.register {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(480px, 1.2fr);
  gap: clamp(50px, 8vw, 150px);
  align-items: center;
  padding: 100px clamp(36px, 8vw, 150px) 130px;
  background-image: linear-gradient(rgba(224, 215, 202, 0.12), rgba(224, 215, 202, 0.12)),
    url("assets/images/The Archive - Background.webp");
  background-position: center center;
}

.register-intro,
.form-card,
.site-footer {
  position: relative;
  z-index: 2;
}

.section-key {
  width: 58px;
  margin-bottom: 24px;
}

.register-intro h1 {
  margin: 20px 0 28px;
  font-size: clamp(48px, 5.2vw, 84px);
  font-style: italic;
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.register-intro > p:last-child {
  max-width: 460px;
  font-size: 18px;
  line-height: 1.55;
}

.form-card {
  width: 100%;
  max-width: 720px;
  margin-top: 6px;
  padding: clamp(30px, 4vw, 62px);
  border: 0;
  border-radius: 28px;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  text-align: left;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 24px;
}

.field {
  position: relative;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.field label span {
  opacity: 0.55;
  text-transform: none;
  letter-spacing: 0;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 10px 1px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 18px;
}

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

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--ink);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(23, 21, 17, 0.45);
  opacity: 1;
}

.field.is-invalid input {
  border-bottom-color: #8a2d27;
}

.error {
  display: block;
  min-height: 16px;
  margin-top: 7px;
  color: #7a2621;
  font-size: 13px;
  line-height: 1.2;
  visibility: hidden;
  opacity: 0;
}

.field.is-invalid .error {
  visibility: visible;
  opacity: 1;
}

.iti {
  width: 100%;
}

.iti__country-container {
  padding-bottom: 3px;
}

.iti__selected-country-primary {
  background: transparent !important;
}

.iti__dropdown-content {
  font-family: Arial, sans-serif;
}

.submit-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 38px;
  padding: 17px 20px;
  border: 1px solid var(--ink);
  color: var(--paper-light);
  background: var(--ink);
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease;
}

.submit-button:hover {
  color: var(--ink);
  background: transparent;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-status {
  min-height: 20px;
  margin: 14px 0 0;
  color: #7a2621;
  font-size: 14px;
}

.success-message {
  padding: 46px 10px;
  text-align: center;
}

.success-message img {
  width: 60px;
  margin-bottom: 28px;
}

.success-message h2 {
  margin: 18px 0;
  font-size: clamp(42px, 4vw, 66px);
  font-style: italic;
  font-weight: 400;
}

.success-message > p:last-child {
  max-width: 420px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.5;
}

.site-footer {
  position: absolute;
  right: clamp(36px, 8vw, 150px);
  bottom: 34px;
  left: clamp(36px, 8vw, 150px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer img {
  width: 95px;
}

@media (min-width: 901px) {
  .hero,
  .invitation-layout {
    min-height: 100vh;
  }

  .invitation-layout {
    align-items: center;
    padding: clamp(22px, 3vh, 40px) 0;
  }

  .portrait-card {
    width: min(100%, 445px, 55vh);
  }

  .invitation-copy h1 {
    margin-bottom: 24px;
  }

  .invitation-key {
    margin-bottom: 24px;
  }

  .invitation-copy > p {
    margin-bottom: 40px;
    font-size: clamp(16px, 1.05vw, 21px);
  }

  .form-card {
    margin-top: 0;
    padding: 0;
  }

  .form-grid {
    gap: 14px 24px;
  }

  .field input,
  .field textarea {
    padding: 7px 1px 9px;
  }

  .field textarea {
    min-height: 52px;
  }

  .error {
    min-height: 14px;
    margin-top: 4px;
    font-size: 12px;
  }

  .submit-button {
    margin-top: 20px;
    padding: 14px 20px;
  }

  .form-status {
    min-height: 18px;
    margin-top: 8px;
  }
}

@media (max-width: 900px) {
  .hero {
    --page-space: 72px;
    min-height: auto;
    background-image: none;
    background-attachment: scroll;
  }

  .hero::before {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 100lvh;
    min-height: 100vh;
    content: "";
    pointer-events: none;
    background:
      linear-gradient(rgba(225, 216, 203, 0.08), rgba(225, 216, 203, 0.08)),
      url("assets/images/The Archive - Background.webp") center center / cover no-repeat;
  }

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

  .invitation-layout {
    grid-template-columns: 1fr;
    gap: 72px;
    width: min(86vw, 640px);
    min-height: auto;
    padding: var(--page-space) 0;
  }

  .archive-logo {
    width: min(62%, 320px);
  }

  .portrait-card {
    width: min(82vw, 470px);
  }

  .invitation-imtiaz-logo {
    width: 180px;
  }

  .invitation-copy {
    padding: 0;
  }

  .event-details {
    margin-top: 32px;
  }

  .register {
    grid-template-columns: 1fr;
    align-content: center;
    padding-bottom: 120px;
  }

  .form-card {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .hero {
    --page-space: 56px;
  }

  .invitation-layout {
    gap: 60px;
    width: calc(100% - 48px);
    padding: var(--page-space) 0;
  }

  .archive-logo {
    width: min(76%, 290px);
    margin-bottom: 16px;
  }

  .portrait-card {
    width: 100%;
  }

  .invitation-imtiaz-logo {
    width: 150px;
    margin-top: 19px;
  }

  .invitation-copy h1 {
    margin-bottom: 26px;
    font-size: 34px;
  }

  .invitation-key {
    width: 44px;
    margin-bottom: 26px;
  }

  .invitation-copy > p {
    margin-bottom: 29px;
    font-size: 18px;
    line-height: 1.5;
  }

  .desktop-break {
    display: none;
  }

  .event-details {
    margin-top: 22px;
  }

  .event-details p {
    margin-bottom: 5px;
    font-size: 17px;
  }

  .register {
    gap: 46px;
    padding: 74px 24px 110px;
  }

  .register-intro h1 {
    font-size: 48px;
  }

  .form-card {
    padding: 30px 24px 34px;
    border-radius: 22px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .field-wide {
    grid-column: auto;
  }

  .site-footer {
    right: 24px;
    bottom: 27px;
    left: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
