/* Socratica visual system, adapted from print posters to web.
   Paper, black ink, exactly one accent (the scribble), a heavy lowercase display
   face, monospace for everything else. No rounded cards, shadows or icons. */

:root {
  --paper: #F7F4E8;
  --ink: #111111;
  --muted: #6B685F;
  --rule: #D8D2C4;
  --accent: #FF6A00;

  --display: "Inter", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.45;
}

a { color: inherit; }
a:hover { color: var(--muted); }

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

/* The name is a small label at the edge; the action gets the big type. */
.meta {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 16px;
  align-items: center;
  font-size: 12px;
  line-height: 1.15;
  text-transform: lowercase;
}

.name { font-weight: 600; }
.rule { border-top: 1px solid var(--ink); }
.langs { padding-left: 8px; white-space: nowrap; }

.hero {
  padding: 16vh 0 10vh;
}

.title {
  margin: 0;
  font-family: var(--display);
  /* Longest line (--chars, set inline) fills at most the column width;
     0.52em is roughly one Inter 900 character at this tracking. */
  font-size: min(112px, calc(min(100vw - 48px, 672px) / (var(--chars) * 0.52)));
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.06em;
  word-spacing: 0.1em;
  text-transform: lowercase;
}

.title span { display: block; }

.title .underlined {
  position: relative;
  display: inline-block;
}

.scribble {
  position: absolute;
  left: -2%;
  bottom: -0.2em;
  width: 104%;
  height: 0.22em;
  overflow: visible;
}

.scribble path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 7;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.blurb {
  width: 74%;
  margin: 56px 0 0;
  padding-top: 14px;
  border-top: 1.5px solid var(--ink);
}

.section {
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}

.label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  text-transform: lowercase;
}

.section p { margin: 0; }
.section ul { margin: 0; padding: 0; list-style: none; }
.section li + li { margin-top: 6px; }
.muted { color: var(--muted); }

.when {
  margin-top: 28px;
  font-size: 13px;
}

.when p { margin: 0; }

.button {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}

.button:hover { background: #333; color: var(--paper); }

/* No session open for registration: the button stays, grayed out. */
.button[aria-disabled="true"],
.button[aria-disabled="true"]:hover {
  background: var(--rule);
  color: var(--muted);
  cursor: default;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
}

@media (max-width: 560px) {
  .blurb { width: 100%; }
}

/* Impressions: attendee form, admin page, homepage quotes. */
.prewrap { white-space: pre-wrap; }

form label.label { display: block; margin-top: 20px; }

fieldset { margin: 20px 0 0; padding: 0; border: 0; }
fieldset label { display: block; margin-top: 6px; }

textarea, input[type="text"], input[type="password"] {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.button { border: 0; font-family: inherit; font-size: inherit; cursor: pointer; }

.admin-link { padding: 16px 0; border-top: 1px solid var(--rule); }
.admin-link p { margin: 6px 0; }

.impression { margin: 0 0 24px; }
.impression p { margin: 0 0 8px; white-space: pre-wrap; }
.impression footer { color: var(--muted); font-size: 12px; }

/* Latest session, announced: the accent as a thick rule, big numbers. */
.celebrate { padding: 20px 0 36px; border-top: 6px solid var(--accent); }
.celebrate-title {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: min(72px, 15vw);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-transform: lowercase;
}
.stats { display: flex; flex-wrap: wrap; gap: 16px 40px; margin-top: 20px; }
.stats p { margin: 0; max-width: 16em; }
.stat {
  display: block;
  font-family: var(--display);
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

/* Result of the last submit on the attendee page. */
.notice { margin: 20px 0; padding: 14px 16px; border: 1px solid var(--ink); }
.notice p { margin: 8px 0 0; }
.notice.saved { border-left: 8px solid var(--accent); }
.notice.error { border: 2px solid var(--ink); }

/* Feedback for the "read what people made" button: it reacts while pressed and
   the section it jumps to is marked afterwards (a static bar, so it also works
   without motion), plus a short fade for those who allow motion. */
.button:not([aria-disabled="true"]):active { transform: translateY(2px); background: var(--accent); color: var(--ink); }
.button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

#impressions { scroll-margin-top: 24px; }
#impressions:target {
  padding-left: 16px;
  border-left: 8px solid var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  #impressions:target { animation: target-flash 1.6s ease-out; }
}

@keyframes target-flash {
  from { background: rgba(255, 106, 0, 0.25); }
  to { background: transparent; }
}
