:root {
  --paper: #f4f1ea;
  --surface: #fffdf8;
  --ink: #17201c;
  --muted: #65706a;
  --line: rgba(23, 32, 28, 0.14);
  --teal: #177d75;
  --teal-soft: #e1f0ec;
  --coral: #d85b4d;
  --amber: #d79b35;
  --blue: #426f8f;
  --page-glow: linear-gradient(180deg, rgba(255, 253, 248, 0.74), transparent 18rem);
  --focus-ring: rgba(23, 125, 117, 0.32);
  --avatar-border: rgba(23, 32, 28, 0.12);
  --avatar-shadow: 0 20px 58px rgba(23, 32, 28, 0.11);
  --card-bg: rgba(255, 253, 248, 0.64);
  --icon-border: rgba(23, 32, 28, 0.08);
  --icon-shadow: 0 8px 22px rgba(23, 32, 28, 0.08);
  --theme-button-bg: rgba(255, 253, 248, 0.82);
  --ambient-line: rgba(23, 32, 28, 0.035);
  --ambient-accent: rgba(23, 125, 117, 0.04);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111714;
    --surface: #18211d;
    --ink: #edf3ee;
    --muted: #a6b2ab;
    --line: rgba(237, 243, 238, 0.15);
    --teal: #5bc6bd;
    --teal-soft: #173630;
    --coral: #ff8a78;
    --amber: #dfb260;
    --blue: #8db6d5;
    --page-glow: linear-gradient(180deg, rgba(29, 37, 33, 0.72), transparent 18rem);
    --focus-ring: rgba(91, 198, 189, 0.34);
    --avatar-border: rgba(237, 243, 238, 0.14);
    --avatar-shadow: 0 22px 62px rgba(0, 0, 0, 0.28);
    --card-bg: rgba(24, 33, 29, 0.58);
    --icon-border: rgba(237, 243, 238, 0.12);
    --icon-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
    --theme-button-bg: rgba(237, 243, 238, 0.08);
    --ambient-line: rgba(237, 243, 238, 0.045);
    --ambient-accent: rgba(91, 198, 189, 0.055);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #111714;
  --surface: #18211d;
  --ink: #edf3ee;
  --muted: #a6b2ab;
  --line: rgba(237, 243, 238, 0.15);
  --teal: #5bc6bd;
  --teal-soft: #173630;
  --coral: #ff8a78;
  --amber: #dfb260;
  --blue: #8db6d5;
  --page-glow: linear-gradient(180deg, rgba(29, 37, 33, 0.72), transparent 18rem);
  --focus-ring: rgba(91, 198, 189, 0.34);
  --avatar-border: rgba(237, 243, 238, 0.14);
  --avatar-shadow: 0 22px 62px rgba(0, 0, 0, 0.28);
  --card-bg: rgba(24, 33, 29, 0.58);
  --icon-border: rgba(237, 243, 238, 0.12);
  --icon-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  --theme-button-bg: rgba(237, 243, 238, 0.08);
  --ambient-line: rgba(237, 243, 238, 0.045);
  --ambient-accent: rgba(91, 198, 189, 0.055);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100svh;
  min-width: 320px;
  color: var(--ink);
  background: var(--page-glow), var(--paper);
  font-family:
    "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", ui-monospace, monospace;
  line-height: 1.55;
  overflow-x: hidden;
  text-rendering: geometricPrecision;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(
      115deg,
      transparent 0 18%,
      var(--ambient-accent) 18.2% 18.42%,
      transparent 18.68% 61%,
      var(--ambient-accent) 61.2% 61.42%,
      transparent 61.68%
    ),
    repeating-linear-gradient(90deg, transparent 0 94px, var(--ambient-line) 95px, transparent 96px),
    repeating-linear-gradient(0deg, transparent 0 94px, var(--ambient-line) 95px, transparent 96px);
  background-position:
    0% 0%,
    0 0,
    0 0;
  background-size:
    240% 240%,
    96px 96px,
    96px 96px;
  animation: ambient-field 54s linear infinite;
  -webkit-mask-image: linear-gradient(180deg, #000 0, rgba(0, 0, 0, 0.82) 36rem, transparent 82rem);
  mask-image: linear-gradient(180deg, #000 0, rgba(0, 0, 0, 0.82) 36rem, transparent 82rem);
}

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

a:hover,
a:focus-visible {
  color: var(--teal);
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

.page {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 40px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 36px 0 40px;
}

@keyframes ambient-field {
  from {
    background-position:
      0% 0%,
      0 0,
      0 0;
  }

  to {
    background-position:
      120% 60%,
      96px 48px,
      -48px 96px;
  }
}

.site-header,
.nav-links,
.intro,
.app-item,
.app-main {
  display: flex;
}

.site-header {
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  margin-bottom: 64px;
}

.nav-links {
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--line);
  background: var(--theme-button-bg);
  color: var(--teal);
}

.theme-icon {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.theme-icon-sun {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon-moon {
    display: none;
  }

  :root:not([data-theme="light"]) .theme-icon-sun {
    display: block;
  }
}

:root[data-theme="dark"] .theme-icon-moon {
  display: none;
}

:root[data-theme="dark"] .theme-icon-sun {
  display: block;
}

.intro {
  align-items: center;
  gap: 52px;
  padding-bottom: 66px;
  border-bottom: 1px solid var(--line);
}

.avatar {
  flex: 0 0 220px;
  margin: 0;
}

.avatar img {
  display: block;
  width: 220px;
  height: 220px;
  border: 1px solid var(--avatar-border);
  border-radius: 50%;
  background: var(--surface);
  object-fit: cover;
  object-position: 50% 26%;
  box-shadow: var(--avatar-shadow);
}

.intro-copy {
  max-width: 720px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.kicker {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 14px;
  font-size: 2.65rem;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: 0;
}

.intro-copy > p {
  max-width: 34rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.apps,
.about {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.about {
  border-bottom: 0;
}

.section-heading {
  margin-bottom: 18px;
}

h2 {
  max-width: none;
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 34rem;
  margin-bottom: 0;
  color: var(--muted);
}

.app-list {
  display: grid;
  gap: 12px;
}

.app-item {
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
  padding: 18px;
}

.app-main {
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 16px;
}

.app-main > div {
  min-width: 0;
}

.app-icon {
  display: block;
  flex: 0 0 48px;
  width: 48px;
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px solid var(--icon-border);
  background: var(--surface);
  box-shadow: var(--icon-shadow);
  object-fit: cover;
}

h3 {
  margin-bottom: 3px;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0;
}

.app-title-link:hover,
.app-title-link:focus-visible {
  color: var(--teal);
}

.app-item p,
.about-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.app-verification {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.app-release-meta {
  margin-top: 6px;
  font-size: 0.72rem;
  line-height: 1.35;
}

.app-secondary-links {
  display: flex;
  gap: 14px;
  margin-top: 7px;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 500;
}

.app-secondary-links a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.app-verification code {
  color: inherit;
  font-family: inherit;
  font-size: 0.95em;
}

.app-verification a {
  color: inherit;
}

.app-verification a[href] {
  color: var(--teal);
  font-weight: 600;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.app-verification a[href]:hover,
.app-verification a[href]:focus-visible {
  color: var(--coral);
}

.app-action {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 600;
  white-space: nowrap;
}

.app-action-disabled {
  color: var(--muted);
  cursor: default;
  pointer-events: none;
}

.app-action::after {
  content: " ->";
  color: var(--coral);
}

.app-action-disabled::after {
  content: "";
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
}

.about-grid p {
  font-size: 1.04rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-page .site-header {
  margin-bottom: 24px;
}

.product-site-header {
  justify-content: flex-start;
}

.product-wordmark {
  margin-right: auto;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 600;
}

.nav-links a[aria-current="page"],
.product-wordmark[aria-current="page"] {
  color: var(--ink);
}

.product-pantria {
  --teal: #39775a;
  --teal-soft: #e4efe7;
  --focus-ring: rgba(57, 119, 90, 0.3);
  --ambient-accent: rgba(57, 119, 90, 0.045);
}

.product-chronlet {
  --teal: #476f91;
  --teal-soft: #e5edf3;
  --focus-ring: rgba(71, 111, 145, 0.3);
  --ambient-accent: rgba(71, 111, 145, 0.045);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.product-pantria {
    --teal: #79c59d;
    --teal-soft: #1a3327;
    --focus-ring: rgba(121, 197, 157, 0.34);
    --ambient-accent: rgba(121, 197, 157, 0.06);
  }

  :root:not([data-theme="light"]) body.product-chronlet {
    --teal: #8cb8d8;
    --teal-soft: #1b2d39;
    --focus-ring: rgba(140, 184, 216, 0.34);
    --ambient-accent: rgba(140, 184, 216, 0.06);
  }
}

:root[data-theme="dark"] body.product-pantria {
  --teal: #79c59d;
  --teal-soft: #1a3327;
  --focus-ring: rgba(121, 197, 157, 0.34);
  --ambient-accent: rgba(121, 197, 157, 0.06);
}

:root[data-theme="dark"] body.product-chronlet {
  --teal: #8cb8d8;
  --teal-soft: #1b2d39;
  --focus-ring: rgba(140, 184, 216, 0.34);
  --ambient-accent: rgba(140, 184, 216, 0.06);
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.56fr);
  align-items: center;
  gap: 54px;
  padding: 34px 0 64px;
  border-bottom: 1px solid var(--line);
}

.product-identity {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.product-icon {
  display: block;
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  border: 1px solid var(--icon-border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--icon-shadow);
  object-fit: cover;
}

.product-copy .kicker {
  margin-bottom: 7px;
}

.product-copy h1 {
  margin-bottom: 8px;
  font-size: 2.2rem;
}

.product-copy > p:last-child {
  max-width: 38rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.product-release {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.product-release .app-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 8px 13px;
}

.product-release .app-action:hover,
.product-release .app-action:focus-visible {
  border-color: var(--teal);
}

.product-release .app-action-disabled {
  border-color: var(--line);
}

.product-store-action::after {
  color: var(--teal);
}

.product-release-meta,
.product-trust {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.product-trust a[href] {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.product-section {
  padding: 54px 0;
  border-bottom: 1px solid var(--line);
}

.product-section h2 {
  margin-bottom: 22px;
}

.product-lead {
  max-width: 48rem;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.02rem;
}

.fact-grid,
.detail-grid {
  display: grid;
  gap: 28px;
}

.fact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fact,
.detail-block {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.fact h3,
.detail-block h3 {
  margin-bottom: 7px;
  font-size: 0.96rem;
}

.fact p,
.detail-block p {
  margin-bottom: 0;
  color: var(--muted);
}

.detail-block p + p {
  margin-top: 12px;
}

.product-footer {
  margin-top: 54px;
}

.document-page {
  width: min(820px, calc(100% - 40px));
}

.document {
  padding-top: 30px;
}

.document-header {
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}

.document-icon {
  display: block;
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  border: 1px solid var(--icon-border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--icon-shadow);
  object-fit: cover;
}

.document-header h1 {
  margin-bottom: 10px;
  font-size: 2.2rem;
}

.document-header > p:last-child {
  max-width: 44rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.document-date {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.82rem;
}

.document-section {
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}

.document-section h2 {
  margin-bottom: 14px;
}

.document-section p,
.document-section li {
  color: var(--muted);
}

.document-section p {
  margin-bottom: 0;
}

.document-section p + p {
  margin-top: 14px;
}

.document-section ul,
.document-section ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.35rem;
}

.text-link,
.support-contact {
  color: var(--teal);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.support-contact {
  display: inline-block;
  overflow-wrap: anywhere;
}

.not-found-page {
  display: grid;
  place-items: center;
}

.not-found {
  max-width: 34rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
}

.not-found-code {
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.not-found h1 {
  margin-bottom: 14px;
}

.not-found p:not(.not-found-code) {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 1.06rem;
}

@media (max-width: 820px) {
  .page {
    width: min(100% - 32px, 1080px);
    padding-top: 24px;
  }

  .site-header {
    margin-bottom: 46px;
  }

  .intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 34px;
    padding-bottom: 52px;
  }

  .avatar {
    flex-basis: auto;
    width: 148px;
  }

  .avatar img {
    width: 148px;
    height: 148px;
  }

  h1 {
    font-size: 2.32rem;
  }

  .intro-copy > p {
    font-size: 1.06rem;
  }

  .section-heading,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .apps,
  .about {
    padding: 56px 0;
  }

  .app-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 18px 0 52px;
  }

  .fact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .product-site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
  }

  .product-wordmark {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .product-site-header .theme-toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .product-site-header .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }
}

@media (max-width: 440px) {
  .nav-links {
    gap: 14px;
    font-size: 0.88rem;
  }

  h1 {
    font-size: 2.08rem;
  }

  h2 {
    font-size: 1rem;
  }

  .app-main {
    align-items: flex-start;
  }

  .product-identity {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-copy h1 {
    font-size: 2rem;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .document-page {
    width: min(100% - 32px, 820px);
  }

  .document-header h1 {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  .theme-toggle,
  .theme-icon {
    transition: none;
  }

  body::before {
    animation: none;
  }
}
