/* =========================================================================
   We Suffer Well — brand site
   Design tokens ported verbatim from the design handoff (hi-fi).
   ========================================================================= */

:root {
  /* Colors */
  --ink: #0D0F10;          /* near-black */
  --charcoal: #16191A;     /* dark surface */
  --body-ink: #16191A;     /* body ink on light */
  --longform: #2c2f2b;     /* long-form body */
  --muted-light: #5b5f57;  /* muted text on light */
  --bone-bg: #E4E2DB;      /* bone page background */
  --bone: #F1ECE3;         /* bone surface / card */
  --card-border: #cfcabf;
  --on-dark: #c8c3ba;      /* body on dark */
  --on-dark-muted: #9A968E;
  --divider: #23282a;      /* dark divider/border */
  --input-border: #33393b;
  --teal: #50ADAD;
  --teal-hover: #3d8f8f;
  --eyebrow-dark: #5b5f57; /* footer column headers */

  /* Type */
  --display: 'Archivo', system-ui, sans-serif;
  --body: 'Hanken Grotesk', system-ui, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: 26px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bone-bg);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  color: var(--body-ink);
  overflow-x: hidden;
}

a { color: var(--teal); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--teal-hover); }
p { text-wrap: pretty; }
img { max-width: 100%; display: block; }
::selection { background: var(--teal); color: var(--ink); }

/* Focus visibility for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.page { min-height: 100vh; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* Utility */
.eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--teal);
}
.mark { overflow: visible; display: block; }

/* Buttons / pills ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--display); font-weight: 800; font-size: 15px;
  letter-spacing: 0.02em; text-transform: uppercase;
  padding: 16px 30px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  line-height: 1;
}
.btn-solid { color: var(--ink); background: var(--teal); }
.btn-solid:hover { background: #62bcbc; color: var(--ink); transform: translateY(-2px); }
.btn-ghost { color: var(--bone); background: transparent; border: 1.5px solid var(--input-border); }
.btn-ghost:hover { border-color: var(--teal); color: var(--bone); transform: translateY(-2px); }
.btn-sm { font-size: 14px; padding: 14px 24px; }
.btn-outline-dark {
  color: var(--bone); background: var(--charcoal); border: 1px solid var(--divider);
  font-size: 13px; padding: 12px 20px;
}
.btn-outline-dark:hover { border-color: var(--teal); color: var(--bone); transform: translateY(-2px); }

/* Announcement bar ------------------------------------------------------ */
.announce {
  display: block; background: var(--teal); color: var(--ink); text-align: center;
  padding: 9px 20px; font-family: var(--display); font-weight: 800; font-size: 12.5px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.announce:hover { color: var(--ink); background: #62bcbc; }

/* Nav ------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); border-bottom: 1px solid var(--divider);
}
.nav__inner {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 12px; background: none; border: none; cursor: pointer; padding: 0; }
.logo__word {
  font-family: var(--display); font-weight: 900; font-size: 16px;
  letter-spacing: -0.01em; text-transform: uppercase; color: var(--bone);
}
.nav__right { display: flex; align-items: center; gap: 28px; }
.nav__link {
  font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--on-dark);
}
.nav__link:hover { color: var(--bone); }
.nav__social { display: flex; align-items: center; gap: 14px; color: var(--on-dark); }
.nav__social a { color: inherit; display: flex; }
.nav__social a:hover { color: var(--bone); }

/* Hero ------------------------------------------------------------------ */
.hero {
  background: var(--ink); color: var(--bone); text-align: center;
  padding: 96px var(--gutter) 104px;
}
.hero__inner { max-width: 900px; margin: 0 auto; }
.hero__mark { margin: 0 auto 34px; }
.h1 {
  font-family: var(--display); font-weight: 900; font-size: 88px; line-height: 0.9;
  letter-spacing: -0.035em; text-transform: uppercase; margin: 0 0 26px;
}
.hero__sub {
  font-size: 20px; line-height: 1.55; color: var(--on-dark); font-weight: 500;
  max-width: 560px; margin: 0 auto 38px;
}
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Manifesto ------------------------------------------------------------- */
.manifesto { background: var(--bone-bg); padding: 88px var(--gutter); }
.manifesto__inner { max-width: 820px; margin: 0 auto; text-align: center; }
.manifesto .eyebrow { margin-bottom: 20px; }
.manifesto__statement {
  font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.24;
  letter-spacing: -0.01em; color: var(--body-ink); margin: 0;
}
.manifesto__statement .accent { color: var(--teal); }
.manifesto__statement em { font-style: italic; }

/* The Drop -------------------------------------------------------------- */
.drop { background: var(--charcoal); color: var(--bone); }
.drop__grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
}
.drop__text { padding: 84px var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.drop__text .eyebrow { margin-bottom: 16px; }
.h2 {
  font-family: var(--display); font-weight: 900; line-height: 0.95;
  letter-spacing: -0.02em; text-transform: uppercase; margin: 0;
}
.drop__title { font-size: 52px; margin: 0 0 18px; }
.drop__sub { font-size: 17px; line-height: 1.6; color: var(--on-dark); font-weight: 500; max-width: 440px; margin: 0 0 30px; }
.drop__buy { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.drop__meta { font-size: 13px; color: var(--on-dark-muted); font-weight: 600; }
.drop__media { position: relative; min-height: 520px; background: var(--ink); }

/* Journal teaser + shared card grid ------------------------------------ */
.section { max-width: var(--container); margin: 0 auto; padding: 88px var(--gutter); }
.section__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 34px; gap: 20px; flex-wrap: wrap;
}
.section__head .eyebrow { margin-bottom: 12px; }
.teaser__title { font-size: 42px; line-height: 1; }
.textlink {
  font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--body-ink); background: none; border: none;
  cursor: pointer; padding: 0 0 6px; border-bottom: 2px solid var(--teal);
  display: inline-block;
}
.textlink:hover { color: var(--teal-hover); }

.card-grid { display: grid; gap: 26px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--fill { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.card {
  text-align: left; background: var(--bone); border: 1px solid var(--card-border);
  border-radius: 16px; overflow: hidden; cursor: pointer; padding: 0;
  display: flex; flex-direction: column; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(13,15,16,0.12); border-color: #b9b3a6; }
.card__media { position: relative; background: #d8d3c7; }
.card__media--sm { height: 190px; }
.card__media--lg { height: 210px; }
.card__body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.card__body--lg { padding: 24px 24px 28px; }
.card__cat { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.card__title { font-family: var(--display); font-weight: 800; font-size: 21px; line-height: 1.12; letter-spacing: -0.01em; color: var(--body-ink); margin-bottom: 10px; }
.card__title--lg { font-size: 24px; margin-bottom: 12px; }
.card__excerpt { font-size: 14px; line-height: 1.55; color: var(--muted-light); font-weight: 500; margin-bottom: 16px; }
.card__excerpt--lg { font-size: 14.5px; margin-bottom: 18px; }
.card__meta { margin-top: auto; font-size: 12px; font-weight: 600; color: var(--on-dark-muted); }

/* Social feed ----------------------------------------------------------- */
.feed { background: var(--ink); color: var(--bone); }
.feed__inner { max-width: var(--container); margin: 0 auto; padding: 88px var(--gutter); }
.feed__title { font-size: 44px; line-height: 0.98; margin: 0 0 8px; }
.feed__handle { font-size: 16px; font-weight: 600; color: var(--on-dark); }
.feed__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feed__tile {
  position: relative; aspect-ratio: 1 / 1; background: var(--charcoal);
  border-radius: 14px; overflow: hidden; display: block;
  transition: transform .18s ease;
}
.feed__tile:hover { transform: scale(1.015); }
.feed__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(13,15,16,0) 55%, rgba(13,15,16,0.8) 100%);
}
.feed__cap {
  position: absolute; left: 14px; bottom: 12px; right: 14px;
  display: flex; align-items: center; gap: 8px; z-index: 2; pointer-events: none;
}
.feed__cap span {
  font-size: 12px; font-weight: 600; color: var(--bone);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.feed__foot {
  margin-top: 40px; padding-top: 34px; border-top: 1px solid var(--divider);
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.feed__foot p { font-size: 15px; line-height: 1.5; color: var(--on-dark-muted); font-weight: 500; max-width: 440px; margin: 0; }
.feed__foot strong { color: var(--on-dark); font-weight: 700; }
.feed__foot-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Journal index header -------------------------------------------------- */
.jhead { background: var(--ink); color: var(--bone); padding: 72px var(--gutter) 66px; text-align: center; }
.jhead .eyebrow { letter-spacing: 0.18em; margin-bottom: 16px; }
.jhead h1 { font-family: var(--display); font-weight: 900; font-size: 60px; line-height: 0.95; letter-spacing: -0.03em; text-transform: uppercase; margin: 0 0 16px; }
.jhead p { font-size: 17px; line-height: 1.55; color: var(--on-dark); font-weight: 500; max-width: 520px; margin: 0 auto; }
.jgrid { max-width: var(--container); margin: 0 auto; padding: 56px var(--gutter) 96px; }

/* Post ------------------------------------------------------------------ */
.post-head { max-width: 760px; margin: 0 auto; padding: 56px var(--gutter) 40px; }
.back {
  font-family: var(--display); font-weight: 800; font-size: 12px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted-light); background: none; border: none;
  cursor: pointer; padding: 0; margin-bottom: 26px; display: inline-block;
}
.back:hover { color: var(--teal-hover); }
.post-head__cat { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin-bottom: 16px; }
.post-head h1 { font-family: var(--display); font-weight: 900; font-size: 48px; line-height: 1.0; letter-spacing: -0.025em; text-transform: uppercase; color: var(--body-ink); margin: 0 0 20px; }
.post-head__meta { font-size: 13px; font-weight: 600; color: var(--on-dark-muted); margin-bottom: 32px; }
.post-hero-wrap { max-width: 960px; margin: 0 auto; padding: 0 var(--gutter); }
.post-hero { height: 440px; position: relative; background: var(--charcoal); border-radius: 20px; overflow: hidden; }
.post-body { max-width: 680px; margin: 0 auto; padding: 44px var(--gutter) 40px; font-size: 18px; line-height: 1.72; color: var(--longform); font-weight: 400; }
.post-body p { margin: 0 0 24px; }
.post-body blockquote {
  margin: 38px 0; padding: 8px 0 8px 26px; border-left: 4px solid var(--teal);
  font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.25;
  letter-spacing: -0.01em; color: var(--body-ink);
}
.post-cta { max-width: 680px; margin: 0 auto; padding: 20px var(--gutter) 90px; text-align: center; }

/* Footer ---------------------------------------------------------------- */
.footer { background: var(--ink); color: var(--on-dark); }
.newsletter { border-bottom: 1px solid var(--divider); }
.newsletter__inner {
  max-width: var(--container); margin: 0 auto; padding: 56px var(--gutter);
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.newsletter h3 { font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; color: var(--bone); margin: 0 0 10px; }
.newsletter p { font-size: 15px; line-height: 1.5; color: var(--on-dark-muted); font-weight: 500; margin: 0; }
.newsletter__form { display: flex; gap: 10px; }
.newsletter__form input {
  flex: 1; min-width: 0; border: 1px solid var(--input-border); background: var(--charcoal);
  color: var(--bone); border-radius: 999px; padding: 15px 22px; font-size: 15px;
  font-family: var(--body); outline: none;
}
.newsletter__form input::placeholder { color: var(--on-dark-muted); }
.newsletter__btn {
  font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--ink); background: var(--teal); border: none;
  padding: 15px 26px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  transition: background .15s ease;
}
.newsletter__btn:hover { background: #62bcbc; }
.newsletter__btn:disabled { opacity: .6; cursor: default; }
.newsletter__msg { grid-column: 1 / -1; font-size: 14px; font-weight: 600; margin: 4px 0 0; min-height: 1px; }
.newsletter__msg.ok { color: var(--teal); }
.newsletter__msg.err { color: #e8896b; }

.footer__cols {
  max-width: var(--container); margin: 0 auto; padding: 48px var(--gutter);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap;
}
.footer__logo { display: flex; align-items: center; gap: 12px; }
.footer__logo span { font-family: var(--display); font-weight: 900; font-size: 15px; text-transform: uppercase; letter-spacing: -0.01em; color: var(--bone); }
.footer__links { display: flex; gap: 44px; flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 11px; }
.footer__col-head { font-family: var(--display); font-weight: 800; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--eyebrow-dark); }
.footer__col a, .footer__col button {
  text-align: left; color: var(--on-dark); font-size: 14px; font-weight: 500;
  background: none; border: none; cursor: pointer; padding: 0; font-family: var(--body);
}
.footer__col a:hover, .footer__col button:hover { color: var(--bone); }
.legal { border-top: 1px solid var(--divider); }
.legal__inner {
  max-width: var(--container); margin: 0 auto; padding: 20px var(--gutter);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--eyebrow-dark); font-weight: 500;
}

/* Branded image placeholder -------------------------------------------- */
.ph {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--bone);
  background:
    radial-gradient(120% 120% at 70% 20%, rgba(80,173,173,0.10), transparent 60%),
    var(--charcoal);
  overflow: hidden;
}
.ph--light { color: var(--body-ink); }
.ph__mark { width: 46%; max-width: 220px; opacity: 0.22; }
.ph--light { background:
    radial-gradient(120% 120% at 70% 20%, rgba(80,173,173,0.12), transparent 60%),
    #d8d3c7; }
.ph--light .ph__mark { opacity: 0.28; }
.ph__tag {
  position: absolute; bottom: 12px; right: 14px; z-index: 2;
  font-family: var(--display); font-weight: 800; font-size: 9.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(241,236,227,0.34);
}
.ph--light .ph__tag { color: rgba(22,25,26,0.30); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1080px) {
  .h1 { font-size: 72px; }
  .drop__title { font-size: 44px; }
  .jhead h1 { font-size: 52px; }
}

@media (max-width: 860px) {
  .drop__grid { grid-template-columns: 1fr; }
  .drop__media { min-height: 340px; order: -1; }
  .drop__text { padding: 60px var(--gutter); }
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .feed__grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter__inner { grid-template-columns: 1fr; gap: 22px; }
  .h1 { font-size: 60px; }
  .h2 { font-size: 38px; }
  .drop__title { font-size: 40px; }
  .teaser__title { font-size: 34px; }
  .feed__title { font-size: 36px; }
  .jhead h1 { font-size: 44px; }
  .post-head h1 { font-size: 38px; }
  .post-body blockquote { font-size: 23px; }
  .manifesto__statement { font-size: 28px; }
  .hero, .section, .feed__inner, .manifesto { padding-top: 64px; padding-bottom: 64px; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .h1 { font-size: 48px; }
  .hero { padding: 64px var(--gutter) 72px; }
  .hero__sub { font-size: 17px; }
  .card-grid--3 { grid-template-columns: 1fr; }
  .feed__grid { grid-template-columns: 1fr 1fr; }
  .nav__right { gap: 16px; }
  .nav__link { font-size: 12px; }
  .drop__title { font-size: 34px; }
  .teaser__title { font-size: 30px; }
  .feed__title { font-size: 30px; }
  .jhead h1 { font-size: 36px; }
  .post-head h1 { font-size: 30px; }
  .post-hero { height: 280px; }
  .manifesto__statement { font-size: 24px; }
  .section__head { align-items: flex-start; }
  .btn { padding: 15px 26px; font-size: 14px; }
  .newsletter__form { flex-direction: column; }
  .newsletter__btn { width: 100%; }
}

/* Hide the nav wordmark on very small screens to keep the bar clean */
@media (max-width: 400px) {
  .feed__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .card:hover, .btn:hover, .feed__tile:hover { transform: none; }
}
