/* Red Fridge Society — fridgeATX.com
   Black ground, off-white text, logo red for outlines and accents only. */

:root {
  --black: #000;
  --text: #efe9dc;
  --text-soft: #d9d2c3;
  --text-label: #c9c1b2;
  --text-muted: #a9a192;
  --rule: #3a3630;
  --red: #ef4136;
  --deco: "Poiret One", "Century Gothic", sans-serif;
  --serif: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
a:hover { opacity: 0.8; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}
em { font-style: italic; }

/* ---------- shared pieces ---------- */

.deco {
  font-family: var(--deco);
  font-weight: 400;
  text-transform: uppercase;
}

.btn {
  display: inline-block;
  font-family: var(--deco);
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.34em;
  font-size: clamp(18px, 1.9vw, 24px);
  padding: 16px 40px 16px 48px;
  border: 3px solid var(--red);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.btn--small {
  font-size: 16px;
  letter-spacing: 0.3em;
  padding: 12px 22px 12px 26px;
  border-width: 2px;
}

.section { padding: 0 var(--gutter) 128px; }
.wrap { max-width: 1080px; margin: 0 auto; }
.wrap--wide { max-width: 1200px; }
.wrap--narrow { max-width: 860px; }
.stack { display: flex; flex-direction: column; gap: 48px; }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.section-head h2 {
  margin: 0;
  font-family: var(--deco);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: 0.4em;
  padding-left: 0.4em;
  text-transform: uppercase;
}
.section-head p { margin: 0; font-style: italic; color: var(--text-muted); }

/* ---------- threshold (opening screen) ---------- */

.threshold {
  min-height: 780px;
  padding: 28px var(--gutter) 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
}
.nav {
  align-self: stretch;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 36px;
}
.nav a:not(.btn) {
  font-family: var(--deco);
  text-transform: uppercase;
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.3em;
  padding: 12px 0;
}
.threshold__center {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
  text-align: center;
}
.threshold__mark { width: clamp(200px, 24vw, 310px); height: auto; }
.threshold h1 {
  margin: 0;
  font-family: var(--deco);
  font-weight: 400;
  font-size: clamp(18px, 2vw, 25px);
  letter-spacing: 0.3em;
  padding-left: 0.3em;
  text-transform: uppercase;
}
.threshold__whisper { font-style: italic; font-size: 18px; color: var(--text-muted); }

.porch { position: relative; height: clamp(360px, 46vw, 640px); overflow: hidden; }
.porch img { width: 100%; height: 100%; object-fit: cover; object-position: center 44%; }
.porch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #000 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 72%, #000 100%);
}

/* ---------- what is the society ---------- */

.society { padding: 96px var(--gutter) 120px; }
.society .wrap {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}
.society p {
  margin: 0;
  font-size: clamp(22px, 2.1vw, 27px);
  line-height: 1.55;
  text-wrap: balance;
}

/* ---------- the code ---------- */

.code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 0 72px;
}
.tenet { display: flex; gap: 28px; padding: 40px 0; border-top: 1px solid var(--rule); }
.tenet__num {
  flex: 0 0 56px;
  font-family: var(--deco);
  font-size: 44px;
  line-height: 1;
  color: var(--red);
}
.tenet h3 {
  margin: 0 0 12px;
  font-family: var(--deco);
  font-weight: 400;
  font-size: 25px;
  letter-spacing: 0.24em;
  line-height: 1.3;
  text-transform: uppercase;
}
.tenet p { margin: 0; color: var(--text-soft); }

/* ---------- the house ---------- */

.photo-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 20px;
}
.photo-row figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.photo-row img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.92);
}
figcaption.deco, .photo-row figcaption {
  font-family: var(--deco);
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.26em;
  color: var(--text-label);
}
.rooms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 0 40px;
}
.room { padding: 24px 0; border-top: 1px solid var(--rule); }
.room__name {
  font-family: var(--deco);
  text-transform: uppercase;
  font-size: 22px;
  letter-spacing: 0.24em;
}
.room__note { font-size: 17px; color: var(--text-muted); }

/* ---------- what's fresh (events ledger) ---------- */

.ledger { display: flex; flex-direction: column; border-bottom: 1px solid var(--rule); }
.ledger__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 32px;
  padding: 26px 0;
  border-top: 1px solid var(--rule);
}
.ledger__date {
  flex: 0 0 170px;
  font-family: var(--deco);
  text-transform: uppercase;
  font-size: 18px;
  letter-spacing: 0.2em;
  color: var(--red);
}
.ledger__img {
  flex: 0 0 150px;
  width: 150px;
  height: 100px;
  object-fit: cover;
  opacity: 0.85;
  filter: saturate(0.85);
  border: 1px solid var(--rule);
}
.ledger__tag {
  font-family: var(--deco);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--red);
  margin-bottom: 4px;
}
.ledger__body { flex: 1 1 280px; }
.ledger__title {
  font-family: var(--deco);
  text-transform: uppercase;
  font-size: 25px;
  letter-spacing: 0.2em;
  line-height: 1.3;
}
.ledger__blurb { font-size: 18px; color: var(--text-muted); }
.ledger__rsvp, .text-link {
  font-family: var(--deco);
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 0.28em;
  padding: 12px 0;
  text-underline-offset: 7px;
  text-decoration-color: var(--red);
}
.ledger__more { text-align: center; margin: 28px 0 0; }
.ledger__empty { padding: 26px 0; border-top: 1px solid var(--rule); font-style: italic; color: var(--text-muted); text-align: center; }
.center { text-align: center; }

/* ---------- leftovers ---------- */

.leftovers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 28px 20px;
}
.leftover { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.leftover img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.9);
}
.leftover__title {
  display: block;
  font-family: var(--deco);
  text-transform: uppercase;
  font-size: 17px;
  letter-spacing: 0.22em;
}
.leftover__date { display: block; font-size: 16px; font-style: italic; color: var(--text-muted); }

/* ---------- seen fridge-side ---------- */

.guests { display: flex; flex-direction: column; border-bottom: 1px solid var(--rule); }
.guest {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 24px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}
.guest__name {
  font-family: var(--deco);
  text-transform: uppercase;
  font-size: 25px;
  letter-spacing: 0.22em;
}
.guest__role { font-style: italic; color: var(--text-muted); }
.quote { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.quote p { margin: 0; font-size: 26px; font-style: italic; line-height: 1.45; }
.quote footer {
  font-family: var(--deco);
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.26em;
  color: var(--text-label);
}

/* ---------- by application only ---------- */

.apply-band {
  padding: 112px var(--gutter);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.apply-band .wrap {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}
.apply-band__mark { width: 72px; height: auto; }
.apply-band h1, .apply-band h2 {
  margin: 0;
  font-family: var(--deco);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: 0.24em;
  padding-left: 0.24em;
  line-height: 1.25;
  text-transform: uppercase;
}
.apply-band p { margin: 0; font-size: 23px; text-wrap: balance; }
.tiers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 40px;
  font-size: 19px;
  color: var(--text-label);
}
.tiers .deco { letter-spacing: 0.22em; color: var(--text); }

/* ---------- footer ---------- */

.footer { padding: 88px var(--gutter) 56px; }
.footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  text-align: center;
}
.footer__motto { font-size: clamp(30px, 3.6vw, 46px); font-style: italic; line-height: 1.2; }
.newsletter { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; max-width: 520px; }
.newsletter__label {
  font-family: var(--deco);
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 0.28em;
}
.newsletter iframe { width: 100%; height: 60px; border: 0; background: transparent; }
.footer__logo { width: 240px; height: auto; }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 36px;
  font-size: 17px;
  color: var(--text-muted);
}
.footer__links a { padding: 12px 0; text-underline-offset: 5px; }

/* ---------- apply page ---------- */

.page-top { padding: 28px var(--gutter) 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.page-top img { width: 64px; height: auto; }
.apply-page { padding: 72px var(--gutter) 120px; }
.apply-page .wrap {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}
.apply-page h1 {
  margin: 0;
  font-family: var(--deco);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: 0.24em;
  padding-left: 0.24em;
  line-height: 1.25;
  text-transform: uppercase;
}
.apply-page h2 {
  margin: 24px 0 0;
  font-family: var(--deco);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.3em;
  padding-left: 0.3em;
  text-transform: uppercase;
}
.apply-page p { margin: 0; font-size: 23px; text-wrap: balance; }

@media (max-width: 600px) {
  body { font-size: 19px; }
  .nav { justify-content: center; gap: 4px 22px; }
  .threshold { min-height: 660px; }
  .ledger__date { flex-basis: 100%; }
  .ledger__img { flex-basis: 100%; width: 100%; height: 170px; }
  .tenet { gap: 18px; }
  .tenet__num { flex-basis: 40px; font-size: 36px; }
  .section { padding-bottom: 96px; }
}

/* ---------- application form ---------- */

.apply-form {
  width: 100%;
  max-width: 600px;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  text-align: left;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--deco);
  font-size: 16px;
  letter-spacing: 0.2em;
  color: var(--text-label);
}
.field .req { color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid #8c8578;
  border-radius: 0;
  background: #000;
  color: var(--text);
  font-family: var(--serif);
  font-size: 20px;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); outline: none; }
.field--trap { position: absolute; left: -9999px; }
.apply-form .btn { align-self: flex-start; }
.apply-form .btn[disabled] { opacity: 0.5; cursor: default; }
.apply-form__status { margin: 0; font-size: 19px !important; font-style: italic; color: var(--text-label); min-height: 1.6em; text-align: left; }

/* ---------- leftovers gallery ---------- */
.leftover { cursor: zoom-in; }
.leftover:focus-visible { outline: 1px solid var(--red); outline-offset: 6px; }
.no-scroll { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.96);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 56px 64px 72px;
}
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__cap {
  position: absolute; left: 0; right: 0; bottom: 22px; text-align: center;
  font-family: var(--deco); text-transform: uppercase; font-size: 14px; letter-spacing: 0.22em; color: var(--text-muted);
}
.lightbox__btn {
  position: absolute; background: none; border: 0; color: var(--text); cursor: pointer;
  font-family: var(--deco); font-size: 54px; line-height: 1; padding: 12px 18px;
}
.lightbox__btn:hover, .lightbox__btn:focus-visible { color: var(--red); }
.lightbox__prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 6px; top: 50%; transform: translateY(-50%); }
.lightbox__close { right: 10px; top: 6px; }
@media (max-width: 600px) { .lightbox { padding: 56px 8px 72px; } }

/* ---------- recorded talks ---------- */
.talks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 32px; }
.talk { display: block; text-decoration: none; color: inherit; }
.talk__frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--rule); background: #0b0b0b; }
.talk__frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0.82; filter: saturate(0.85); transition: opacity 0.3s; }
.talk__play {
  position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px;
  border: 1px solid var(--red); border-radius: 50%; background: rgba(0, 0, 0, 0.45);
}
.talk__play::after {
  content: ""; position: absolute; left: 23px; top: 17px;
  border-left: 16px solid var(--red); border-top: 12px solid transparent; border-bottom: 12px solid transparent;
}
.talk:hover .talk__frame img, .talk:focus-visible .talk__frame img { opacity: 1; }
.talk:focus-visible { outline: 1px solid var(--red); outline-offset: 6px; }
.talk__title { font-family: var(--deco); text-transform: uppercase; font-size: 21px; letter-spacing: 0.18em; margin-top: 18px; }
.talk__blurb { font-size: 18px; color: var(--text-muted); margin-top: 4px; }
@media (max-width: 900px) { .talks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .talks { grid-template-columns: 1fr; } }

/* ---------- apply page FAQ ---------- */
.faq { width: 100%; max-width: 640px; margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 0; }
.faq__item { width: 100%; padding: 30px 0; border-top: 1px solid var(--rule); }
.faq__item:last-child { border-bottom: 1px solid var(--rule); }
.faq__item h3 { margin: 0 0 12px; font-family: var(--deco); font-weight: 400; text-transform: uppercase; font-size: 20px; letter-spacing: 0.2em; line-height: 1.4; }
.faq__item p { font-size: 20px; color: var(--text-soft); }
