/* The Room — Goodstory
   Fonts: PP Editorial New + PP Neue Montreal (files live alongside this stylesheet). */

@font-face { font-family: "Editorial"; src: url("editorial-new-ultralight.woff") format("woff"); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: "Editorial"; src: url("editorial-new-ultralight-italic.woff") format("woff"); font-weight: 200; font-style: italic; font-display: swap; }
@font-face { font-family: "Montreal"; src: url("neue-montreal-book.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Montreal"; src: url("neue-montreal-medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --cream: #fffffc;
  --paper: #faf9f7;
  --stone: #eaeae7;
  --ink: #1d2230;
  --muted: #5d6272;
  --blue: #33509e;
  --red: #eb3416;
  --lavender: #dcd0e7;
  --green: #1b5125;

  --serif: "Editorial", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Montreal", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* Brand marks — PNGs used as masks so they can take any brand color */
.peace, .wordmark { display: block; background: var(--blue); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: center; mask-position: center; }
.peace { -webkit-mask-image: url("goodstory-peace.png"); mask-image: url("goodstory-peace.png"); width: 30px; aspect-ratio: 200 / 370; }
.badge { width: 112px; height: auto; flex: none; }
.wordmark { -webkit-mask-image: url("goodstory-wordmark.png"); mask-image: url("goodstory-wordmark.png"); width: clamp(150px, 18vw, 250px); aspect-ratio: 900 / 180; }

/* Masthead — mirrors itsagoodstory.com */
.masthead {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px var(--gutter);
}
.masthead__peace { justify-self: start; }
.masthead__cta {
  justify-self: end;
  color: var(--blue);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 15px;
}
.masthead__cta:hover { color: var(--red); }

/* Hero */
.hero__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
/* Your photo, darkened so the white headline reads. The grain comes from the photo itself. */
.hero__banner {
  position: relative;
  padding: clamp(200px, 22vw, 320px) 0 clamp(64px, 8vw, 112px);
  background-color: #1d1d1d;
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.28) 30%, rgba(0,0,0,.38) 70%, rgba(0,0,0,.55) 100%),
    url("room-hero.jpg");
  background-size: cover;
  background-position: center 10%;
}
.hero__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 200;
  color: #fff;
  font-size: clamp(84px, 17vw, 240px);
  line-height: .86;
  letter-spacing: -.035em;
}
.hero__sub {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.15;
  color: #fff;
}
.hero__body {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(28px, 6vw, 96px);
}
/* Lavender "breathing room" block for the intro, per the brand guidelines */
.hero__intro { color: var(--blue); background: var(--lavender); padding: clamp(56px, 8vw, 104px) 0; margin-bottom: clamp(48px, 7vw, 88px); }
.hero__lede {
  margin: 0;
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.22;
}
.hero__copy p { margin: 0 0 1em; max-width: 34em; }
.hero__find {
  display: inline-flex;
  gap: .4em;
  margin-top: .4em;
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--red);
  text-decoration: none;
}
.hero__find:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* Directory */
.directory {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(72px, 10vw, 140px);
  scroll-margin-top: 0;
}
.controls {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--cream);
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--ink);
}
.controls__row { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.search { flex: 1 1 280px; }
.search input {
  width: 100%;
  font: inherit;
  font-size: 18px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--muted);
  border-radius: 0;
  padding: 8px 0;
  -webkit-appearance: none;
  appearance: none;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-bottom-color: var(--blue); }

.toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle, .cat {
  font: inherit;
  cursor: pointer;
  border-radius: 999px;
  transition: background-color .15s, color .15s, border-color .15s;
}
.toggle {
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 8px 16px;
  color: var(--blue);
  background: transparent;
  border: 1px solid var(--blue);
}
.toggle:hover { background: var(--lavender); }
.toggle[aria-pressed="true"] { background: var(--blue); color: #fff; }

.cats { display: flex; gap: 6px 18px; flex-wrap: wrap; margin-top: 14px; }
.cat {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 2px 0;
  font-size: 15px;
  color: var(--muted);
  border-bottom: 1px solid transparent;
}
.cat:hover { color: var(--ink); }
.cat[aria-pressed="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.count { margin: 12px 0 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.section { margin-top: clamp(40px, 6vw, 72px); }
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
}
.section__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  color: var(--blue);
}
.section__n { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.group {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) minmax(0, 16.5rem);
  gap: 8px 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--stone);
}
.group__idx { font-size: 13px; color: var(--muted); padding-top: 9px; font-variant-numeric: tabular-nums; }
.group__name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.1;
}
.group__name a { text-decoration: none; background-image: linear-gradient(var(--red), var(--red)); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .25s; }
.group__name a:hover { background-size: 100% 1px; color: var(--ink); }
.group__name .arrow { font-family: var(--sans); font-size: .5em; color: var(--red); vertical-align: .45em; margin-left: .25em; }
.group__desc { margin: 8px 0 0; max-width: 40em; }
.group__desc--missing { color: var(--muted); }
.group__note {
  margin: 12px 0 0;
  max-width: 40em;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.35;
  color: var(--blue);
}
.group__note::before { content: "Gina’s note: "; font-family: var(--sans); font-style: normal; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-right: .35em; }
.group__nolink { font-size: 13px; color: var(--muted); margin: 8px 0 0; }

.tags { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; padding: 6px 0 0; list-style: none; margin: 0; }
.tag {
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1;
  padding: 7px 10px;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid var(--stone);
  color: var(--ink);
  background: var(--paper);
}
.tag--free { background: #fff; border-color: var(--green); color: var(--green); }
.tag--paid { background: #fff; border-color: var(--ink); }
.tag--open { background: #fff; border-color: var(--blue); color: var(--blue); }
.tag--referral { background: var(--blue); border-color: var(--blue); color: #fff; }
.tag--women { background: var(--lavender); border-color: var(--lavender); color: var(--ink); }
.tag--unknown { color: var(--muted); background: transparent; border-style: dashed; border-color: #c9c9c4; }

.empty { padding: 56px 0; }
.empty p { margin: 0 0 10px; font-family: var(--serif); font-size: 32px; font-weight: 200; }
.link-button { font: inherit; background: none; border: 0; padding: 0; color: var(--red); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* Brand of You — the green block from the main site */
.byou { background: var(--green); color: #fff; }
.byou__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 140px) var(--gutter);
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 24px clamp(28px, 6vw, 96px);
  align-items: end;
}
.eyebrow { grid-column: 1 / -1; margin: 0; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--lavender); }
.byou__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: .98;
  letter-spacing: -.02em;
}
.byou__title em { color: var(--lavender); }
.byou__copy p { margin: 0 0 1em; }
.button {
  display: inline-block;
  margin-top: .6em;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--lavender);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background-color .15s, color .15s;
}
.button:hover { background: #fff; }

/* Footer */
.footer { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--gutter) 40px; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.footer__title { margin: 0; font-family: var(--serif); font-weight: 200; font-size: clamp(38px, 5vw, 68px); line-height: 1.02; color: var(--blue); }
.footer__sub { margin: 14px 0 0; font-size: 19px; }
.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 32px;
  margin-top: 56px;
  padding: 18px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.footer__links a { text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; color: var(--blue); }
.footer__links a:hover { color: var(--red); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.footer__base p { margin: 0; }

/* Small screens */
@media (max-width: 820px) {
  .hero__body, .byou__inner { grid-template-columns: 1fr; }
  .group { grid-template-columns: 2.2rem minmax(0, 1fr); }
  .tags { grid-column: 2; padding-top: 4px; }
  .masthead__cta { font-size: 13px; }
  .peace { width: 24px; }
  .badge { width: 80px; }
}
@media (max-width: 520px) {
  .masthead { grid-template-columns: auto 1fr auto; gap: 12px; }
  .masthead__wordmark { justify-self: center; }
  .wordmark { width: 130px; }
  .controls { position: static; }
  .toggles { width: 100%; }
  .toggle { flex: 1 1 auto; padding: 8px 10px; font-size: 12px; }
  .cats { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .cats::-webkit-scrollbar { display: none; }
  .cat { white-space: nowrap; }
  .group { grid-template-columns: minmax(0, 1fr); }
  .group__idx { display: none; }
  .tags { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
.count__clear { margin-left: 14px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }

.button--blue { background: var(--blue); color: #fff; margin-top: 28px; }
.button--blue:hover { background: var(--red); color: #fff; }
.follow { display: flex; align-items: center; gap: 16px; }
.follow__label { text-transform: uppercase; letter-spacing: .08em; font-size: 14px; color: var(--muted); }
.follow a { display: inline-flex; transition: opacity .15s, transform .15s; }
.follow a:hover { opacity: .8; transform: translateY(-1px); }
.follow__icon { height: 26px; width: auto; }

/* Header sits on the dark photo */
.masthead .peace, .masthead .wordmark { background: #fff; }
.masthead__cta { color: #fff; }
.masthead__cta:hover { color: var(--lavender); }
.hero__intro .hero__find { color: var(--blue); }
.hero__banner .hero__inner { text-align: center; }

/* Flodesk sign-up form, in its own blue band after Brand of You */
.signup { background: var(--blue); }
.signup__inner { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter); }

/* Landing page: what's inside teaser */
.inside__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(56px, 8vw, 104px); }
.eyebrow--blue { color: var(--blue); margin-bottom: 14px; }
.inside__title { margin: 0; max-width: 18em; font-family: var(--serif); font-weight: 200; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; color: var(--blue); }
.inside__copy { margin: 20px 0 0; max-width: 34em; font-size: 18px; }
.inside__cats { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 28px 0 0; padding: 0; }
.inside__cats li { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; border: 1px solid var(--blue); border-radius: 999px; color: var(--blue); }

/* Soft gate on the list page */
.gate { display: none; }
.is-gated, .is-gated body { overflow: hidden; }
.is-gated .gate {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  background: rgba(20, 24, 34, .6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: gate-in .35s ease-out both;
}
@keyframes gate-in { from { opacity: 0; } to { opacity: 1; } }
.gate__card { width: 100%; max-width: 560px; margin: auto; text-align: center; }
.gate__card > div { box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.gate__fine { margin: 14px 0 0; font-size: 13px; color: #fff; }
.is-gated .directory__body {
  height: 900px;
  overflow: hidden;
  filter: blur(7px);
  opacity: .55;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(#000 45%, transparent);
  mask-image: linear-gradient(#000 45%, transparent);
}
.is-gated .byou { display: none; }

/* Brand of You: big, stacked headline like itsagoodstory.com */
.byou__inner { display: block; }
.byou__title {
  font-size: clamp(64px, 11.5vw, 176px);
  line-height: .84;
  letter-spacing: -.035em;
  margin: 0 0 clamp(40px, 6vw, 72px);
}
.byou__title span { display: block; }
.byou__title .byou__accent { color: var(--lavender); }
.byou__copy {
  max-width: 34em;
  margin-left: auto;
  padding-left: 72px;
  position: relative;
}
.byou__copy::before { content: ""; position: absolute; left: 0; top: .8em; width: 48px; border-top: 2px solid #fff; }
@media (max-width: 820px) {
  .byou__copy { margin-left: 0; padding-left: 0; padding-top: 24px; }
  .byou__copy::before { top: 0; }
}
@media (max-width: 520px) { .byou__title { font-size: 15.5vw; } }

/* Match itsagoodstory.com display type: very tight tracking, Title Case on big headlines */
.hero__title { letter-spacing: -.06em; }
.hero__sub { letter-spacing: -.035em; }
.byou__title { letter-spacing: -.055em; }
.footer__title { letter-spacing: -.045em; }
.section__title { letter-spacing: -.04em; text-transform: capitalize; }
.group__name { letter-spacing: -.025em; }
/* Brand of You: no dash, button centered under the copy */
.byou__copy { padding-left: 0; padding-top: 0; }
.byou__copy::before { display: none; }
.byou__copy .button { display: table; margin: 1em auto 0; }

/* Footer headline: big and stacked like the rest */
.footer__title { font-size: clamp(64px, 10vw, 150px); line-height: .84; letter-spacing: -.055em; }
.footer__title span { display: block; }
.footer__title .footer__accent { color: var(--red); }
.footer__sub { margin-top: 24px; }
@media (max-width: 520px) { .footer__title { font-size: 19vw; } }

/* Footer: headline, CTA and badge on one line, no dead space */
.footer__top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px clamp(32px, 5vw, 72px);
}
.footer__title { margin: 0; }
.footer__cta { padding-bottom: 10px; max-width: 24em; }
.footer__cta .footer__sub { margin: 0; }
.footer__cta .button--blue { margin-top: 20px; }
.footer .badge { align-self: start; }
.footer__base p { line-height: 1.6; }
@media (max-width: 820px) {
  .footer__top { grid-template-columns: 1fr auto; }
  .footer__cta { grid-column: 1 / -1; grid-row: 2; padding-bottom: 0; }
}
