/* Teen Twin Cities — styles
   ===============================================================
   Plain CSS, no framework. All the colors, fonts, and spacing
   knobs live in the :root block so they're easy to change once.
*/

:root {
  /* colors */
  --bg: #fdf9f3; /* warm paper background */
  --surface: #ffffff; /* cards, white sections */
  --ink: #17171a; /* near-black — headings, borders */
  --ink-soft: #55524d; /* body text, captions */
  --accent: #e8620c; /* punchy amber-orange — buttons, links */
  --accent-ink: #ad4809; /* darker accent for hover */
  --highlight: #ffd27a; /* "highlighter pen" yellow */
  --dark: #1c1b19; /* dark section background */
  --dark-soft: #2c2a27; /* cards inside the dark section */
  --border: #ece1d1; /* soft borders */

  /* type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;

  /* shape */
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(23, 23, 26, 0.06),
    0 6px 18px rgba(23, 23, 26, 0.06);
  --shadow-lg: 0 24px 60px -18px rgba(23, 23, 26, 0.32);

  --wrap: 1080px;
  --wrap-narrow: 680px;
}

/* --- base --- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* stop the tilted preview card causing sideways scroll */
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
}

p {
  margin: 0;
}

strong {
  font-weight: 700;
}

img {
  max-width: 100%;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap--narrow {
  max-width: var(--wrap-narrow);
}

/* --- highlighter-pen effect on a word --- */
.hl {
  background-image: linear-gradient(
    120deg,
    var(--highlight),
    var(--highlight)
  );
  background-repeat: no-repeat;
  background-size: 100% 40%;
  background-position: 0 88%;
  padding: 0 0.06em;
}

/* --- buttons --- */
.btn {
  display: inline-block;
  flex-shrink: 0;
  padding: 15px 26px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s ease;
}

.btn:hover {
  background: var(--accent-ink);
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink);
}

.btn:disabled {
  opacity: 0.65;
  cursor: default;
  transform: none;
  box-shadow: 3px 3px 0 var(--ink);
}

.btn--sm {
  padding: 10px 18px;
  font-size: 0.92rem;
  box-shadow: 2px 2px 0 var(--ink);
}

/* --- header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(253, 249, 243, 0.9);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 2px solid var(--ink);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.wordmark__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--highlight);
  flex-shrink: 0;
}

/* --- hero --- */
.hero {
  padding: 64px 0 72px;
  background: linear-gradient(180deg, var(--highlight) -40%, var(--bg) 55%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.eyebrow--center {
  text-align: center;
}

.eyebrow--ondark {
  color: var(--highlight);
}

.hero__title {
  font-size: clamp(2.4rem, 5vw + 1rem, 3.7rem);
}

.hero__lede {
  margin: 22px 0 30px;
  font-size: 1.16rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero__early {
  margin: 18px 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* hero photo with an offset color block behind it */
.hero__media {
  position: relative;
}

.hero__media::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 22px;
  left: 22px;
  right: -22px;
  bottom: -22px;
  background: var(--accent);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
}

.hero__photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* --- signup card ---
   The card is ours; the form inside it is loaded from beehiiv
   (see index.html). The beehiiv <script> renders an <iframe>, so
   we give the card a min-height to avoid a layout jump while it
   loads. */
.signup {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  max-width: 520px;
}

.signup iframe {
  border: 0;
  width: 100%;
  min-height: 56px;
  color-scheme: light; /* keep the beehiiv form light in dark-mode browsers */
}

.signup__fineprint {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.signup--onbright {
  margin: 0 auto;
}

/* --- generic section --- */
.section {
  padding: 76px 0;
}

.section--white {
  background: var(--surface);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.section--dark {
  background: var(--dark);
  color: #f3efe8;
  border-bottom: 2px solid var(--ink);
}

.section--dark .section__title {
  color: #fff;
}

.section__title {
  font-size: clamp(1.8rem, 3vw + 0.7rem, 2.6rem);
}

.section__title--center {
  text-align: center;
}

.section__intro {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 52ch;
}

.section--dark .section__intro {
  color: #cbc5ba;
}

.section__intro--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* --- features grid --- */
.features {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr); /* 3 across, 2 rows */
}

.feature {
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.feature:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.feature__icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
  line-height: 1;
}

.feature__title {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.feature__text {
  font-size: 0.98rem;
  color: var(--ink-soft);
}

/* --- peek inside (mock newsletter) --- */
.peek__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}

.peek__card {
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--accent), 6px 6px 0 2px var(--ink);
  padding: 24px;
  margin: 4px 10px 4px 0;
  transform: rotate(-1deg);
  transition: transform 0.15s ease;
}

.peek__card:hover {
  transform: rotate(0deg);
}

.peek__card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 14px;
}

.peek__card-head strong {
  font-family: var(--font-display);
  font-weight: 900;
  display: block;
}

.peek__date {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.peek__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.peek__list li {
  font-size: 0.96rem;
  padding-left: 4px;
}

.peek__note {
  margin: 16px 0 0;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* --- reasons (inside dark section) --- */
.reasons {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.reason {
  background: var(--dark-soft);
  border: 2px solid #43403a;
  border-radius: var(--radius);
  padding: 24px;
}

.reason__icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 10px;
  line-height: 1;
}

.reason__title {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 4px;
}

.reason__text {
  font-size: 0.96rem;
  color: #c7c1b6;
}

/* --- FAQ --- */
.faq {
  margin-top: 40px;
  border-top: 2px solid var(--ink);
}

.faq__item {
  border-bottom: 2px solid var(--ink);
}

.faq__q {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  padding: 20px 40px 20px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-family: var(--font-body);
  line-height: 1;
}

.faq__item[open] .faq__q::after {
  content: "–";
}

.faq__q:focus-visible {
  outline: 3px solid var(--highlight);
  outline-offset: 2px;
}

.faq__a {
  padding: 0 0 22px;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* --- closing CTA --- */
.closer {
  background: var(--highlight);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 76px 0;
}

.closer__inner {
  text-align: center;
}

.closer__title {
  font-size: clamp(1.9rem, 3.4vw + 0.7rem, 2.8rem);
  max-width: 18ch;
  margin: 0 auto;
}

.closer__text {
  margin: 18px 0 28px;
  font-size: 1.1rem;
  font-weight: 600;
}

.closer .signup {
  text-align: left;
}

.closer__fineprint {
  margin: 14px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
}

/* --- footer --- */
.site-footer {
  background: var(--bg);
  padding: 44px 0 56px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.site-footer__inner > p {
  margin: 6px 0;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--ink);
}

.site-footer__links a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.site-footer__links a:hover {
  color: var(--accent-ink);
}

.site-footer__fine {
  font-size: 0.82rem;
  margin-top: 14px !important;
}

.site-footer a {
  color: var(--accent-ink);
}

/* --- standalone text pages (e.g. privacy) --- */
.textpage {
  max-width: var(--wrap-narrow);
  margin: 0 auto;
  padding: 64px 24px 72px;
}

.textpage h1 {
  font-size: clamp(1.9rem, 3vw + 1rem, 2.6rem);
  margin-bottom: 24px;
}

.textpage h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 36px 0 10px;
}

.textpage p {
  color: var(--ink-soft);
  margin: 12px 0;
}

.textpage a {
  color: var(--accent-ink);
}

.textpage__back {
  display: inline-block;
  margin-bottom: 28px;
  font-weight: 600;
  color: var(--accent-ink);
  text-decoration: none;
}

/* --- responsive --- */
@media (max-width: 900px) {
  .hero__grid,
  .peek__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__media {
    max-width: 460px;
  }

  .hero__media::before {
    right: -16px;
    bottom: -16px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 17px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .section,
  .hero,
  .closer {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .site-header__cta {
    padding: 9px 14px;
  }
}

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

  * {
    transition: none !important;
  }

  .peek__card {
    transform: none;
  }
}
