/* Tenfold. Georgian-door green, brass, linen place cards. One bold thing: the table plan. */

@font-face {
  font-family: "Bodoni Moda";
  src: url("fonts/bodoni-moda-latin-opsz-normal.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("fonts/bodoni-moda-latin-opsz-italic.woff2") format("woff2");
  font-weight: 400 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --door: #12302A;      /* page */
  --deep: #0C241F;      /* footer, inputs */
  --baize: #1D4237;     /* the table */
  --brass: #C9A86A;
  --brass-hi: #DDBF85;
  --linen: #ECE6D8;     /* text on green */
  --paper: #F3EEE2;     /* place cards */
  --wax: #9A2E2A;
  --soft: rgba(236, 230, 216, .72);
  --rule: rgba(201, 168, 106, .28);
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--door); color: var(--linen);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; font-optical-sizing: auto; margin: 0; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; }
h3 { font-size: 1.375rem; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); color: var(--door); padding: 8px 12px; z-index: 2; }

.mark { font: italic 500 1.75rem/1 var(--serif); text-decoration: none; letter-spacing: .01em; }

.btn {
  display: inline-block; background: var(--brass); color: var(--door);
  font: 600 1rem/1 var(--sans); padding: 16px 26px; border: 0; border-radius: 2px;
  text-decoration: none; cursor: pointer; transition: background .15s;
}
.btn:hover { background: var(--brass-hi); }
.btn-small { padding: 11px 18px; font-size: .9375rem; }
.link { color: var(--linen); text-decoration-color: var(--brass); text-underline-offset: 5px; }
.link:hover { color: var(--brass-hi); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 28px 0; }
.top nav { display: flex; align-items: center; gap: 28px; }
.top nav a:not(.btn) { text-decoration: none; color: var(--soft); }
.top nav a:not(.btn):hover { color: var(--linen); }

/* Hero */
.hero { padding: clamp(32px, 8vw, 96px) 0 clamp(64px, 10vw, 120px); }
.hero h1 {
  font-size: clamp(2.75rem, 7.2vw, 6rem); line-height: .98; letter-spacing: -.015em;
  max-width: 22ch;
}
.hero-foot {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 24px 48px; margin-top: 36px;
}
.lede { font-size: 1.25rem; line-height: 1.55; color: var(--soft); max-width: 34ch; }
.actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

/* The table plan */
.plan { margin: clamp(56px, 8vw, 96px) 0 0; }
.table {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: auto 84px auto;
  gap: 14px 16px;
}
.cloth {
  grid-column: 1 / -1; grid-row: 2; border-radius: 4px;
  background: var(--baize); box-shadow: inset 0 0 0 1px var(--rule);
  display: flex; align-items: center; justify-content: space-around;
}
.cloth i { /* candles */
  width: 10px; height: 10px; border-radius: 50%; background: #F6D9A0;
  box-shadow: 0 0 18px 8px rgba(246, 205, 130, .28), 0 0 60px 26px rgba(246, 205, 130, .09);
}
.seat { grid-row: 1; }
.seat:nth-of-type(n+6) { grid-row: 3; }
.seat {
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  min-height: 118px; padding: 18px 14px; text-align: center;
  background: var(--paper); color: var(--door); border: 0; border-radius: 2px;
  font: inherit; cursor: pointer;
  /* the fold of a tented place card */
  background-image: linear-gradient(to bottom, rgba(18, 48, 42, .07), transparent 22%);
  transition: transform .2s, opacity .2s, box-shadow .2s;
}
.seat .role { font: italic 500 1.1875rem/1.2 var(--serif); }
.seat .wants { font-size: .8125rem; line-height: 1.35; color: rgba(18, 48, 42, .72); }
.seat:hover { transform: translateY(-2px); }
.seat.is-on { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--brass), 0 14px 30px rgba(0, 0, 0, .3); }
.seat.is-near { box-shadow: 0 0 0 2px var(--brass); }
.seat.is-dim { opacity: .38; }
.plan figcaption {
  margin-top: 28px; min-height: 3.2em; max-width: 62ch;
  font: italic 400 1.1875rem/1.6 var(--serif); color: var(--soft);
}

/* The one orchestrated moment: place cards laid one by one. */
@media (prefers-reduced-motion: no-preference) {
  .seat { animation: lay .5s cubic-bezier(.2, .7, .2, 1) backwards; }
  .seat:nth-of-type(1) { animation-delay: .15s } .seat:nth-of-type(2) { animation-delay: .22s }
  .seat:nth-of-type(3) { animation-delay: .29s } .seat:nth-of-type(4) { animation-delay: .36s }
  .seat:nth-of-type(5) { animation-delay: .43s } .seat:nth-of-type(6) { animation-delay: .50s }
  .seat:nth-of-type(7) { animation-delay: .57s } .seat:nth-of-type(8) { animation-delay: .64s }
  .seat:nth-of-type(9) { animation-delay: .71s } .seat:nth-of-type(10) { animation-delay: .78s }
  @keyframes lay { from { opacity: 0; transform: translateY(-10px) rotate(-1.5deg); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .seat { transition: none; }
}

/* Sections */
.night, .who, .rules, .apply { padding: clamp(64px, 9vw, 112px) 0; border-top: 1px solid var(--rule); }
.steps {
  list-style: none; counter-reset: step; padding: 0; margin: 48px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: block; margin-bottom: 18px;
  font: italic 500 2.5rem/1 var(--serif); color: var(--brass);
}
.steps p { margin-top: 10px; color: var(--soft); }

.kinds { margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 48px; }
.kinds dt { font: 500 1.375rem/1.2 var(--serif); }
.kinds dd { margin: 8px 0 0; color: var(--soft); }
.who .lede { margin: 16px 0 0; max-width: 46ch; }
.match .lede, .idea .lede { max-width: 60ch; }
.hero .lede { max-width: 44ch; }
.who .note { margin: 48px 0 0; color: var(--soft); max-width: 62ch; }

/* Membership as a printed menu */
.membership { padding: clamp(72px, 10vw, 128px) 24px; background: var(--deep); }
.menu { max-width: 640px; margin-inline: auto; text-align: center; }
.menu-note { color: var(--soft); margin: 20px auto 0; max-width: 46ch; }
.tiers { list-style: none; padding: 0; margin: 56px 0 48px; text-align: left; }
.tiers li + li { margin-top: 36px; }
.line { display: flex; align-items: baseline; gap: 12px; }
.tier { font: italic 500 1.75rem/1.1 var(--serif); }
.dots { flex: 1; border-bottom: 2px dotted var(--rule); transform: translateY(-6px); }
.price { font: 500 1.25rem/1 var(--serif); color: var(--brass); white-space: nowrap; }
.perk { margin-top: 8px; color: var(--soft); max-width: 48ch; }

.rules ul { list-style: none; padding: 0; margin: 40px 0 0; }
.rules li {
  font: 400 clamp(1.5rem, 3vw, 2.25rem)/1.25 var(--serif);
  padding: 18px 0; border-bottom: 1px solid var(--rule);
}

/* Apply */
.apply { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
.apply-head p { margin-top: 18px; color: var(--soft); max-width: 36ch; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: .9375rem; }
.form .wide { grid-column: 1 / -1; }
.opt { color: var(--soft); }
.form input, .form select, .form textarea {
  font: inherit; color: var(--linen); background: var(--deep);
  border: 1px solid var(--rule); border-radius: 2px; padding: 13px 14px; min-height: 48px;
}
.form textarea { resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: rgba(236, 230, 216, .4); }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline-offset: 0; border-color: var(--brass); }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--brass) 50%), linear-gradient(-45deg, transparent 50%, var(--brass) 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.submit { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 6px; }
.fine { font-size: .875rem; color: var(--soft); }
.trap { position: absolute; left: -9999px; }

.foot { display: flex; justify-content: space-between; align-items: baseline; padding: 40px 0 56px; border-top: 1px solid var(--rule); color: var(--soft); }
.foot .mark { color: var(--linen); }

.thanks { padding: 40px 0 120px; }
.thanks h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin: 18vh 0 24px; }
.thanks .lede { margin-bottom: 32px; }

/* Tablet */
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .kinds { grid-template-columns: 1fr 1fr; }
  .apply { grid-template-columns: 1fr; gap: 40px; }
  .seat .role { font-size: 1.0625rem; }
}

/* Phone: the table turns lengthways. Seat i still faces seat i+5. */
@media (max-width: 720px) {
  .wrap { width: calc(100% - 40px); }
  .top nav a:not(.btn) { display: none; }
  .table { grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); grid-template-rows: repeat(5, auto); gap: 12px; }
  .cloth { grid-column: 2; grid-row: 1 / 6; flex-direction: column; }
  .seat { grid-column: 1; grid-row: auto; min-height: 104px; padding: 14px 10px; }
  .seat:nth-of-type(n+6) { grid-column: 3; grid-row: auto; }
  .seat:nth-of-type(1), .seat:nth-of-type(6) { grid-row: 1; }
  .seat:nth-of-type(2), .seat:nth-of-type(7) { grid-row: 2; }
  .seat:nth-of-type(3), .seat:nth-of-type(8) { grid-row: 3; }
  .seat:nth-of-type(4), .seat:nth-of-type(9) { grid-row: 4; }
  .seat:nth-of-type(5), .seat:nth-of-type(10) { grid-row: 5; }
  .steps, .kinds, .form { grid-template-columns: 1fr; }
  .tier { font-size: 1.5rem; }
  .price { font-size: 1.0625rem; }
  .foot { flex-direction: column; gap: 8px; }
}

.legal h1 { margin-top: 12vh; }
.legal h2 { font-size: 1.375rem; margin: 40px 0 8px; }
.legal p { max-width: 62ch; margin: 0 0 16px; }

.join h1 { margin-top: 12vh; }
.join .tiers { max-width: 640px; margin-top: 40px; }
.join form { margin: 0; }
.choose { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.btn-quiet { background: transparent; color: var(--linen); box-shadow: inset 0 0 0 1px var(--brass); }
.btn-quiet:hover { background: transparent; color: var(--brass-hi); }

.picks { border: 0; padding: 0; margin: 0; min-width: 0; }
.picks legend { font-size: .9375rem; padding: 0; margin-bottom: 10px; }
.picks div { display: flex; flex-wrap: wrap; gap: 8px; }
.picks label { flex-direction: row; align-items: center; gap: 0; cursor: pointer; }
.picks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.picks label span, .picks label { font-size: .9375rem; }
.picks label { position: relative; font-size: .9375rem; padding: 9px 14px; border: 1px solid var(--rule); border-radius: 999px; color: var(--soft); min-height: 40px; }
.picks label:hover { color: var(--linen); border-color: var(--brass); }
.picks label:has(input:checked) { background: var(--brass); border-color: var(--brass); color: var(--door); }
.picks label:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 3px; }

/* The host's admin panel: quiet, dense, readable */
.admin main { padding: 24px 0 96px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.admin-top nav { display: flex; gap: 28px; align-items: center; }
.admin-top nav a, .admin-top .link { color: var(--soft); text-decoration: none; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.admin-top nav a:hover, .admin-top .link:hover { color: var(--linen); }
.admin-top form { margin: 0; }
.admin h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 32px 0 12px; }
.admin h2 { font-size: 1.375rem; margin: 0 0 16px; }
.admin .lede { max-width: 60ch; font-size: 1.0625rem; }
.admin-login { max-width: 420px; grid-template-columns: 1fr; margin-top: 24px; }
.error { color: #F0B4A8; }
.notice { background: var(--deep); border-left: 2px solid var(--brass); padding: 12px 16px; max-width: 62ch; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 24px; }
.tabs a { color: var(--soft); text-decoration: none; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; }
.tabs a[aria-current] { color: var(--door); background: var(--brass); border-color: var(--brass); }
.tabs span { margin-left: 4px; opacity: .8; }
.queue { width: 100%; border-collapse: collapse; }
.queue th { text-align: left; font-weight: 500; color: var(--soft); font-size: .875rem; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
.queue td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--rule); }
.queue a { color: var(--linen); text-decoration-color: var(--brass); text-underline-offset: 4px; }
.empty, .meta, .back { color: var(--soft); }
.back { margin: 24px 0 0; }
.tag { display: inline-block; font-size: .8125rem; padding: 3px 10px; margin: 0 6px 6px 0; border-radius: 999px; background: rgba(201, 168, 106, .18); color: var(--brass-hi); }
.tag.read { background: transparent; box-shadow: inset 0 0 0 1px var(--rule); color: var(--soft); }
.tags { margin: 10px 0 0; }
.review-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; margin-top: 32px; align-items: start; }
.answers { margin: 0 0 40px; }
.answers div { padding: 18px 0; border-top: 1px solid var(--rule); }
.answers dt { color: var(--soft); font-size: .875rem; }
.answers dd { margin: 6px 0 0; font-size: 1.125rem; }
.matches ol, .seats { padding-left: 1.2em; margin: 0; }
.matches li, .seats li { padding: 10px 0; }
.matches a, .seats a { color: var(--linen); }
.matches li span, .seats li span { display: block; color: var(--soft); font-size: .9375rem; }
.review, .email { display: flex; flex-direction: column; gap: 16px; background: var(--deep); padding: 24px; margin-bottom: 24px; }
.review label, .email label { display: flex; flex-direction: column; gap: 8px; font-size: .9375rem; }
.review select, .review textarea, .email input, .email textarea { font: inherit; color: var(--linen); background: var(--door); border: 1px solid var(--rule); border-radius: 2px; padding: 11px 12px; }
.score { border: 0; padding: 0; margin: 0; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.score legend { padding: 0; margin-bottom: 6px; width: 100%; }
.score legend span { display: block; color: var(--soft); font-size: .875rem; }
.score label { flex-direction: row; align-items: center; gap: 6px; }
.picks label:has(input:disabled) { opacity: .4; cursor: default; }
.score input { accent-color: var(--brass); width: 18px; height: 18px; }
.advice { margin: 0; color: var(--brass-hi); }
.review .btn, .email .btn { align-self: flex-start; }
@media (max-width: 600px) { .admin-top nav { gap: 16px; font-size: .9375rem; white-space: nowrap; } }
@media (max-width: 860px) { .review-grid { grid-template-columns: 1fr; gap: 32px; } .queue th:nth-child(3), .queue td:nth-child(3) { display: none; } }
.queue td .meta { display: block; margin-top: 2px; font-size: .875rem; }

/* The welcome page (welcome.js): one view at a time */
[hidden] { display: none !important; }
button.link { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.join .notice { margin: 0 0 24px; }
.join .tiers .fine { margin-top: 12px; }
.join .choose + .fine { margin-top: 28px; }
.join section > .choose { margin-bottom: 24px; }
.join .fine .link { display: inline-block; min-height: 24px; line-height: 24px; }
.join .points { max-width: 60ch; padding-left: 1.2em; margin: 0 0 24px; color: var(--soft); }
.join .points li { margin: 6px 0; }
.form label.show { flex-direction: row; align-items: center; gap: 10px; cursor: pointer; }
.form label.show input { width: 18px; height: 18px; min-height: 0; padding: 0; accent-color: var(--brass); }
.join .confirm { background: var(--deep); border-left: 2px solid var(--brass); padding: 16px; max-width: 62ch; margin-bottom: 24px; }
.join .confirm p { margin: 0; }
.join form + .fine{margin-top:24px}
