:root {
  --bg: #efe8db;
  --bg-deep: #e3d6c2;
  --paper: #fffaf2;
  --paper-soft: rgba(255, 250, 242, 0.58);
  --paper-glass: rgba(255, 250, 242, 0.76);
  --paper-strong: rgba(255, 252, 247, 0.94);
  --ink: #1d221f;
  --muted: #596058;
  --soft: #877d70;
  --line: rgba(100, 79, 49, 0.16);
  --line-dark: rgba(84, 63, 36, 0.28);
  --blue: #224f76;
  --blue-dark: #173855;
  --green: #476f5d;
  --accent: #9a6a38;
  --shadow: 0 28px 72px rgba(57, 41, 21, 0.15);
  --shadow-soft: 0 14px 34px rgba(57, 41, 21, 0.1);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-xl: 38px;
  --sans: "Aptos", "Segoe UI Variable", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

:root[data-theme="dark"] {
  --bg: #11120f;
  --bg-deep: #1b1d19;
  --paper: #1c1f1a;
  --paper-soft: rgba(28, 31, 26, 0.7);
  --paper-glass: rgba(27, 30, 25, 0.82);
  --paper-strong: rgba(32, 35, 29, 0.92);
  --ink: #f4efe5;
  --muted: #cabfae;
  --soft: #9d9284;
  --line: rgba(233, 215, 187, 0.12);
  --line-dark: rgba(233, 215, 187, 0.22);
  --blue: #5f8db7;
  --blue-dark: #80a9cf;
  --green: #8fb9a2;
  --accent: #d4a066;
  --shadow: 0 28px 72px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.22);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 34%),
    radial-gradient(circle at 84% 12%, rgba(154, 106, 56, 0.1), transparent 24%),
    linear-gradient(180deg, #f7f0e5 0%, var(--bg) 50%, #ebe3d5 100%);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(95, 141, 183, 0.12), transparent 22%),
    linear-gradient(180deg, #151613 0%, var(--bg) 46%, #161714 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 34%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.045) 0,
      rgba(255, 255, 255, 0.045) 1px,
      transparent 1px,
      transparent 120px
    );
  opacity: 0.55;
}

:root[data-theme="dark"] body::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 30%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.018) 0,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px,
      transparent 120px
    );
  opacity: 1;
}

body,
.nav,
.btn,
.release div,
.product-shot,
.app-titlebar,
.mail-app,
.mail-app aside,
.message-list,
.message,
.note,
.quiet,
.checklist,
table,
.download-box,
.panel,
.card,
.cta,
.footer,
button,
.meta span {
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.wrap {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 26px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(37, 29, 16, 0.04);
}

.nav-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  border-radius: 9px;
  box-shadow: 0 8px 22px rgba(34, 79, 118, 0.18);
}

.links {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

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

.download-link {
  padding: 8px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 12%, var(--paper));
  color: var(--blue) !important;
  font-weight: 700;
}

.theme-toggle {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 88%, white);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--soft);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  padding: 96px 0 70px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.6), transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(154, 106, 56, 0.12), transparent 20%);
  pointer-events: none;
}

:root[data-theme="dark"] .hero::before {
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.05), transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(95, 141, 183, 0.16), transparent 20%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(540px, 1.08fr);
  gap: 58px;
  align-items: center;
}

.hero-copy,
.product-shot {
  position: relative;
  z-index: 1;
}

.kicker {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-family: var(--serif);
  text-wrap: balance;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.4rem, 6vw, 4.7rem);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(2.1rem, 3.4vw, 2.75rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 21px;
  line-height: 1.18;
  color: var(--ink);
}

p,
li,
td {
  color: var(--muted);
}

.lead {
  max-width: 34ch;
  margin-top: 22px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.62;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 20px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 92%, white);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.btn:hover {
  border-color: var(--soft);
  transform: translateY(-1px);
}

.btn.primary {
  border-color: color-mix(in srgb, var(--blue-dark) 75%, black);
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  box-shadow: 0 16px 32px rgba(34, 79, 118, 0.28);
}

.btn.primary:hover {
  background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 88%, white), var(--blue-dark));
  color: #fff;
}

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

.release div {
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-glass);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.release div:nth-child(2) {
  transform: translateY(14px);
}

.release div:nth-child(3) {
  transform: translateY(6px);
}

.release dt {
  margin-bottom: 5px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.release dd {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.product-shot {
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0) 32%),
    linear-gradient(145deg, color-mix(in srgb, var(--paper) 95%, white), color-mix(in srgb, var(--bg-deep) 16%, var(--paper)));
  box-shadow: var(--shadow);
  transform: translateY(8px);
}

.product-shot::before {
  content: "";
  position: absolute;
  inset: auto auto 14% -8%;
  width: 52%;
  height: 44%;
  background: radial-gradient(circle, rgba(34, 79, 118, 0.18), transparent 70%);
  filter: blur(28px);
  pointer-events: none;
}

:root[data-theme="dark"] .product-shot::before {
  background: radial-gradient(circle, rgba(95, 141, 183, 0.22), transparent 70%);
}

.app-titlebar {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0));
  color: var(--ink);
  font-size: 13px;
}

.window-buttons {
  color: var(--soft);
  font-family: "Consolas", monospace;
  letter-spacing: 0.18em;
}

.mail-app {
  display: grid;
  grid-template-columns: 132px 230px 1fr;
  min-height: 450px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paper) 94%, white), color-mix(in srgb, var(--bg) 18%, var(--paper)));
}

.mail-app aside,
.message-list,
.reader {
  padding: 18px 16px;
}

.mail-app aside {
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--paper) 88%, var(--bg)), color-mix(in srgb, var(--bg) 36%, var(--paper)));
}

.mail-app aside b {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
}

.mail-app aside span {
  display: block;
  padding: 9px 10px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
}

.mail-app aside span + span {
  margin-top: 4px;
}

.mail-app aside .active {
  background: color-mix(in srgb, var(--blue) 16%, var(--paper));
  color: var(--blue-dark);
  font-weight: 700;
}

.message-list {
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 90%, rgba(255, 255, 255, 0));
}

.message {
  padding: 12px 12px 13px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.message + .message {
  margin-top: 10px;
}

.message.selected {
  border-color: color-mix(in srgb, var(--blue) 48%, transparent);
  background: color-mix(in srgb, var(--blue) 9%, var(--paper));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 8px 18px rgba(34, 79, 118, 0.08);
  transform: translateX(6px);
}

.message b,
.message span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message b {
  color: var(--ink);
  font-size: 13px;
}

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

.reader {
  padding: 24px 22px;
}

.reader h2 {
  margin: 7px 0 14px;
  font-size: 32px;
}

.reader p {
  max-width: 28ch;
}

.muted {
  color: var(--soft);
  font-size: 13px;
}

.note {
  margin: 24px 0;
  padding: 15px 16px;
  border: 1px solid color-mix(in srgb, var(--blue) 16%, var(--line));
  border-radius: 18px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--blue) 6%, var(--paper)), color-mix(in srgb, var(--paper) 96%, white));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.note b {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

button {
  padding: 10px 15px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 92%, white);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

button:hover {
  transform: translateY(-1px);
}

.section {
  padding: 78px 0;
}

.quiet {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)),
    var(--paper-soft);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.65fr);
  gap: 56px;
  align-items: start;
}

.split p {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 18px;
  line-height: 1.68;
}

.checklist {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-strong);
  box-shadow: var(--shadow-soft);
}

.checklist p {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 16px;
}

.checklist ul {
  margin: 0;
  padding-left: 20px;
}

.checklist li + li {
  margin-top: 10px;
}

.notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 26px;
}

.notes article {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
    var(--paper-strong);
  box-shadow: var(--shadow-soft);
}

.notes p {
  margin-top: 12px;
  line-height: 1.66;
}

.notes .actions {
  margin-top: auto;
  padding-top: 16px;
}

.table-wrap h2 {
  margin-bottom: 24px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-strong);
  box-shadow: var(--shadow-soft);
}

th,
td {
  padding: 18px 16px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

tbody tr:first-child th,
tbody tr:first-child td {
  border-top: 0;
}

th {
  width: 206px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.download {
  padding-bottom: 88px;
}

.download-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 34px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(34, 79, 118, 0.08), transparent 28%),
    var(--paper-strong);
  box-shadow: var(--shadow);
}

.download-box p {
  max-width: 38ch;
  margin-top: 12px;
}

.download-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.panel,
.card,
.cta {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-strong);
  box-shadow: var(--shadow-soft);
}

.panel,
.cta {
  margin-top: 24px;
  padding: 28px;
}

.card {
  display: block;
  padding: 22px;
  color: inherit;
  text-decoration: none;
}

.card p {
  margin-top: 10px;
  line-height: 1.64;
}

.card:hover {
  border-color: var(--line-dark);
  transform: translateY(-2px);
}

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

.grid {
  margin-top: 18px;
}

.archive {
  margin-top: 24px;
}

.archive ul,
.small-list {
  padding-left: 20px;
}

.archive li + li,
.small-list li + li {
  margin-top: 8px;
}

.archive a {
  color: var(--muted);
  text-decoration: none;
}

.archive a:hover,
.panel a:hover,
.card:hover h3 {
  color: var(--blue);
}

.lede {
  max-width: 42ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.66;
}

.meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  color: var(--soft);
  font-size: 14px;
}

.meta span {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-glass);
}

.section-stack {
  padding: 52px 0;
}

.section-stack > section + section {
  margin-top: 24px;
}

.article-wrap {
  padding-top: 46px;
  padding-bottom: 74px;
}

.article-wrap .hero {
  padding-top: 56px;
}

.article-wrap .cta .btn {
  margin-top: 18px;
}

.footer {
  padding: 36px 0 44px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 34%, transparent);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.footer p {
  margin-top: 6px;
  font-size: 14px;
}

.footer a {
  margin-right: 16px;
  color: var(--muted);
  text-decoration: none;
}

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

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .notes,
  .mail-app,
  .release {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 62px;
  }

  .release div:nth-child(2),
  .release div:nth-child(3),
  .product-shot,
  .message.selected {
    transform: none;
  }

  .mail-app {
    min-height: auto;
  }

  .mail-app aside {
    display: none;
  }

  .download-box,
  .nav-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .wrap {
    padding: 0 18px;
  }

  .nav-inner {
    min-height: 70px;
  }

  .links {
    gap: 12px;
  }

  .hero {
    padding: 52px 0 56px;
  }

  .lead,
  .lede,
  .split p {
    font-size: 18px;
  }

  .panel,
  .card,
  .cta,
  .notes article,
  .checklist,
  .download-box {
    border-radius: 22px;
  }

  th,
  td {
    display: block;
    width: 100%;
  }

  td {
    padding-top: 0;
  }
}
