@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,400&family=Fraunces:ital,opsz,wght,SOFT,WONK@0,9..144,100..900,0..100,0..1;1,9..144,100..900,0..100,0..1&family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&display=swap');

/* ============================================================
   Mirth & Myth
   A consultancy & meaning-making studio

   Type    Fraunces (display) / Newsreader (reading) / DM Mono (utility)
   Field   Mounting board, green-black ink, madder accent
   Mark    The asterism — drawn, not set, so it never falls back

   Note: the @import above is only a safety net — every page already
   links these three families in its <head>. If that link is still
   there, this line can be deleted.
   ============================================================ */

/* --- tokens ------------------------------------------------ */

:root {
  /* field */
  --paper:        #e5e2dc;
  --ink:          #1a1e19;
  --bone:         #e2dfd5;

  /* type colours */
  --muted:        #52544a;
  --muted-ink:    #9a9c8b;
  --rule:         #b9b6a6;
  --rule-ink:     #383c34;

  /* accent */
  --madder:       #8a3a3c;
  --madder-lift:  #d69a91;

  /* families */
  --display: "Fraunces", "Bitstream Charter", Georgia, "Times New Roman", serif;
  --body:    "Newsreader", Georgia, "Times New Roman", serif;
  --mono:    "DM Mono", "DejaVu Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* measure & rhythm */
  --spine-w: 15.5rem;
  --gut:     clamp(1.4rem, 4.4vw, 4.75rem);
  --measure: 33em;
  --band-y:  clamp(3.4rem, 7vw, 6.75rem);
}

/* --- reset -------------------------------------------------- */

*, *::before, *::after { 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: clamp(1.02rem, 0.35vw + 0.93rem, 1.155rem);
  line-height: 1.62;
  font-variation-settings: "opsz" 20, "wght" 380;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--madder); color: var(--paper); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- skip link ---------------------------------------------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--bone);
  padding: 0.75rem 1.1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--madder);
  outline-offset: 3px;
}
.band--ink :focus-visible { outline-color: var(--madder-lift); }

[id] { scroll-margin-top: 1.6rem; }

/* ============================================================
   THE MARK — the asterism, drawn with strokes rather than set as
   the character U+2042, so it renders identically everywhere.
   ============================================================ */

.ast {
  display: block;
  width: 1.9rem;
  height: auto;
  color: var(--madder);
  overflow: visible;
}
.ast--sm { width: 1.15rem; }
.ast--lg { width: 2.5rem; }
.ast--center { margin-inline: auto; }

.band--ink .ast { color: var(--madder-lift); }

.divider {
  display: flex;
  justify-content: center;
  padding-block: clamp(2.4rem, 5vw, 4rem);
}

/* ============================================================
   SHELL & SPINE
   ============================================================ */

.shell { min-height: 100vh; }

@media (min-width: 62rem) {
  .shell {
    display: grid;
    grid-template-columns: var(--spine-w) minmax(0, 1fr);
    align-items: start;
    position: relative;
  }
  /* the gutter: one hairline down the full height of the page */
  .shell::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--spine-w) - 1px);
    width: 1px;
    background: var(--rule);
    pointer-events: none;
  }
}

.spine {
  padding: 1.5rem var(--gut) 1.4rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.9rem;
}

@media (min-width: 62rem) {
  .spine {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 2.7rem 1.7rem 2.4rem 2.5rem;
    border-bottom: 0;
    overflow-y: auto;
  }
}

/* wordmark */

.mark {
  display: block;
  text-decoration: none;
  color: inherit;
}
.mark .ast { margin-bottom: 0.95rem; }

@media (max-width: 61.99rem) {
  .mark { display: flex; align-items: center; gap: 0.6rem; }
  .mark .ast { margin-bottom: 0; width: 1.35rem; flex: none; }
}

.mark__word {
  display: block;
  font-family: var(--display);
  font-variation-settings: "opsz" 60, "wght" 430, "SOFT" 0, "WONK" 1;
  font-size: 1.5rem;
  line-height: 1.05;
  letter-spacing: -0.012em;
}
.mark__word > span { display: inline; }
@media (min-width: 62rem) {
  .mark__word { font-size: 1.85rem; }
  .mark__word > span { display: block; }
}

.mark__word em {
  font-style: italic;
  font-variation-settings: "opsz" 60, "wght" 400, "SOFT" 0, "WONK" 1;
  color: var(--madder);
}

/* nav */

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.05rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (min-width: 62rem) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.42rem;
    margin-top: 2.5rem;
    font-size: 0.72rem;
  }
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--madder); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--madder); }

.spine__tag {
  display: none;
  font-family: var(--mono);
  font-size: 0.66rem;
  line-height: 1.55;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin: auto 0 0;
  padding-top: 2.5rem;
}
@media (min-width: 62rem) { .spine__tag { display: block; } }

/* ============================================================
   BANDS
   ============================================================ */

main { display: block; }

.band {
  padding: var(--band-y) var(--gut);
  border-top: 1px solid var(--rule);
}
.band:first-child { border-top: 0; }

.band--ink {
  background: var(--ink);
  color: var(--bone);
  border-top-color: var(--ink);
}
.band--ink .eyebrow { color: var(--muted-ink); }
.band--ink .note { color: var(--muted-ink); }
.band--ink a { color: var(--madder-lift); text-decoration-color: rgba(214, 154, 145, 0.45); }
.band--ink a:hover { color: var(--bone); }
.band--ink .rule { border-color: var(--rule-ink); }
.band--ink .cluster > * + * { border-top-color: var(--rule-ink); }

.band--tight { padding-block: clamp(2.4rem, 4.5vw, 4rem); }

/* ============================================================
   TYPE
   ============================================================ */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.7rem;
  line-height: 1.5;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}

.h-hero {
  font-variation-settings: "opsz" 144, "wght" 370, "SOFT" 0, "WONK" 1;
  font-size: clamp(1.95rem, 2.9vw + 0.95rem, 3.55rem);
  line-height: 1.07;
  letter-spacing: -0.019em;
  max-width: 21ch;
}
.h-hero--long { max-width: 30ch; text-wrap: pretty; }

.h-sect {
  font-variation-settings: "opsz" 96, "wght" 400, "SOFT" 0, "WONK" 1;
  font-size: clamp(1.6rem, 1.5vw + 1rem, 2.45rem);
  line-height: 1.13;
  letter-spacing: -0.013em;
  max-width: 22ch;
}

.h-sub {
  font-variation-settings: "opsz" 40, "wght" 500, "SOFT" 0, "WONK" 1;
  font-size: clamp(1.14rem, 0.5vw + 1rem, 1.34rem);
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin-bottom: 0.85rem;
}

p { margin: 0 0 1.15em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.16rem, 0.7vw + 1rem, 1.42rem);
  line-height: 1.44;
  font-variation-settings: "opsz" 32, "wght" 350;
  max-width: 29em;
  margin-top: 1.9rem;
}

.note {
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.72;
  letter-spacing: 0.015em;
  color: var(--muted);
  max-width: 46em;
}

em { font-style: italic; }
strong { font-variation-settings: "opsz" 20, "wght" 600; font-weight: 600; }

/* links in prose */

a {
  color: var(--madder);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(138, 58, 60, 0.4);
  transition: text-decoration-color 0.18s ease, color 0.18s ease;
}
a:hover { text-decoration-color: currentColor; }

.arrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--madder);
  padding-bottom: 0.28rem;
  margin-top: 1.9rem;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.arrow::after { content: " \2192"; }
.arrow:hover { color: var(--ink); border-bottom-color: var(--ink); }
.band--ink .arrow { border-bottom-color: var(--madder-lift); }
.band--ink .arrow:hover { color: var(--bone); border-bottom-color: var(--bone); }

/* ============================================================
   LAYOUT PIECES
   ============================================================ */

.pair {
  display: grid;
  max-width: 68rem;
  gap: clamp(2.2rem, 4vw, 3.6rem);
  margin-top: clamp(2.4rem, 4vw, 3.5rem);
}
@media (min-width: 54rem) {
  .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.4rem, 4.5vw, 4.5rem); }
}
.pair p { max-width: 34em; }

.cluster { margin-top: clamp(2.4rem, 4vw, 3.4rem); max-width: 52rem; }
.cluster > * + * {
  margin-top: 1.9rem;
  padding-top: 1.9rem;
  border-top: 1px solid var(--rule);
}

.stack > * + * { margin-top: 1.35rem; }

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: clamp(2.2rem, 4vw, 3.2rem) 0;
}

/* the "what this looks like" register */

.register {
  list-style: none;
  margin: 1.9rem 0 0;
  padding: 0;
  max-width: 38em;
  border-top: 1px solid var(--rule);
}
.register li {
  padding: 0.72rem 0 0.72rem 2.1rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
  font-size: 0.99em;
}
.register li::before {
  content: "\002A";
  position: absolute;
  left: 0;
  top: 0.72rem;
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--madder);
}
.band--ink .register { border-top-color: var(--rule-ink); }
.band--ink .register li { border-bottom-color: var(--rule-ink); }
.band--ink .register li::before { color: var(--madder-lift); }

/* ============================================================
   INDEX LIST (essays)
   ============================================================ */

.index-list {
  list-style: none;
  max-width: 68rem;
  margin: clamp(2.2rem, 4vw, 3.2rem) 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.index-list > li { border-bottom: 1px solid var(--rule); }

.entry {
  display: grid;
  gap: 0.35rem 1.6rem;
  padding: 1.5rem 0;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease;
}
@media (min-width: 50rem) {
  .entry {
    grid-template-columns: 3.4rem minmax(0, 1fr) 10rem;
    align-items: baseline;
    padding: 1.75rem 0;
  }
}
a.entry:hover .entry__title { color: var(--madder); }

.entry__num,
.entry__meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}
.entry__title {
  font-family: var(--display);
  font-variation-settings: "opsz" 40, "wght" 430, "SOFT" 0, "WONK" 1;
  font-size: clamp(1.16rem, 0.55vw + 1.02rem, 1.42rem);
  line-height: 1.22;
  letter-spacing: -0.008em;
  transition: color 0.18s ease;
}
.entry__dek {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 42em;
}
.entry--soon .entry__title { color: var(--muted); }

/* ============================================================
   ESSAY
   ============================================================ */

.essay { padding: var(--band-y) var(--gut) 0; }

.essay__head { max-width: 40em; }
.essay__title {
  font-variation-settings: "opsz" 144, "wght" 380, "SOFT" 0, "WONK" 1;
  font-size: clamp(2.05rem, 2.6vw + 1.1rem, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.019em;
  max-width: 18ch;
}
.essay__sub {
  font-family: var(--display);
  font-style: italic;
  font-variation-settings: "opsz" 40, "wght" 350, "SOFT" 0, "WONK" 1;
  font-size: clamp(1.1rem, 0.5vw + 1rem, 1.32rem);
  color: var(--muted);
  margin-top: 0.7rem;
}

.essay__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.5rem;
  margin-top: 2.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc {
  margin: clamp(2.6rem, 5vw, 3.8rem) 0 0;
  padding: 1.4rem 0 1.5rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  max-width: 46em;
}
.toc__label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.9rem;
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.42rem 2rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
@media (min-width: 44rem) { .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.toc a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.toc a:hover { color: var(--madder); border-bottom-color: var(--madder); }

.prose {
  max-width: 34em;
  margin-top: clamp(2.8rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.prose > h2 {
  font-variation-settings: "opsz" 72, "wght" 420, "SOFT" 0, "WONK" 1;
  font-size: clamp(1.42rem, 0.9vw + 1.16rem, 1.92rem);
  line-height: 1.16;
  letter-spacing: -0.012em;
  margin-top: 3.2rem;
  margin-bottom: 1.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  max-width: 20ch;
}
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose > h3 {
  font-variation-settings: "opsz" 30, "wght" 520, "SOFT" 0, "WONK" 1;
  font-size: 1.1rem;
  line-height: 1.3;
  letter-spacing: 0.002em;
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}
.prose > h3::before {
  content: "\002A\002A\002A";
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: -0.08em;
  color: var(--madder);
  flex: none;
}
.prose p { max-width: 34em; }
.prose > p.stand {
  font-size: 1.1em;
  line-height: 1.5;
  font-variation-settings: "opsz" 32, "wght" 460;
}
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1.15em; }
.prose li { padding-left: 1.6rem; position: relative; margin-bottom: 0.55rem; max-width: 34em; }
.prose li::before {
  content: "\002A";
  position: absolute;
  left: 0;
  font-family: var(--mono);
  color: var(--madder);
}

.colophon {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
  max-width: 34em;
}
.colophon p {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 34em;
}

/* ============================================================
   FORM
   ============================================================ */

.form {
  max-width: 34em;
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* honeypot — off-screen for people, still there for bots */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field { margin-bottom: 2rem; }

.field__label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.field__input {
  display: block;
  width: 100%;
  margin: 0;
  font-family: var(--body);
  font-size: 1.05rem;
  font-variation-settings: "opsz" 20, "wght" 380;
  line-height: 1.55;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: 0.45rem 0 0.6rem;
  transition: border-color 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field__input:hover { border-bottom-color: var(--muted); }
.field__input:focus {
  border-bottom-color: var(--madder);
  border-bottom-width: 2px;
  padding-bottom: calc(0.6rem - 1px);
}
.field__input::placeholder { color: var(--muted); opacity: 0.65; }

.field__input--area {
  min-height: 9.5rem;
  resize: vertical;
}

/* keep the browser's autofill wash off the paper */
.field__input:-webkit-autofill,
.field__input:-webkit-autofill:hover,
.field__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--paper) inset;
  transition: background-color 9999s ease-in-out 0s;
}

.button {
  display: inline-block;
  margin-top: 0.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 0.95rem 1.9rem;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
}
.button:hover,
.button:active { background: var(--madder); border-color: var(--madder); }

.form__note {
  margin-top: 1.9rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  max-width: 34em;
}

/* ============================================================
   FOOTER
   ============================================================ */

.foot {
  max-width: 74rem;
  border-top: 1px solid var(--rule);
  padding: clamp(2.8rem, 5vw, 4.5rem) var(--gut) clamp(2.4rem, 4vw, 3.5rem);
  display: grid;
  gap: 2.1rem;
}
@media (min-width: 54rem) {
  .foot { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}

.foot__mail {
  font-family: var(--display);
  font-variation-settings: "opsz" 72, "wght" 400, "SOFT" 0, "WONK" 1;
  font-size: clamp(1.35rem, 1.6vw + 0.9rem, 2.1rem);
  letter-spacing: -0.012em;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.25rem;
  color: var(--ink);
  display: inline-block;
}
.foot__mail:hover { color: var(--madder); border-bottom-color: var(--madder); }

.foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.3rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.foot__nav a { color: var(--muted); text-decoration: none; }
.foot__nav a:hover { color: var(--madder); }

.foot__fine {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin: 0;
}

/* ============================================================
   ONE MOMENT OF MOTION — the opening
   ============================================================ */

@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .rise-2 { animation-delay: 0.1s; }
  .rise-3 { animation-delay: 0.19s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(0.7rem); }
    to   { opacity: 1; transform: none; }
  }
}

/* ============================================================
   UTILITY
   ============================================================ */

.wide { max-width: 46em; }
.center-block { max-width: 40em; }
.mt-lg { margin-top: clamp(2.4rem, 4vw, 3.4rem); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
