/* Jury Night website. One stylesheet, no framework, no external requests. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #0b1418;
  --night-2: #101c21;
  --night-3: #16252c;
  --line: #2a3b42;
  --paper: #f4ecdf;
  --muted: #a49d92;
  --amber: #ffb547;
  --amber-shade: #e8962f;
  --focus: #ffb547;
  --measure: 65ch;
  --radius: 12px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17 px */
  line-height: 1.6;
  font-optical-sizing: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (min-width: 720px) {
  body {
    font-size: 1.125rem; /* 18 px */
  }
}

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

a {
  color: var(--amber);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--paper);
  color: var(--night);
  border-radius: 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 1.5rem + 3vw, 3.6rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem);
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p,
ul,
ol {
  margin: 0 0 1em;
}

/* Layout */

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 720px) {
  .wrap {
    padding: 0 32px;
  }
}

main {
  flex: 1 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  /* The wordmark's J head rises 5.08 px above its 30 px line box: keep it free and unclipped. */
  padding: 10px 0 6px;
  overflow: visible;
}

.brand img {
  width: 153px;
  height: auto;
  overflow: visible;
}

.header-link {
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 0.25rem;
}

.header-link:hover {
  color: var(--amber);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.5;
  max-width: 40ch;
}

.muted {
  color: var(--muted);
}

/* Home: hero */

.hero {
  padding: 48px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-grid > *,
.case-grid > * {
  min-width: 0;
}

h1 .line {
  display: block;
}

@media (min-width: 900px) {
  .hero {
    padding: 80px 0 88px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 56px;
  }
}

.hero-figure {
  margin: 0;
}

.hero-figure img,
.case-figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

figcaption {
  margin-top: 0.6rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Buttons */

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1.75rem 0 0.75rem;
}

.btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 56px;
  padding: 0.55rem 1.25rem;
  border-radius: 10px;
  text-decoration: none;
  line-height: 1.2;
  font-weight: 700;
  border: 2px solid var(--amber);
}

.btn small {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--amber);
  color: var(--night);
}

.btn-primary:hover {
  background: var(--amber-shade);
  border-color: var(--amber-shade);
}

.btn-secondary {
  background: transparent;
  color: var(--paper);
}

.btn-secondary:hover {
  background: var(--night-3);
}

/* Sections */

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

@media (min-width: 900px) {
  .section {
    padding: 80px 0;
  }
}

.steps {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 16px;
  counter-reset: step;
}

@media (min-width: 820px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.steps li {
  counter-increment: step;
  background: var(--night-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  border: 2px solid var(--amber);
  color: var(--amber);
  font-family: var(--font-display);
  font-weight: 800;
}

.steps p {
  margin: 0;
  color: var(--paper);
}

.case-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .case-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 56px;
  }
}

.case-figure {
  margin: 0;
}

.case-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 20px;
}

.case-list h3 {
  margin-bottom: 0.25rem;
}

.case-list p {
  margin: 0;
  max-width: var(--measure);
}

.facts {
  margin-top: 1.5rem;
  padding-left: 1.2em;
  max-width: var(--measure);
}

.facts li {
  margin-bottom: 0.4rem;
}

.notice {
  max-width: var(--measure);
  background: var(--night-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  padding: 20px 24px;
}

.notice h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.notice p:last-child {
  margin-bottom: 0;
}

/* Link landing pages (/r/, /case/, 404) */

.landing {
  padding: 56px 0 72px;
}

.landing .wrap > * {
  max-width: 40rem;
}

.code-box {
  display: inline-block;
  margin: 0.25rem 0 1.25rem;
  padding: 0.5rem 1rem;
  border: 1px dashed var(--muted);
  border-radius: 8px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  word-break: break-all;
}

/* Legal and help pages: plain and readable */

.doc {
  padding: 40px 0 72px;
}

.doc .wrap > * {
  max-width: var(--measure);
}

.doc h1 {
  font-size: clamp(1.9rem, 1.5rem + 2vw, 2.6rem);
}

.doc h2 {
  font-size: 1.4rem;
  margin-top: 2.2em;
  padding-top: 0.2em;
}

.doc h3 {
  font-size: 1.12rem;
  margin-top: 1.8em;
}

.doc ul {
  padding-left: 1.3em;
}

.doc li {
  margin-bottom: 0.45em;
}

.doc li > ul {
  margin-top: 0.45em;
}

.doc address {
  font-style: normal;
  margin-bottom: 1em;
}

.doc .stand {
  color: var(--muted);
}

.toc {
  background: var(--night-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 1.5rem 0 2rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.4em;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.doc .table-scroll {
  max-width: none;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--night-2);
  font-weight: 600;
}

tr:last-child td {
  border-bottom: 0;
}

.faq section {
  border-top: 1px solid var(--line);
  padding: 0.5rem 0 0.75rem;
}

.doc .faq h3 {
  margin-top: 1em;
}

/* Owner placeholders: must stay impossible to overlook until filled in. */

.ph {
  background: #ffe08a;
  color: #1a1200;
  padding: 0.05em 0.35em;
  border-radius: 4px;
  outline: 2px dashed #d23f3f;
  outline-offset: 1px;
  font-weight: 600;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  font-size: 0.95rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}

.site-footer nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.site-footer nav a {
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--paper);
}

.site-footer p {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .btn,
  .header-link {
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
  }
}
