:root {
  --bg: #f4efe4;
  --bg-soft: #fff8ef;
  --surface: rgba(255, 250, 243, 0.92);
  --surface-strong: #fffdf8;
  --text: #1f1f18;
  --muted: #6c6455;
  --line: rgba(69, 57, 32, 0.16);
  --accent: #a44a12;
  --accent-strong: #72300b;
  --shadow: 0 22px 70px rgba(77, 49, 15, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(230, 161, 92, 0.28), transparent 24%),
    radial-gradient(circle at top right, rgba(189, 117, 51, 0.12), transparent 20%),
    linear-gradient(180deg, #f8f2e6 0%, #efe5d4 100%);
  font-family: Georgia, "Times New Roman", serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

.shell-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 40px 12px;
  align-items: flex-start;
}

.shell-header.compact {
  padding-bottom: 0;
}

.eyebrow,
.section-label {
  margin: 0 0 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  line-height: 1.08;
}

.lead,
.muted,
.form-hint,
#sessionCopy {
  color: var(--muted);
}

.lead {
  margin-top: 10px;
  max-width: 640px;
}

.shell-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shell-nav a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

.ghost-button {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: inherit;
  cursor: pointer;
}

.shell-main {
  padding: 12px 40px 48px;
}

.shell-main.narrow {
  max-width: 760px;
}

.hero-panel,
.form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  padding: 28px;
  margin-bottom: 28px;
}

.hero-card,
.app-card,
.session-box {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.hero-card {
  padding: 18px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 16px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.app-card {
  display: block;
  padding: 20px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.app-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(77, 49, 15, 0.14);
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--accent-strong);
  font-size: 0.78rem;
}

.app-card p {
  margin-top: 8px;
  color: var(--muted);
}

.stack-form {
  display: grid;
  gap: 14px;
}

.form-panel {
  padding: 24px;
}

.stack-form label {
  display: grid;
  gap: 8px;
}

.stack-form input {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fffdf8;
}

.stack-form button {
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff8ef;
  cursor: pointer;
}

.form-hint {
  margin-top: 12px;
}

[hidden] {
  display: none !important;
}

.session-box {
  padding: 16px;
  overflow: auto;
}

@media (max-width: 800px) {
  .shell-header,
  .shell-main {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }
}
