:root {
  --ink: #18211f;
  --muted: #62706b;
  --bg: #f7f5ef;
  --paper: #fffdf8;
  --line: #d9d4c7;
  --green: #24483f;
  --blue: #476a87;
  --coral: #b55a48;
  --gold: #c79f4f;
  --shadow: 0 18px 50px rgba(28, 36, 32, .12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

a { color: var(--green); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .9rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, .96);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-weight: 850;
  font-size: 1.35rem;
}

.brand small {
  font-weight: 500;
  color: var(--blue);
}

nav {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  padding: .5rem .7rem;
  border-radius: 6px;
}

nav a:hover { background: #ebe7dc; }

main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  min-height: 680px;
  display: flex;
  align-items: flex-end;
  margin: 1rem 0 0;
}

.hero-photo {
  width: 100%;
  border-radius: 0 0 8px 8px;
  background:
    linear-gradient(90deg, rgba(18, 28, 25, .82) 0%, rgba(18, 28, 25, .58) 40%, rgba(18, 28, 25, .08) 100%),
    url('/assets/img/studio-hero.png') center / cover no-repeat;
}

.hero-copy {
  color: #fffdf8;
  width: min(720px, 100%);
  padding: clamp(2rem, 6vw, 5rem);
}

.hero h1,
.page-title h1 {
  margin: 0 0 .5em;
  font-size: clamp(2.45rem, 5vw, 4.85rem);
  line-height: 1;
  font-weight: 850;
}

h2 {
  margin: 0 0 .75rem;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.08;
}

h3 { margin: 0 0 .5rem; }

p { margin: 0 0 1rem; }

.lead {
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  color: inherit;
  max-width: 720px;
}

.signed-in-line {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-top: 1rem;
  padding: .55rem .75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--green);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.eyebrow {
  margin: 0 0 .65rem;
  color: var(--coral);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero .eyebrow { color: #f1c877; }

.section,
.page-title {
  padding: clamp(2rem, 7vw, 3rem) 0;
}

.page-title.narrow { max-width: 760px; }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .85fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.25rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.cards-three,
.session-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.form-card,
.list-panel,
.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.card {
  padding: 1.25rem;
  min-height: 100%;
}

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

.card a:not(.button) {
  font-weight: 750;
  text-decoration: none;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.stat {
  padding: 1rem;
}

.stat strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  color: var(--green);
}

.stat span {
  display: block;
  margin-top: .35rem;
  color: var(--muted);
}

.workflow {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  margin: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.steps li {
  background: var(--paper);
  padding: 1.1rem;
}

.steps strong,
.steps span {
  display: block;
}

.steps span {
  color: var(--muted);
  margin-top: .35rem;
}

.platform-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--green);
  color: #fffdf8;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 8px;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.platform-band .eyebrow { color: var(--gold); }

.platform-band p { max-width: 760px; }

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  padding: .75rem 1rem;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.button.secondary { background: var(--blue); }
.button.light { background: #fffdf8; color: var(--green); }
.button.quiet { background: transparent; color: var(--green); border: 1px solid var(--line); }

.button[aria-disabled="true"],
button:disabled {
  cursor: wait;
  opacity: .7;
}

.actions,
.form-actions,
.portal-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

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

form {
  display: grid;
  gap: 1rem;
}

.form-card {
  padding: clamp(1rem, 3vw, 1.5rem);
  max-width: 820px;
  margin-bottom: 3rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

label,
fieldset {
  display: grid;
  gap: .4rem;
  font-weight: 750;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

legend { padding: 0 .35rem; }

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c9c3b7;
  border-radius: 6px;
  padding: .75rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.status {
  margin: 1rem 0 2rem;
  padding: 1rem;
  border-radius: 8px;
  background: #edf6ef;
  border: 1px solid #bddbc4;
}

.status.success {
  display: grid;
  gap: .55rem;
  max-width: 820px;
}

.registration-id {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  padding: .45rem .55rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 1.05rem;
}

.error {
  background: #fff0ef;
  border-color: #e0aaa1;
}

.session-meta {
  display: block;
  color: var(--coral);
  font-size: .86rem;
  font-weight: 800;
  margin-bottom: .5rem;
}

.list-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin: 1.5rem 0 3rem;
  background: var(--line);
}

.list-panel article {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(240px, 1.4fr) minmax(160px, .8fr);
  gap: 1rem;
  padding: 1rem;
  background: var(--paper);
}

.registration-list {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 3rem;
}

.registration-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.2fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.registration-card h2 {
  font-size: 1.35rem;
  margin-bottom: .5rem;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: 0;
}

.status-grid div {
  padding: .8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.status-grid dt {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.status-grid dd {
  margin: .2rem 0 0;
  font-weight: 850;
}

.status-grid .ready { color: var(--green); }

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: nowrap;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}

.preview-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #eee;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 1.5rem clamp(1rem, 4vw, 3rem);
  color: var(--muted);
  background: #fffdf8;
}

.site-footer div {
  display: grid;
  gap: .15rem;
}

@media (max-width: 860px) {
  .site-header,
  .site-footer,
  .platform-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero { min-height: 560px; }

  .two-col,
  .cards-three,
  .session-list,
  .steps,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .list-panel article {
    grid-template-columns: 1fr;
    gap: .35rem;
  }

  .registration-card,
  .status-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  main { width: min(100% - 1rem, 1120px); }
  .hero-copy { padding: 1.25rem; }
  .hero h1,
  .page-title h1 { font-size: 2.25rem; }
  .actions .button,
  .form-actions button { width: 100%; }
}
