@font-face {
  font-family: 'Cormorant Garamond';
  src: url('assets/fonts/cormorant-garamond.ttf') format('truetype');
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('assets/fonts/manrope.ttf') format('truetype');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --font-body: 'Manrope', sans-serif;
  --font-display: 'Cormorant Garamond', serif;
  --ink: #f4f0e9;
  --muted: #aaa69e;
  --gold: #d9b583;
  --gold-light: #efd1a4;
  --line: rgba(217, 181, 131, .34);
  --error: #edb5a8;
}

* { box-sizing: border-box; }
body { margin: 0; background: #10100e; color: var(--ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
button, input, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 6px; }
[hidden] { display: none !important; }

.backdrop { position: fixed; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 8, 7, .67), rgba(8, 8, 7, .54) 50%, rgba(8, 8, 7, .3)), linear-gradient(0deg, rgba(8, 8, 7, .8), transparent 30%, rgba(8, 8, 7, .22)), url('assets/background-wide-3.jpg') center / cover no-repeat; }
.backdrop::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 48%, rgba(4, 4, 3, .68) 0%, rgba(4, 4, 3, .48) 28%, rgba(4, 4, 3, .18) 52%, transparent 76%); }
.backdrop::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 48%, transparent 12%, rgba(0, 0, 0, .24) 80%); }
.page-shell { min-height: 100svh; display: grid; grid-template-rows: 1fr auto 1fr; justify-items: center; align-items: center; padding: clamp(28px, 4vh, 48px) 24px; }
.brand { display: flex; flex-direction: column; align-items: center; align-self: start; }
.brand-mark { display: block; height: 66px; width: 94px; filter: drop-shadow(0 3px 15px #0005); }
.brand-name { margin-top: 15px; text-transform: uppercase; font-size: 19px; letter-spacing: 5.4px; font-weight: 700; padding-left: 5.4px; white-space: nowrap; }
.brand-name span { color: var(--gold); }
.brand-caption { margin-top: 8px; font-size: 8px; letter-spacing: 5.3px; text-transform: uppercase; padding-left: 5.3px; }

.access { width: min(100%, 660px); text-align: center; margin: 0; padding: 40px 0; animation: appear .8s ease-out both; }
.eyebrow { color: #c4b7a2; font-size: 9px; line-height: 1.6; letter-spacing: 2.8px; display: flex; gap: 15px; align-items: center; justify-content: center; }
.eyebrow span { height: 1px; width: 23px; background: var(--line); }
h1, h2 { font-family: var(--font-display); font-weight: 500; }
h1 { margin: 21px 0 20px; font-size: clamp(40px, 4.5vw, 64px); line-height: 1.12; letter-spacing: -.9px; text-wrap: balance; }
.access-title { margin: 0; color: var(--ink); font-size: 32px; line-height: 1.25; letter-spacing: .1px; }
em { color: var(--gold-light); font-weight: 400; font-style: normal; }
.intro { color: #c0bbb2; font-size: 13px; line-height: 1.7; letter-spacing: .2px; margin: 0; }
.access-form { width: min(100%, 420px); margin: 26px auto 0; }
.code-field { position: relative; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 5px; background: rgba(7, 7, 6, .57); transition: border-color .2s, box-shadow .2s; }
.code-field:focus-within { border-color: var(--gold-light); box-shadow: 0 0 0 3px #d9b58315, 0 0 30px #d9b58308; }
.code-field.invalid { border-color: var(--error); }
.code-field > svg { height: 20px; width: 20px; margin-left: 16px; flex: none; stroke: #bfbdb7; stroke-width: 1.3; }
.code-field input { display: block; min-width: 0; width: 100%; height: 56px; background: transparent; border: 0; border-radius: 5px; outline: none; padding: 0 14px; font-size: 15px; letter-spacing: .5px; color: var(--ink); caret-color: var(--gold); }
.code-field input::placeholder { color: #9c9a94; opacity: 1; font-size: 14px; }
.code-help { flex: none; margin-right: 6px; }
.help-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: #c4b08e; transition: color .2s; }
.help-button svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.1; }
.help-button:hover, .help-button[aria-expanded="true"] { color: var(--gold-light); }
.help-button:focus-visible { outline-offset: -4px; }
.help-tooltip { position: absolute; z-index: 3; right: 0; bottom: calc(100% + 12px); width: min(300px, 100%); padding: 18px 20px; border: 1px solid var(--line); border-radius: 7px; background: #1b1915; box-shadow: 0 8px 30px #0006; color: #c8bfb0; text-align: left; font-size: 12px; line-height: 1.75; }
.help-tooltip strong { display: block; margin-bottom: 5px; color: var(--gold-light); font-size: 13px; font-weight: 500; }
.help-tooltip::before { content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 13px; }
.help-tooltip::after { content: ''; position: absolute; top: 100%; right: 22px; width: 10px; height: 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #1b1915; transform: translateY(-5px) rotate(45deg); }
.form-message { color: var(--error); font-size: 12px; text-align: left; margin: 0; line-height: 1.5; min-height: 22px; padding-top: 4px; }
.primary-button { position: relative; width: 100%; height: 52px; display: flex; justify-content: center; align-items: center; gap: 24px; padding: 0 20px; border: 1px solid #bfa582; border-radius: 4px; background: #bfa582; color: #19150e; transition: filter .2s, transform .2s; }
.primary-button span { font-size: 11px; text-transform: uppercase; letter-spacing: 2.2px; font-weight: 600; }
.primary-button svg { width: 22px; height: 18px; stroke: currentColor; stroke-width: 1.4; transition: transform .2s; }
.primary-button:hover { filter: brightness(1.08); }
.primary-button:hover svg { transform: translateX(4px); }
.primary-button:active { transform: translateY(1px); }

.footer { align-self: end; text-align: center; }
.footer-domain { display: flex; gap: 22px; align-items: center; justify-content: center; font-size: 11px; letter-spacing: 4px; padding-left: 4px; }
.footer-domain span { width: 43px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.footer-domain span:last-child { transform: rotate(180deg); }
.footer p { margin: 13px 0 0; color: #9b958a; font-size: 9px; letter-spacing: 1px; }

dialog { color: var(--ink); border: 1px solid var(--line); border-radius: 8px; background: #171612; box-shadow: 0 30px 120px #0009; }
dialog::backdrop { background: #000b; backdrop-filter: blur(7px); }
.dialog-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: #c0b8ab; font-size: 29px; padding: 0 5px; }
.secondary-button { display: inline-block; border: 1px solid var(--line); border-radius: 3px; background: #d9b5830a; padding: 14px 20px; color: var(--gold-light); text-decoration: none; font-size: 12px; }
.album { width: min(100%, 1000px); text-align: center; margin: 44px 0; animation: appear .5s ease-out both; }
.back-button { display: block; margin-bottom: 35px; padding: 8px 0; background: none; color: var(--gold); border: 0; font-size: 12px; }
.album h1 { font-size: clamp(32px, 4vw, 52px); }
.album h1:focus { outline: none; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 24px; margin-top: 30px; }
.photo-card { margin: 0; text-align: left; }
.photo-open { display: block; width: 100%; padding: 0; background: #171612; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.photo-open img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s; }
.photo-open:hover img { transform: scale(1.025); }
.photo-card figcaption { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding-top: 14px; font-size: 12px; color: #c6bcad; }
.photo-card a { color: var(--gold); text-underline-offset: 4px; }
.album-note { font-size: 11px; color: var(--muted); margin-top: 30px; line-height: 1.7; }
.photo-dialog { padding: 48px 18px 20px; width: min(1200px, calc(100% - 24px)); text-align: center; max-height: calc(100svh - 32px); }
.photo-dialog img { display: block; width: 100%; max-height: calc(100svh - 180px); object-fit: contain; margin-bottom: 18px; }
.sr-only { position: absolute; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.noscript-note { text-align: center; padding: 20px; color: var(--gold-light); }
@keyframes appear { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1800px) {
  .brand-mark { width: 112px; height: 79px; }
  .brand-name { font-size: 21px; }
  .brand-caption { font-size: 8.5px; }
  h1 { font-size: 72px; }
}
@media (max-width: 600px) {
  .page-shell { padding: 28px 23px; }
  .backdrop { background-position: center, center, 65% center; }
  .backdrop::after { background: #0003; }
  .brand-mark { width: 74px; height: 52px; }
  .brand-name { font-size: 16px; letter-spacing: 4.4px; padding-left: 4.4px; margin-top: 12px; }
  .brand-caption { font-size: 6px; letter-spacing: 4.4px; padding-left: 4.4px; }
  .access { padding: 30px 0; }
  .eyebrow { font-size: 8px; letter-spacing: 1.8px; gap: 10px; }
  .eyebrow span { width: 15px; }
  h1 { font-size: clamp(34px, 9.4vw, 49px); margin-top: 24px; letter-spacing: -1px; }
  .access-title { margin: 0; font-size: 28px; letter-spacing: .1px; }
  .intro { font-size: 12px; max-width: 280px; margin-inline: auto; }
  .access-form { width: min(100%, 336px); margin-top: 24px; }
  .code-field input { height: 54px; font-size: 16px; }
  .primary-button { height: 50px; gap: 20px; }
  .footer-domain { font-size: 10px; letter-spacing: 3px; gap: 15px; }
  .footer-domain span { width: 28px; }
  .footer p { font-size: 8px; letter-spacing: .6px; }
}
@media (max-height: 750px) and (min-width: 601px) {
  .page-shell { padding-block: 28px; }
  .brand-mark { width: 78px; height: 55px; }
  .brand-name { font-size: 17px; margin-top: 12px; }
  .access { padding-block: 32px; }
  h1 { font-size: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
