:root {
  --ink: #14221c;
  --ink-soft: #3d5148;
  --paper: #f4f1e8;
  --paper-deep: #e7efe8;
  --card: #fffdf8;
  --line: #d5ddd4;
  --teal: #0c6b58;
  --teal-deep: #08483c;
  --lime: #dff26a;
  --danger: #8d2b2b;
  --danger-deep: #6d1f1f;
  --ok: #0c6b58;
  --shadow: 0 18px 50px rgba(20, 34, 28, 0.08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Segoe UI", "Avenir Next", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(223, 242, 106, 0.35), transparent 28rem),
    var(--paper);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}

a { color: var(--teal-deep); }

a:hover { color: var(--teal); }

img, svg { display: block; max-width: 100%; }

.wrap {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand span { font-family: var(--serif); font-size: 1.35rem; }

.mark {
  width: 2.1rem;
  height: 2.1rem;
  flex: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 650;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  padding: 1.5rem 0 3.5rem;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; line-height: 1.15; }

h1 { font-size: clamp(2.7rem, 6vw, 4.6rem); margin: 0 0 1rem; }

h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 0.8rem; }

.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 38rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.button, button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.button.primary, button.primary { background: var(--ink); color: var(--lime); }

.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }

.button.danger, button.danger { background: var(--danger); color: white; }

button:disabled { opacity: 0.45; cursor: not-allowed; }

.card-stage { display: grid; justify-items: end; }

.profile-card {
  width: min(100%, 22rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.profile-top { display: flex; justify-content: space-between; gap: 1rem; }

.who { margin: 0; font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; }

.role, .company { margin: 0.2rem 0; color: var(--ink-soft); }

.stamp {
  align-self: flex-start;
  background: var(--lime);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.qr {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.28rem;
  margin: 1rem 0 0.8rem;
  padding: 0.8rem;
  background: var(--paper-deep);
  border-radius: 1rem;
}

.qr i {
  display: block;
  aspect-ratio: 1;
  background: var(--ink);
  border-radius: 2px;
}

.qr i.off { background: transparent; }

.code {
  margin: 0;
  font-family: "Cascadia Mono", "Segoe UI Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  line-height: 1.45;
  word-break: break-all;
  color: var(--ink-soft);
}

.section { padding: 0.5rem 0 3.5rem; }

.steps, .split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.split { grid-template-columns: 1fr 1fr; }

article.panel, .notice, form, .session {
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: 1.15rem 1.2rem;
}

.step-no {
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
}

.page {
  padding-bottom: 3rem;
}

.page h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-top: 0.4rem; }

.prose { max-width: 44rem; }

.prose h2 { font-size: 1.55rem; margin-top: 2rem; }

.prose ul { padding-left: 1.2rem; }

.notice { border-color: #e2c96a; background: #fff8df; }

.notice.danger {
  border-color: #e4b4b4;
  background: #fff4f2;
}

.stack { display: grid; gap: 0.85rem; margin-top: 1rem; }

label { display: grid; gap: 0.35rem; font-weight: 650; }

input {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 0.8rem;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--ink);
}

input:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}

.session p { margin: 0.2rem 0; }

.muted { color: var(--ink-soft); }

.status { min-height: 1.5rem; font-weight: 650; }

.status.error { color: var(--danger-deep); }

.status.ok { color: var(--ok); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer nav { display: flex; gap: 1rem; }

@media (max-width: 800px) {
  .hero, .steps, .split { grid-template-columns: 1fr; }
  .card-stage { justify-items: start; }
  .site-header { align-items: flex-start; flex-direction: column; }
}
