:root {
  --bg: #f3efe6;
  --ink: #1c1915;
  --muted: #5e584e;
  --line: rgba(28, 25, 21, 0.12);
  --panel: #fffdf8;
  --brass: #8a5a2b;
  --brass-soft: #f0e2d2;
  --shadow: 0 18px 50px rgba(60, 40, 20, 0.08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 40% at 10% -10%, #fff 0%, transparent 50%),
    var(--bg);
  font-family: var(--sans);
  line-height: 1.55;
}

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

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 22px 22px 0;
}

.logo {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 18px;
}

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

.nav nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.nav nav a:hover { color: var(--ink); }

main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 22px 72px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brass);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0 0 12px;
  max-width: 16em;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
}

.lede {
  max-width: 40em;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 18px;
}

.tool {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  align-items: start;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 22px;
}

label, legend {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 14px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.field input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 12px 0;
  font: 500 18px var(--sans);
  color: var(--ink);
}

.field input:focus { outline: none; }

.field:focus-within {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px var(--brass-soft);
}

fieldset {
  margin: 4px 0 0;
  padding: 0;
  border: 0;
}

.choice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--ink);
  font-size: 15px;
}

.result-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.result-main {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
}

.result-main span { color: var(--brass); }

.result-sub {
  margin: 8px 0 0;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.stats div {
  padding: 12px;
  border-radius: 12px;
  background: var(--brass-soft);
}

.stats dt {
  color: var(--muted);
  font-size: 12px;
}

.stats dd {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 22px;
}

.note {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.scene {
  position: relative;
  height: 180px;
  border-radius: 14px;
  background:
    linear-gradient(#f7f1e7, #f7f1e7) 0 0 / 100% 28px no-repeat,
    linear-gradient(#ebe4d8, #ebe4d8);
  overflow: hidden;
}

.ceiling-line {
  position: absolute;
  top: 28px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: #c8b8a2;
}

.drops { position: absolute; inset: 30px 8% 46px; }

.pendant {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
}

.cord {
  position: absolute;
  top: 0;
  bottom: 22px;
  left: -1px;
  width: 2px;
  background: #b9a48a;
}

.bulb {
  position: absolute;
  left: -11px;
  bottom: 0;
  width: 22px;
  height: 16px;
  border-radius: 0 0 12px 12px;
  background: #8a5a2b;
}

.bulb.open {
  background: transparent;
  border: 2px solid #8a5a2b;
  border-top: 0;
}

.island-bar {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 16px;
  height: 22px;
  border-radius: 4px;
  background: #2b2622;
  color: #f3efe6;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
}

section { margin-top: 56px; }

h2 { font-size: 32px; margin: 0 0 12px; }

h3 { font-size: 22px; margin: 22px 0 8px; }

p, li { font-size: 17px; }

ol { padding-left: 1.2em; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.cards article {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.7);
}

.cards h3 { margin-top: 0; }

.cards p { margin: 0; color: var(--muted); font-size: 15px; }

.prose { max-width: 680px; }

footer {
  max-width: 1040px;
  margin: 0 auto;
  padding: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

footer nav { display: flex; gap: 14px; }

footer a { color: var(--muted); }

@media (max-width: 800px) {
  .tool, .cards, .stats { grid-template-columns: 1fr; }
  .nav { align-items: flex-start; flex-direction: column; }
}
