/* Either Way Studio — folded paper conversation studio */

:root {
  --bg: #F6F2E9;
  --ink: #263B3B;
  --opt-a: #D8E7DF;
  --opt-b: #F4D9CB;
  --accent: #B75D46;
  --sage: #527F75;
  --line: #D9D4C8;
  --muted: #6F7772;
  --dark: #284341;
  --paper: #FFFcf6;
  --max: 1260px;
  --read: 760px;
  --serif: ui-serif, Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    url("../svg/fold-mark.svg"),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(38, 59, 59, 0.035) 47px 48px),
    linear-gradient(180deg, transparent 0, transparent 12px, rgba(183, 93, 70, 0.04) 12px, rgba(183, 93, 70, 0.04) 13px, transparent 13px);
  background-size: 220px 220px, 48px 48px, 100% 56px;
  background-repeat: repeat;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before,
body::after {
  pointer-events: none;
  position: fixed;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(38, 59, 59, 0.22);
  z-index: 0;
}
body::before { content: "Q.014"; top: 88px; right: 10px; }
body::after { content: "+"; bottom: 18px; left: 12px; font-size: 14px; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

.mono, .anno, .tab-n, .progress {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

main, .masthead, .site-footer { position: relative; z-index: 1; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--dark);
  color: #fff;
  padding: 8px 12px;
  z-index: 40;
}
.skip-link:focus { top: 8px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 32px, var(--read)); margin-inline: auto; }

.masthead {
  height: 66px;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 242, 233, 0.94);
  position: sticky;
  top: 0;
  z-index: 20;
}
.masthead-inner {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 12px;
  line-height: 1.1;
}
.nav {
  display: flex;
  gap: 14px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.nav a { color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent); }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  min-height: 36px;
  padding: 0 12px;
  font: 700 13px var(--sans);
  cursor: pointer;
}

.anno {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.intro { max-width: 62ch; color: #3d4e4e; }

.section { padding: 48px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(24px, 3vw, 34px); }

.choice-block { padding: 28px 0 12px; }

.question {
  font-family: var(--serif);
  font-size: clamp(25px, 3.4vw, 40px);
  font-weight: 600;
  max-width: 28ch;
  margin-bottom: 22px;
  overflow-wrap: anywhere;
}

.halves {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: stretch;
}

.or-mark {
  align-self: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.choice {
  border: 1px solid var(--line);
  min-height: 220px;
  padding: 22px 20px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 2px;
}
.choice-a { background: var(--opt-a); }
.choice-b { background: var(--opt-b); }
.choice .lab {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.choice .opt {
  font-family: var(--serif);
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.25;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.choice .mark {
  font-family: var(--mono);
  font-size: 12px;
  min-height: 1.2em;
  letter-spacing: 0.08em;
}
.choice.is-picked {
  outline: 2px solid var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.btn {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
}
.btn:hover { filter: brightness(1.05); }
.table-scroll { overflow-x: auto; }
.saved-drawer { border: 1px dashed var(--line); padding: 12px 14px; background: var(--paper); }
.saved-drawer summary { cursor: pointer; font-weight: 700; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.confirm-strip {
  margin-top: 18px;
  border: 1px dashed var(--line);
  background: var(--paper);
  padding: 14px 16px;
  font-size: 15px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.tab {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  text-align: left;
  border: 1px solid var(--line);
  background: #efe8d8;
  min-height: 52px;
  padding: 8px 10px;
  cursor: pointer;
  font: 700 13px var(--sans);
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}
.tab.is-active {
  background: var(--dark);
  color: #f6f2e9;
}
.tab-sym { font-family: var(--mono); font-size: 11px; }
.tab-n { font-size: 11px; color: inherit; opacity: 0.7; }

.daily-strip {
  background: var(--dark);
  color: #f4efe6;
  padding: 36px 0;
}
.daily-strip h2, .daily-strip p { color: inherit; }
.daily-strip .choice { color: var(--ink); }
.daily-strip .or-mark,
.station-dark .or-mark { color: #f4efe6; }
.station-dark .note,
.daily-strip .note { color: #c9d0c8; }

.collections { display: grid; gap: 16px; }
.row-wide-narrow { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 16px; }
.row-narrow-wide { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: 16px; }
.collection {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 20px;
}
.collection h3 { font-size: 22px; }
.feature-q { font-size: 15px; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }

.station-dark {
  background: var(--dark);
  color: #f4efe6;
  padding: 40px 0;
}
.station-dark h2 { color: inherit; }

.saved-row, .q-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.print-sheet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.no-screen,
[data-round-print-area] {
  display: none;
}
.print-card {
  border: 1px dashed #222;
  background: #fff;
  padding: 14px;
  min-height: 180px;
}
.print-num { font: 11px var(--mono); letter-spacing: 0.12em; }
.print-q { font-family: var(--serif); font-size: 18px; }

.how-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.how-grid ol { margin: 0; padding-left: 1.2em; }

.activity { padding: 14px 0; border-bottom: 1px solid var(--line); }

.article-index a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.article-index strong { display: block; font-family: var(--serif); font-size: 20px; }

.article-body { padding: 48px 0 80px; }
.article-body h1 { font-size: clamp(30px, 4vw, 44px); }
.article-body h2 { margin-top: 1.35em; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.q-list { padding-left: 1.2em; }
.q-list li { margin-bottom: 8px; overflow-wrap: anywhere; }
.faq dt { font-weight: 700; margin-top: 12px; }
.faq dd { margin: 4px 0 0; }
.contact-block { line-height: 1.8; }
.muted { color: var(--muted); }
.note { min-height: 1.3em; font-size: 14px; color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  font-size: 14px;
}
.footer-id { font-family: var(--serif); font-weight: 700; margin-bottom: 10px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 0; margin-bottom: 8px; }
.footer-nav span { margin: 0 8px; color: var(--line); }
.footer-nav a { color: var(--ink); text-decoration: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.review { width: 100%; border-collapse: collapse; font-size: 14px; }
.review th, .review td { border-bottom: 1px solid var(--line); text-align: left; padding: 8px; vertical-align: top; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { filter: none; }
}

@media (max-width: 1100px) {
  .nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 12px 16px 16px;
    gap: 10px;
    white-space: normal;
  }
  .nav.is-open { display: flex; }
  .nav-toggle { display: inline-flex; align-items: center; }
}

@media (max-width: 760px) {
  .halves { grid-template-columns: 1fr; }
  .or-mark { text-align: center; }
  .choice { width: 100%; min-height: 160px; }
  .tabs { grid-template-columns: 1fr 1fr; }
  .row-wide-narrow, .row-narrow-wide, .how-grid, .print-sheet {
    grid-template-columns: 1fr;
  }
  .btn { min-height: 46px; }
}

@media (max-width: 360px) {
  .wrap, .wrap-narrow { width: calc(100% - 16px); }
  .question { max-width: none; font-size: 25px; }
  .choice .opt { font-size: 21px; }
  .brand { font-size: 11px; }
}
