/* =========================================================
   Rolodex of Interesting Weirdos — site styles
   Colors and fonts are defined once below; change them here.
   ========================================================= */

@font-face {
  font-family: "Ultra";
  src: url("assets/fonts/ultra.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Special Elite";
  src: url("assets/fonts/special-elite.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("assets/fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  /* Palette, taken from the channel artwork */
  --ink: #1a1511;          /* warm near-black page background */
  --ink-deep: #120e0b;     /* footer / deepest shadows */
  --cream: #f0e6d0;        /* main text on dark */
  --sepia: #c9b894;        /* secondary text on dark */
  --parchment: #e8d8b6;    /* index-card paper */
  --parchment-light: #f5ecd8; /* form fields */
  --oxblood: #8f2219;      /* the red in "INTERESTING" */
  --oxblood-dark: #6f1811;
  --brass: #c29545;        /* compass-star gold */
  --card-ink: #221a12;     /* text on parchment */
  --card-muted: #5a4731;   /* hints on parchment */

  /* Type */
  --font-display: "Ultra", "Rockwell Extra Bold", "Clarendon", Georgia, serif;
  --font-type: "Special Elite", "Courier New", Courier, monospace;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* Subtle paper grain, reused on dark and light surfaces */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .24 0 0 0 0 .12 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background-color: var(--ink);
  background-image:
    var(--grain),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(143, 34, 25, .16), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(194, 149, 69, .07), transparent 70%);
  background-size: 220px 220px, 100% 100%, 100% 100%;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  font-optical-sizing: auto;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brass); text-underline-offset: .18em; }
a:hover { color: var(--cream); }

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
}

h1, h2, h3 { margin: 0; font-weight: 400; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: .6rem 1rem;
  background: var(--parchment);
  color: var(--card-ink);
  font-family: var(--font-type);
  border-radius: 3px;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  padding: .85rem 1.6rem;
  background: var(--oxblood);
  color: var(--cream);
  border: 1px solid rgba(194, 149, 69, .55);
  border-radius: 3px;
  font-family: var(--font-type);
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--oxblood-dark), 0 8px 20px rgba(0, 0, 0, .35);
  transition: background-color .15s ease, transform .15s ease;
}
.button:hover { background: var(--oxblood-dark); color: var(--cream); }
.button:active { transform: translateY(1px); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(1rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2.5rem) 3rem;
  text-align: center;
}

.masthead {
  max-width: 1360px;
  margin: 0 auto;
}
.masthead img {
  margin: 0 auto;
  width: min(100%, 340px);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .6));
}

.hero-text {
  max-width: 40rem;
  margin: 2rem auto 0;
}

.tagline {
  margin: 0 0 1.25rem;
  font-family: var(--font-type);
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  line-height: 1.35;
  color: var(--parchment);
}

.intro {
  margin: 0 0 2rem;
  color: var(--sepia);
  text-align: left;
}

.hero-cta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .75rem 1.25rem;
}
.hero-cta-lead {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--cream);
}

/* Wide screens: show the full channel banner */
@media (min-width: 760px) {
  .masthead img {
    width: 100%;
    border-radius: 6px;
    filter: none;
    box-shadow:
      0 0 0 1px rgba(194, 149, 69, .25),
      0 30px 60px -20px rgba(0, 0, 0, .8);
  }
  .hero-text { margin-top: 3rem; }
  .intro { text-align: center; }
}

/* ---------- Star divider ---------- */
.star-divider {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 3rem;
  fill: var(--brass);
}

/* ---------- Who we're looking for ---------- */
.seeking {
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem) 3rem;
}

.seeking-grid {
  max-width: 68rem;
  margin: 0 auto;
  display: grid;
  gap: 3rem;
}

.seeking h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 2.75rem);
  line-height: 1.12;
  color: var(--cream);
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.seeking-intro > p { margin: 0 0 2.25rem; color: var(--sepia); max-width: 34rem; }

.note-card {
  position: relative;
  max-width: 26rem;
  padding: 1.5rem 1.6rem 1.4rem;
  background-color: var(--parchment);
  background-image: var(--grain-paper), radial-gradient(ellipse at center, transparent 55%, rgba(120, 85, 40, .2));
  background-size: 220px 220px, 100% 100%;
  color: var(--card-ink);
  font-family: var(--font-type);
  font-size: 1.02rem;
  line-height: 1.55;
  transform: rotate(-1.5deg);
  box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .7);
}
.note-card::after {
  /* the short rule under the text, like the notes in the banner */
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  margin-top: 1rem;
  background: var(--card-ink);
}
.note-card p { margin: 0; }
.note-card .note-card-title {
  font-size: 1.3rem;
  margin-bottom: .6rem;
  color: var(--oxblood);
}

.seeking-list-lead {
  margin: 0 0 .75rem;
  font-family: var(--font-type);
  color: var(--parchment);
}

.seeking-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(194, 149, 69, .3);
}
.seeking-list li {
  position: relative;
  padding: .8rem 0 .8rem 2rem;
  border-bottom: 1px solid rgba(194, 149, 69, .3);
  font-size: 1.15rem;
  line-height: 1.4;
}
.seeking-list li::before {
  content: "";
  position: absolute;
  left: .15rem;
  top: 1.05rem;
  width: .95rem;
  height: .95rem;
  background: var(--brass);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}

@media (min-width: 900px) {
  .seeking-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
  }
  .seeking-list-wrap { padding-top: .5rem; }
}

/* ---------- Guest application (the index card) ---------- */
.apply {
  padding: 3rem clamp(.75rem, 3vw, 2.5rem) 6rem;
  scroll-margin-top: 1rem;
}
.apply:focus { outline: none; }

.index-card {
  position: relative;
  max-width: 46rem;
  margin: 2.5rem auto 0;
  padding: clamp(1.75rem, 5vw, 3.25rem) clamp(1.25rem, 5vw, 3.5rem) clamp(2rem, 5vw, 3rem);
  background-color: var(--parchment);
  background-image:
    var(--grain-paper),
    radial-gradient(ellipse at center, transparent 60%, rgba(120, 85, 40, .22));
  background-size: 220px 220px, 100% 100%;
  color: var(--card-ink);
  border-radius: 0 10px 10px 10px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .3) inset,
    0 40px 80px -30px rgba(0, 0, 0, .9),
    0 12px 24px -12px rgba(0, 0, 0, .6);
}

/* The rolodex tab sticking up from the top-left corner of the card */
.index-card-tab {
  position: absolute;
  left: 0;
  bottom: 100%;
  padding: .55rem 1.4rem .4rem;
  background-color: var(--parchment);
  background-image: var(--grain-paper);
  background-size: 220px 220px;
  border-radius: 8px 8px 0 0;
  font-family: var(--font-type);
  font-size: 1rem;
  color: var(--card-ink);
  white-space: nowrap;
}

.index-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4.4vw, 2.4rem);
  line-height: 1.15;
  color: var(--card-ink);
  text-wrap: balance;
}

.form-intro {
  margin: 1rem 0 0;
  padding-bottom: 1.5rem;
  color: var(--card-muted);
  /* the red header line of an index card */
  border-bottom: 2px solid var(--oxblood);
}

#guest-form { margin-top: 2rem; }

.field { margin-bottom: 1.6rem; }

.field label {
  display: block;
  margin-bottom: .4rem;
  font-weight: 650;
  font-size: 1.08rem;
  line-height: 1.4;
}

.optional { font-weight: 400; color: var(--card-muted); }

.hint {
  margin: -.15rem 0 .5rem;
  font-size: .98rem;
  color: var(--card-muted);
}

input[type="text"],
input[type="email"],
textarea {
  display: block;
  width: 100%;
  padding: .7rem .85rem;
  background: var(--parchment-light);
  color: var(--card-ink);
  border: 1px solid #8a7452;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 1.08rem;   /* 16px+ prevents iPhone zoom-on-focus */
  line-height: 1.5;
  box-shadow: 0 1px 2px rgba(60, 40, 20, .12) inset;
}
textarea { resize: vertical; min-height: 3.2rem; }

input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
textarea:focus-visible,
.field-check input:focus-visible {
  outline: 3px solid var(--oxblood);
  outline-offset: 2px;
  border-color: var(--oxblood);
}

.field-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .8rem;
  align-items: start;
  padding: 1rem 1.1rem;
  background: rgba(143, 34, 25, .06);
  border: 1px dashed rgba(143, 34, 25, .45);
  border-radius: 3px;
}
.field-check input {
  width: 1.35rem;
  height: 1.35rem;
  margin: .15rem 0 0;
  accent-color: var(--oxblood);
  cursor: pointer;
}
.field-check label {
  margin: 0;
  font-weight: 500;
  cursor: pointer;
}

.button-submit {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1.25rem;
}
.button-submit:focus-visible { outline-color: var(--card-ink); }
.button-submit[disabled] { opacity: .7; cursor: wait; }
@media (min-width: 560px) {
  .button-submit { width: auto; }
}

.form-status {
  margin: 1.25rem 0 0;
  font-size: 1.02rem;
  color: var(--oxblood);
  font-weight: 600;
}
.form-status:empty { display: none; }

/* Confirmation message after sending */
.confirmation { text-align: center; padding: 1.5rem 0 .5rem; }
.confirmation h2 { font-size: clamp(2.2rem, 7vw, 3.4rem); color: var(--oxblood); }
.confirmation h2:focus { outline: none; }
.confirmation p {
  max-width: 28rem;
  margin: 1.25rem auto 0;
  font-family: var(--font-type);
  font-size: 1.15rem;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 3rem 1.5rem 3.5rem;
  background: var(--ink-deep);
  border-top: 1px solid rgba(194, 149, 69, .25);
  text-align: center;
  color: var(--sepia);
  font-size: 1rem;
}
.site-footer p { margin: 0 0 .5rem; }
.footer-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 1rem !important;
}
.copyright { font-size: .92rem; margin-top: 1rem !important; }
