/* Ground Truth · Table Talk
   Tokens inherited verbatim from groundtruth.getsphere.com (see DESIGN.md). */

@font-face {
  font-family: "Cambon";
  src: url("assets/fonts/Cambon-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "CoFo Gothic";
  src: url("assets/fonts/CoFoGothic-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "CoFo Gothic";
  src: url("assets/fonts/CoFoGothic-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-night: #0d0e0d;
  --color-volt: #99ff4b;
  --color-mint: #dcf8da;
  --color-stone-20: #f9f8f3;
  --color-stone-40: #ecebe7;
  --color-stone-60: #dfddcf;
  --color-midnight-40: #5e625e;
  --color-midnight-60: #414441;
  --color-midnight-80: #2e312e;
  --color-midnight-100: #1f231f;
  --color-white: #ffffff;

  --bg-page: var(--color-stone-20);
  --surface: var(--color-white);
  --text-primary: var(--color-night);
  --text-secondary: var(--color-midnight-60);
  --text-muted: var(--color-midnight-40);
  --border-subtle: var(--color-stone-60);

  --gradient-primary: linear-gradient(180deg, #6ae654 0%, #99ff4b 44%, #ddfbd3 77%, #48b45f 100%);

  --font-primary: "Cambon", Georgia, "Times New Roman", serif;
  --font-secondary: "CoFo Gothic", "Helvetica Neue", Arial, sans-serif;

  --radius-md: 16px;
  --radius-pill: 999px;

  --dur-base: 320ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; }

body {
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-secondary);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  padding: 20px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding-top: 4px;
}

.logo { display: inline-flex; }
.logo img { display: block; }


.wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 0 32px;
}

.page-head {
  margin-bottom: 24px;
}

.series {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

/* The site's dash mark: a thick bar and a thin line, drawn from the logo geometry. */
.dash {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 12px;
}
.dash::before {
  content: "";
  width: 16px;
  height: 6px;
  background: var(--color-night);
}
.dash::after {
  content: "";
  width: 12px;
  height: 2px;
  background: var(--color-night);
}

.page-title {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: clamp(40px, 11vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.page-sub {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* The event site's signature dark card ("SW054000 · Software … Ground truth: verified"). */
.card {
  background: var(--color-midnight-100);
  border: 1px solid var(--color-midnight-80);
  border-radius: var(--radius-sm, 8px);
  overflow: hidden;
}

.card-inner {
  padding: 28px 24px 28px;
  height: clamp(280px, 44dvh, 420px);
  display: flex;
  flex-direction: column;
}

.question-wrap {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.question {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: clamp(28px, 7vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--color-stone-20);
  margin: auto 0;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}

/* Type steps down with question length so most cards fill the same fixed frame. */
.question.q-md { font-size: clamp(24px, 5.5vw, 36px); }
.question.q-sm { font-size: clamp(20px, 4.5vw, 28px); line-height: 1.3; }
.question.q-xs { font-size: clamp(17px, 4vw, 22px); line-height: 1.4; }

.question.is-leaving {
  opacity: 0;
  transform: translateY(12px);
  transition-duration: 140ms;
}

.btn {
  margin-top: 20px;
  width: 100%;
  padding: 16px 32px;
  border: 1px solid var(--color-volt);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-volt);
  font-family: var(--font-secondary);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.1;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 180ms var(--ease-out), background-color 180ms var(--ease-out), color 180ms var(--ease-out);
}

.btn:active { transform: scale(0.98); }

@media (hover: hover) {
  .btn:hover { background: var(--color-volt); color: var(--color-night); }
}

.notice {
  margin-top: 24px;
  padding: 10px 16px;
  border: 1px dashed var(--color-stone-60);
  border-radius: 8px;
  background: var(--color-stone-40);
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .question, .btn { transition: none; }
}

@media (min-width: 640px) {
  .page-head { margin-bottom: 32px; }
  .card-inner { padding: 24px 40px 24px; height: clamp(340px, 46vh, 460px); }
  .question { padding-bottom: 8px; }
  .btn { width: auto; align-self: center; padding: 16px 48px; }
}
