:root {
  --bg: #fbf3ea;
  --bg2: #f7e6de;
  --ink: #1e1a1a;
  --muted: #5a4a4a;
  --panel: rgba(255, 252, 248, 0.72);
  --panel-solid: #fff7f0;
  --stroke: rgba(42, 22, 22, 0.16);
  --shadow: rgba(16, 10, 10, 0.12);

  --accent: #b34b63; /* dusty rose */
  --accent2: #7a5a6e; /* mauve */
  --good: #2a8c6a;
  --warn: #b07a1a;

  --radius: 18px;
  --radius-sm: 12px;

  --mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: "Atkinson Hyperlegible", "Noto Sans", "DejaVu Sans", sans-serif;
  --serif: "Fraunces", "Noto Serif", "DejaVu Serif", serif;

  --focus: rgba(179, 75, 99, 0.35);
}

html[data-theme="dark"] {
  --bg: #0f0d10;
  --bg2: #1a1317;
  --ink: #f4ecf0;
  --muted: rgba(244, 236, 240, 0.72);
  --panel: rgba(28, 20, 26, 0.72);
  --panel-solid: #1b1419;
  --stroke: rgba(244, 236, 240, 0.16);
  --shadow: rgba(0, 0, 0, 0.55);
  --accent: #f2a1b6;
  --accent2: #c8a3b7;
  --good: #56c4a0;
  --warn: #f0c26e;
  --focus: rgba(242, 161, 182, 0.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  background:
    radial-gradient(900px 500px at 12% 0%, rgba(179, 75, 99, 0.14), transparent 55%),
    radial-gradient(900px 500px at 92% 10%, rgba(122, 90, 110, 0.16), transparent 58%),
    linear-gradient(145deg, var(--bg), var(--bg2));
  min-height: 100vh;
}

a { color: inherit; text-decoration-color: rgba(179, 75, 99, 0.5); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }

code, pre { font-family: var(--mono); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--panel-solid);
  border: 1px solid var(--stroke);
  padding: 10px 12px;
  border-radius: 10px;
}

.skip:focus { left: 12px; top: 12px; outline: none; box-shadow: 0 0 0 4px var(--focus); }

.wrap {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.10));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke);
}

html[data-theme="dark"] .topbar {
  background: linear-gradient(180deg, rgba(10, 8, 10, 0.80), rgba(10, 8, 10, 0.10));
}

.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand__logo {
  filter: drop-shadow(0 10px 16px var(--shadow));
}

.brand__name {
  font-family: var(--serif);
  font-weight: 750;
  letter-spacing: 0.2px;
  font-size: 18px;
}

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

.nav {
  display: none;
  gap: 14px;
  margin-left: 10px;
}

.nav__link {
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
}

.nav__link:hover {
  color: var(--ink);
  border-color: var(--stroke);
  background: rgba(255, 255, 255, 0.40);
}

html[data-theme="dark"] .nav__link:hover { background: rgba(255, 255, 255, 0.06); }

.actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  appearance: none;
  border: 1px solid var(--stroke);
  background: var(--panel);
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 16px 30px -22px var(--shadow);
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
  cursor: pointer;
  font-weight: 650;
}

.btn:hover { transform: translateY(-1px); border-color: rgba(179, 75, 99, 0.35); }
.btn:active { transform: translateY(0px); }

.btn--primary {
  background: linear-gradient(135deg, rgba(179, 75, 99, 0.92), rgba(122, 90, 110, 0.92));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}

.btn--primary:hover { border-color: rgba(255, 255, 255, 0.22); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.40);
}

html[data-theme="dark"] .btn--ghost {
  background: rgba(255, 255, 255, 0.06);
}

.main { padding: 28px 0 48px; }

.hero {
  padding: 26px 0 10px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.eyebrow {
  color: var(--muted);
  margin: 0 0 10px;
  font-weight: 650;
  letter-spacing: 0.2px;
}

.title {
  font-family: var(--serif);
  font-weight: 820;
  line-height: 1.06;
  margin: 0;
  font-size: clamp(34px, 4.2vw, 54px);
}

.title__accent {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: 16.5px;
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 62ch;
}

.cta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  border: 1px dashed rgba(179, 75, 99, 0.34);
  background: rgba(255, 255, 255, 0.44);
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 12px;
}

html[data-theme="dark"] .chip { background: rgba(255, 255, 255, 0.05); }

.hero__card {
  border: 1px solid var(--stroke);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 40px 90px -70px var(--shadow);
}

.terminal {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #0e0c10;
  color: #f4ecf0;
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.dot--red { background: #ff5a6a; }
.dot--amber { background: #ffbf57; }
.dot--green { background: #4cd69f; }

.terminal__title {
  margin-left: 6px;
  color: rgba(244, 236, 240, 0.82);
  font-weight: 650;
  letter-spacing: 0.2px;
}

.terminal__body {
  margin: 0;
  padding: 14px 14px 16px;
  font-size: 13px;
  line-height: 1.5;
  overflow: auto;
}

.kbd {
  font-family: var(--mono);
  font-size: 0.95em;
  padding: 1px 7px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding: 34px 0;
}

.section--alt {
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  background: radial-gradient(800px 420px at 10% 10%, rgba(179, 75, 99, 0.10), transparent 60%);
}

.section__head {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.h2 {
  margin: 0;
  font-family: var(--serif);
  letter-spacing: 0.2px;
  font-size: 28px;
}

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

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.card {
  border: 1px solid var(--stroke);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 24px 60px -52px var(--shadow);
}

.h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  letter-spacing: 0.2px;
}

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

.list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(179, 75, 99, 0.28);
  background: rgba(255, 255, 255, 0.46);
  font-weight: 700;
  font-size: 12px;
  color: var(--ink);
}

html[data-theme="dark"] .pill { background: rgba(255, 255, 255, 0.06); }

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.shot {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  overflow: hidden;
  background: var(--panel);
}

.shot__link { display: block; }

.shot__img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.005);
  filter: saturate(0.98) contrast(1.02);
}

.shot__cap {
  padding: 12px 14px;
  color: var(--muted);
  font-weight: 650;
}

.note {
  margin: 12px 0 0;
  color: var(--muted);
}

.two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.code {
  margin: 10px 0 8px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  padding: 12px;
  overflow: auto;
}

html[data-theme="dark"] .code { background: rgba(0, 0, 0, 0.30); }

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.40);
  text-decoration: none;
  color: var(--muted);
  font-weight: 650;
}

html[data-theme="dark"] .link { background: rgba(255, 255, 255, 0.06); }

.link:hover { color: var(--ink); border-color: rgba(179, 75, 99, 0.35); }

.footer {
  border-top: 1px solid var(--stroke);
  padding: 22px 0;
  background: rgba(255, 255, 255, 0.18);
}

html[data-theme="dark"] .footer { background: rgba(0, 0, 0, 0.20); }

.footer__grid {
  display: grid;
  gap: 14px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__name {
  font-family: var(--serif);
  font-weight: 820;
}

.footer__fine {
  color: var(--muted);
  font-size: 12.5px;
}

.footer__right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  max-width: min(560px, calc(100% - 24px));
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--panel-solid);
  box-shadow: 0 26px 70px -60px var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 170ms ease, transform 170ms ease;
  color: var(--muted);
  font-weight: 650;
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: enter 540ms cubic-bezier(0.2, 0.85, 0.2, 1) forwards;
  animation-delay: calc(var(--d, 0) * 80ms);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .btn { transition: none; }
}

@keyframes enter {
  to {
    opacity: 1;
    transform: translateY(0px);
  }
}

.stopped * { animation-play-state: paused !important; }

@media (min-width: 820px) {
  .nav { display: flex; }
  .hero__grid { grid-template-columns: 1.12fr 0.88fr; gap: 22px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .two { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr auto; align-items: center; }
  .footer__right { align-items: flex-end; }
}
