/* Daily Accountability Club — shared styles. Pure black & white. */
:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --grey: #f1f1f1;
  --grey-2: #e2e2e2;
  --mute: #6b6b6b;
  --max: 1180px;
  --display: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--display); font-size: 17px; line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* ---------- type ---------- */
.display, h1, h2, h3 {
  font-family: var(--display); font-weight: 900; font-style: italic;
  text-transform: uppercase; letter-spacing: -0.02em; line-height: .92;
}
h1 { font-size: clamp(2.6rem, 8.4vw, 6.2rem); }
h2 { font-size: clamp(2rem, 5.6vw, 4rem); }
h3 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: .98; }
.mono { font-family: var(--mono); }
.tag {
  display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  border: 1.5px solid currentColor; padding: 5px 10px; line-height: 1;
}
.tag.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.lede { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: #262626; max-width: 38em; }
.small { font-size: 13px; color: var(--mute); }
.dark .small { color: #a8a8a8; }

/* ---------- logo ---------- */
.box {
  display: inline-block; background: var(--ink); color: var(--paper);
  font-family: var(--display); font-weight: 900; font-style: italic;
  text-transform: uppercase; letter-spacing: -.01em; line-height: 1;
  padding: .22em .42em .2em;
}
.dark .box, .box.inv { background: var(--paper); color: var(--ink); }

/* ---------- top bar + nav ---------- */
.topbar {
  background: var(--ink); color: var(--paper); text-align: center;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  padding: 8px 16px;
}
.topbar a { text-decoration: none; border-bottom: 1px solid; }
.nav {
  position: sticky; top: 0; z-index: 40; background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.nav .logo { text-decoration: none; font-size: 17px; white-space: nowrap; }
.nav .logo small { font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; margin-left: 4px; }
.nav ul { display: flex; list-style: none; gap: 20px; align-items: center; }
.nav ul a { text-decoration: none; font-family: var(--mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.nav ul a[aria-current="page"] { border-bottom: 2px solid var(--ink); }
.nav .hide-sm { display: none; }
@media (min-width: 720px) { .nav .hide-sm { display: inline; } }
@media (max-width: 480px) {
  .nav .logo { font-size: 13px; }
  .nav .logo small { display: none; }
  .nav ul { gap: 12px; }
  .nav ul a { font-size: 11px; letter-spacing: .03em; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--ink); color: var(--paper); border: 2px solid var(--ink);
  font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: 18px; letter-spacing: .01em; text-decoration: none; cursor: pointer;
  padding: 16px 26px; line-height: 1; transition: transform .12s, background .12s, color .12s;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn:active { transform: translateY(2px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.dark .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.dark .btn:hover { background: transparent; color: var(--paper); }
.btn.sm { font-size: 14px; padding: 10px 14px; }
.btn.block { width: 100%; }
.nav .btn { font-size: 14px; padding: 9px 14px; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
@media (min-width: 900px) { section { padding: 104px 0; } }
.dark { background: var(--ink); color: var(--paper); }
.dark .lede { color: #d6d6d6; }
.grey { background: var(--grey); }
.rule { border: 0; border-top: 2px solid var(--ink); }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- marquee ---------- */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; border-block: 2px solid var(--ink); padding: 14px 0; }
.marquee .track { display: flex; width: max-content; animation: scroll 28s linear infinite; }
.marquee span {
  font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem); white-space: nowrap; padding-right: 2.2em;
}
.marquee.inv { background: var(--paper); color: var(--ink); }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } }

/* ---------- media slots (drop real photos into /images) ---------- */
.slot {
  position: relative; background: var(--grey); border: 2px solid var(--ink);
  overflow: hidden; display: grid; place-items: center; text-align: center;
}
.slot img, .slot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); }
.slot .ph { padding: 24px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.slot .ph b { display: block; font-family: var(--display); font-style: italic; font-weight: 900; font-size: clamp(1.6rem, 4vw, 2.6rem); color: var(--ink); letter-spacing: -.02em; margin-bottom: 8px; }
.slot .corner { position: absolute; top: 12px; left: 12px; z-index: 2; }

/* ---------- cards / forms (tools) ---------- */
.card { border: 2px solid var(--ink); background: var(--paper); padding: 22px; }
.card.dark { border-color: var(--ink); }
.card h3 { font-size: 1.5rem; margin-bottom: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.field input, .field select {
  width: 100%; border: 2px solid var(--ink); background: var(--paper); padding: 12px;
  font-size: 16px; border-radius: 0; appearance: none;
}
.field input:focus, .field select:focus { outline: 3px solid var(--ink); outline-offset: 2px; }
.grid2 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.grid3 { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 520px) { .grid3 { grid-template-columns: 1fr 1fr; } }

.chip {
  border: 2px solid var(--ink); background: var(--paper); cursor: pointer; text-align: left;
  padding: 10px 12px; display: grid; gap: 2px; transition: background .1s, color .1s;
}
.chip b { font-weight: 800; font-size: 15px; line-height: 1.15; }
.chip span { font-family: var(--mono); font-size: 11px; color: var(--mute); }
.chip:hover { background: var(--ink); color: var(--paper); }
.chip:hover span { color: #bbb; }
.chip.pop { animation: pop .3s; }
@keyframes pop { 50% { transform: scale(.94); } }

.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: var(--paper); padding: 12px 18px; z-index: 99;
  font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .05em;
  transition: .25s; pointer-events: none; border: 2px solid var(--paper);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- footer ---------- */
footer { background: var(--ink); color: #bdbdbd; padding: 48px 0 110px; font-size: 13px; }
footer .wrap { display: grid; gap: 18px; }
footer a { color: var(--paper); }
@media (min-width: 900px) { footer { padding-bottom: 48px; } }

/* ---------- sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 2px solid var(--ink); display: flex; gap: 10px; align-items: center;
  transform: translateY(110%); transition: transform .25s;
}
.sticky-cta.on { transform: none; }
.sticky-cta .btn { flex: 1; font-size: 16px; padding: 14px; }
.sticky-cta .mono { font-size: 11px; line-height: 1.2; text-transform: uppercase; }
@media (min-width: 900px) { .sticky-cta { display: none; } }
.dark .btn.ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.dark .btn.ghost:hover { background: var(--paper); color: var(--ink); }

/* ---------- Loop mini book cover (shared by section, popup, book) ---------- */
.loopcover {
  position: relative; container-type: inline-size; background: #fff; color: var(--ink);
  border: 3px solid var(--ink); box-shadow: 12px 12px 0 var(--ink); overflow: hidden;
}
.dark .loopcover { box-shadow: 12px 12px 0 #3a3a3a; border-color: var(--paper); }
.loopcover > img { width: 100%; display: block; }
.loopcover .lc-title {
  position: absolute; top: 4.5cqw; left: 6cqw; right: 6cqw; text-align: center;
  font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -.02em;
  font-size: 7.4cqw; line-height: .9;
}
.loopcover .lc-title span { display: inline-block; background: var(--ink); color: #fff; padding: .6cqw 2cqw; font-size: 3.2cqw; letter-spacing: .02em; margin-bottom: 2cqw; font-family: var(--mono); font-style: normal; font-weight: 700; }
.loopcover .lbl {
  position: absolute; transform: translate(-50%, -50%); width: 20cqw; text-align: center;
  font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 2.7cqw; line-height: .95; letter-spacing: -.01em;
}
.loopcover .lbl.side { width: 14cqw; font-size: 2.3cqw; }
.loopcover.redact .lbl { user-select: none; }
.loopcover.redact .lbl i {
  font-style: italic; background: #0a0a0a; color: #0a0a0a; padding: 0 .5cqw;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; line-height: 1.25;
}
.loopcover.redact .lbl i:nth-of-type(2) { margin-left: 1cqw; }
.loopcover .stamp {
  position: absolute; right: 3cqw; top: 41cqw; transform: rotate(-11deg);
  border: .8cqw solid #0a0a0a; padding: 1cqw 2.2cqw .8cqw; background: rgba(255,255,255,.88);
  font-family: var(--mono); font-weight: 700; text-transform: uppercase; text-align: center; line-height: 1.05;
  font-size: 3.3cqw; letter-spacing: .12em; color: #0a0a0a;
}
.loopcover .stamp small { display: block; font-size: 1.9cqw; letter-spacing: .08em; margin-top: .4cqw; }
.loopcover .lc-foot {
  position: absolute; left: 0; right: 0; bottom: 3.4cqw; text-align: center;
  font-family: var(--mono); font-size: 2.6cqw; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}

/* ---------- opt-in form ---------- */
.optin { display: grid; gap: 10px; }
.optin .field input { font-size: 16px; }
.optin .ok { display: none; border: 2px solid currentColor; padding: 16px; }
.optin.done .ok { display: block; }
.optin.done > :not(.ok) { display: none; }
.optin .err { display: none; font-family: var(--mono); font-size: 12px; }
.optin.fail .err { display: block; }
.dark .optin .field input { border-color: var(--paper); }

/* ---------- popup ---------- */
.pop-bg {
  position: fixed; inset: 0; z-index: 120; background: rgba(10,10,10,.82);
  display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .25s;
}
.pop-bg.on { opacity: 1; }
.pop {
  position: relative; background: var(--paper); border: 3px solid var(--ink); width: min(820px, 100%);
  max-height: calc(100vh - 32px); overflow: auto; display: grid; transform: translateY(16px); transition: transform .25s;
}
.pop-bg.on .pop { transform: none; }
.pop .pop-art { background: var(--ink); padding: 22px; display: grid; place-items: center; }
.pop .pop-art .loopcover { width: 100%; max-width: 280px; box-shadow: 8px 8px 0 #3a3a3a; border-color: #fff; }
.pop .pop-copy { padding: 26px 22px; }
.pop h2 { font-size: clamp(1.9rem, 5vw, 2.7rem); margin: 12px 0; }
.pop .x { position: absolute; top: 8px; right: 8px; z-index: 2; width: 38px; height: 38px; border: 2px solid var(--ink); background: var(--paper); font-size: 18px; font-weight: 900; cursor: pointer; }
.pop .x:hover { background: var(--ink); color: var(--paper); }
.pop .nope { background: none; border: 0; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); text-decoration: underline; cursor: pointer; margin-top: 6px; }
@media (min-width: 720px) { .pop { grid-template-columns: 1fr 1.1fr; } .pop .pop-copy { padding: 34px 30px; align-self: center; } }
@media (max-width: 719px) {
  .pop .pop-art { padding: 16px 16px 0; overflow: hidden; max-height: 210px; place-items: start center; }
  .pop .pop-art .loopcover { max-width: 190px; box-shadow: none; }
}
