:root {
  --bg: #ffffff;
  --ink: #161616;
  --body: #3b3b3b;
  --muted: #767676;
  --line: #e5e5e5;
  --field: #f6f6f6;
  --live: #c4302b;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 400 18px/1.6 "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }

.wrap { width: 100%; max-width: 680px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

h1, h2, h3 { color: var(--ink); font-weight: 700; }

/* ---------- top bar ---------- */
.bar { display: flex; align-items: baseline; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; font-size: 16px; }
.mark { font-weight: 700; font-size: 18px; text-decoration: none; }

/* ---------- intro ---------- */
.intro { padding-top: clamp(24px, 7vw, 64px); padding-bottom: 40px; }
h1 { margin: 0 0 20px; font-size: clamp(2rem, 5.5vw, 2.75rem); line-height: 1.12; letter-spacing: -.015em; }
.intro p { margin: 0 0 16px; }

.signup { display: flex; gap: 8px; margin-top: 28px; }
.signup input {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 14px;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}
.signup input::placeholder { color: #8a8a8a; }
.signup input:focus { border-color: var(--ink); background: #fff; outline: none; }
.signup button {
  height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font: 600 17px/1 "Archivo", system-ui, sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.signup button:hover { background: #333; }
.signup button:disabled { background: #8a8a8a; cursor: default; }
.fine { margin: 12px 0 0 !important; font-size: 15px; color: var(--muted); }

/* ---------- this week ---------- */
.now { padding: 24px 0 0; border-top: 1px solid var(--line); }
.now p { margin: 0; }
.now b { color: var(--ink); font-weight: 600; }
.now-img { margin: 0 0 16px; }
.now-img img { width: 100%; border-radius: 6px; }
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--live); vertical-align: 2px; }

/* ---------- sections ---------- */
main section + section { padding-top: 44px; }
h2 { margin: 0 0 14px; font-size: 22px; line-height: 1.3; }

.rules { margin: 0; padding-left: 20px; }
.rules li { margin: 0 0 10px; padding-left: 4px; }

.past { list-style: none; margin: 0; padding: 0; }
.past li { display: grid; grid-template-columns: 144px 1fr; gap: 18px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.past li:last-child { border-bottom: 1px solid var(--line); }
.past img { width: 144px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; background: var(--field); }
.past h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.past p { margin: 2px 0 0; font-size: 15px; }
.past .from { color: var(--body); }
.past .status { color: var(--muted); }
.past li.is-closed img { opacity: .6; }

/* ---------- footer ---------- */
.foot { margin-top: 56px; padding-top: 24px; padding-bottom: 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.foot p { margin: 0 0 6px; }
.foot a { color: var(--muted); }
.legal { font-size: 13px; }

/* ---------- simple pages (thanks, privacy) ---------- */
.page { padding-top: clamp(24px, 7vw, 64px); padding-bottom: 72px; }
.page h1 { margin-bottom: 20px; }
.page h2 { margin: 32px 0 6px; font-size: 19px; }
.page p { margin: 0 0 16px; }

@media (max-width: 520px) {
  body { font-size: 17px; }
  .signup { flex-direction: column; }
  .signup input { flex: none; }
  .signup button { width: 100%; }
  .past li { grid-template-columns: 96px 1fr; gap: 14px; }
  .past img { width: 96px; }
}
.past li:not(:has(img)) { grid-template-columns: 1fr; }
