/* =========================================================
   The SIM Card Method — bold & playful editorial mosaic
   Chunky cards, hard offset shadows, oversized display type,
   bright color-coded categories. Generic magazine filler.
   ========================================================= */

:root {
  --paper:  #FBF6EC;
  --ink:    #191512;
  --coral:  #FF5D3B;
  --blue:   #2F6BFF;
  --purple: #7B5CFF;
  --green:  #12B586;
  --yellow: #FFC53D;
  --line:   #E4DCCB;

  --display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body:    "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    "DM Mono", ui-monospace, "SFMono-Regular", monospace;

  --maxw: 76rem;
  --gap: clamp(1.1rem, 3vw, 2rem);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.02rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gap); }
.narrow { max-width: 46rem; }

.mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.7rem; }

/* ---------- Pills (category color-coding) ---------- */
.pill {
  display: inline-block;
  font-family: var(--body); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.68rem;
  padding: 0.28rem 0.7rem; border-radius: 999px;
  border: 2px solid var(--ink); background: #fff; color: var(--ink);
}
.pill--coral  { background: var(--coral);  color: #fff; }
.pill--blue   { background: var(--blue);   color: #fff; }
.pill--purple { background: var(--purple); color: #fff; }
.pill--green  { background: var(--green);  color: #fff; }
.pill--yellow { background: var(--yellow); color: var(--ink); }
.pill--ink    { background: var(--ink);    color: var(--paper); }

/* ---------- Top bar ---------- */
.topbar { border-bottom: 3px solid var(--ink); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.topbar__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.85rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; }
.brand__dot { width: 0.85rem; height: 0.85rem; border-radius: 50%; background: var(--coral); border: 2px solid var(--ink); }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.topnav { display: flex; align-items: center; gap: clamp(0.75rem, 2.5vw, 1.8rem); flex-wrap: wrap; }
.topnav a { font-family: var(--body); font-weight: 600; font-size: 0.9rem; color: var(--ink); text-decoration: none; }
.topnav a:not(.btn):hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.btn {
  font-family: var(--body); font-weight: 700; font-size: 0.85rem;
  background: var(--yellow); color: var(--ink);
  padding: 0.5rem 1rem; border: 2px solid var(--ink); border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }

/* ---------- Statement / cover line ---------- */
.cover { padding-block: clamp(2.25rem, 5vw, 3.5rem) clamp(1.5rem, 3vw, 2.25rem); }
.cover__eyebrow { color: var(--coral); }
.cover__line {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 5rem); line-height: 0.98; letter-spacing: -0.035em;
  margin: 0.75rem 0 0.5rem; max-width: 20ch;
}
.cover__line .c1 { color: var(--coral); }
.cover__line .c2 { color: var(--blue); }
.cover__line .c3 { color: var(--purple); }
.cover__sub { font-size: 1.15rem; max-width: 44ch; margin: 0; color: #4a423b; }

/* ---------- Mosaic ---------- */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.card {
  grid-column: span 4;
  background: #fff; border: 3px solid var(--ink); border-radius: 20px;
  padding: 1.35rem 1.4rem 1.5rem; text-decoration: none;
  box-shadow: var(--shadow); transition: transform .13s ease, box-shadow .13s ease;
  display: flex; flex-direction: column; gap: 0.7rem; min-height: 12rem;
}
.card:hover { transform: translate(-3px,-3px); box-shadow: var(--shadow-lg); }
.card:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.card__title { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
.card__dek { color: #4a423b; margin: 0; font-size: 0.96rem; }
.card__foot { margin-top: auto; }

/* size + color variants */
.card--feature {
  grid-column: span 7; grid-row: span 2;
  background: var(--coral); color: #fff; border-radius: 24px;
}
.card--feature .card__title { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; }
.card--feature .card__dek { color: #ffe7df; font-size: 1.12rem; max-width: 40ch; }
.card--wide  { grid-column: span 5; }
.card--tallblue { grid-column: span 5; background: var(--blue); color: #fff; }
.card--tallblue .card__dek { color: #dbe5ff; }
.card--ink { background: var(--ink); color: var(--paper); }
.card--ink .card__dek { color: #c8bfb2; }
.card--yellow { background: var(--yellow); }
.card--span6 { grid-column: span 6; }

.card--feature .card__title { max-width: 15ch; }

/* generic default title size for small cards */
.card:not(.card--feature) .card__title { font-size: 1.35rem; }

/* number flourish */
.card__num { font-family: var(--display); font-weight: 800; font-size: 1.1rem; opacity: 0.5; }

/* ---------- Strip / the edit ---------- */
.edit { border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); background: var(--purple); color: #fff; }
.edit__row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 1.5rem; padding-block: clamp(1.75rem, 4vw, 2.5rem); }
.edit__head { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: -0.02em; margin: 0; max-width: 16ch; }
.edit__list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.edit__chip { font-family: var(--body); font-weight: 600; font-size: 0.92rem; text-decoration: none; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 0.5rem 1rem; box-shadow: 3px 3px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease; }
.edit__chip:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }

/* ---------- Newsletter ---------- */
.subscribe { padding-block: clamp(2.75rem, 7vw, 4.5rem); }
.subscribe__inner {
  background: var(--yellow); border: 3px solid var(--ink); border-radius: 26px;
  box-shadow: var(--shadow-lg); padding: clamp(2rem, 5vw, 3.25rem); text-align: center;
}
.subscribe__title { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: -0.03em; margin: 0.5rem 0 0.4rem; }
.subscribe__note { max-width: 42ch; margin: 0 auto 1.6rem; color: #453f1f; }
.subscribe__form { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; max-width: 32rem; margin-inline: auto; }
.subscribe__input { flex: 1 1 15rem; font-family: var(--body); font-size: 0.95rem; padding: 0.85rem 1.1rem; border: 2.5px solid var(--ink); background: #fff; color: var(--ink); border-radius: 12px; }
.subscribe__input::placeholder { color: #8a8377; }
.subscribe__input:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.subscribe__btn { font-family: var(--body); font-weight: 700; font-size: 0.9rem; padding: 0.85rem 1.6rem; border: 2.5px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; border-radius: 12px; box-shadow: 3px 3px 0 rgba(0,0,0,0.25); transition: transform .12s ease; }
.subscribe__btn:hover { transform: translate(-1px,-1px); }
.subscribe__btn:active { transform: translate(2px,2px); box-shadow: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 3px solid var(--ink); padding-block: clamp(2.25rem, 5vw, 3.25rem); }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1.5rem; padding-bottom: 1.5rem; }
.footer__brand { display: inline-flex; align-items: center; gap: 0.55rem; }
.footer__brand strong { font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.footer__nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer__nav a { font-family: var(--body); font-weight: 600; font-size: 0.86rem; color: var(--ink); text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.footer__note { color: #6a6357; font-size: 0.82rem; max-width: 52ch; }
.footer__bottom { border-top: 2px solid var(--line); padding-top: 1.25rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem 1.5rem; }
.footer__legal { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.footer__legal a { color: #6a6357; text-decoration: none; }
.footer__legal a:hover { color: var(--coral); text-decoration: underline; }

/* ---------- Doc / legal ---------- */
.doc { padding-block: clamp(2.5rem, 6vw, 4rem); }
.doc__head { max-width: 46rem; margin-bottom: 1.75rem; }
.doc__title { font-family: var(--display); font-weight: 800; font-size: clamp(2.1rem, 5vw, 3.1rem); line-height: 1.02; letter-spacing: -0.03em; margin: 0.5rem 0 0.4rem; }
.doc__updated { color: #6a6357; }
.doc__note { max-width: 46rem; margin-bottom: 2.25rem; padding: 1.1rem 1.3rem; background: #fff; border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: var(--shadow); font-size: 0.95rem; color: #4a423b; }
.doc__body { max-width: 46rem; }
.doc__body h2 { font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.02em; margin: 2.3rem 0 0.6rem; padding-top: 1.5rem; border-top: 2px solid var(--line); }
.doc__body h2:first-of-type { border-top: none; padding-top: 0; }
.doc__body p, .doc__body li { color: #3c352f; }
.doc__body ul { padding-left: 1.2rem; }
.doc__body li { margin-bottom: 0.4rem; }
.doc__body a { color: var(--blue); font-weight: 600; }
.back-link { display: inline-block; margin-top: 2.25rem; font-family: var(--body); font-weight: 700; font-size: 0.88rem; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--coral); }
.back-link:hover { color: var(--coral); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .cover > * { animation: pop .6s cubic-bezier(.2,.7,.3,1.1) both; }
  .cover__line { animation-delay: .05s; }
  .cover__sub { animation-delay: .14s; }
  @keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .card, .card--feature, .card--wide, .card--tallblue, .card--span6 { grid-column: span 6; grid-row: auto; }
  .card--feature .card__title { font-size: clamp(1.8rem, 6vw, 2.4rem); }
}
@media (max-width: 560px) {
  .mosaic { grid-template-columns: 1fr; }
  .card, .card--feature, .card--wide, .card--tallblue, .card--span6 { grid-column: 1 / -1; }
}

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