:root {
  color-scheme: light;
  --ink: #17201c;
  --muted: #5d665f;
  --soft: #f6f2ea;
  --paper: #fffdf8;
  --line: #ddd5c7;
  --teal: #2f8b7b;
  --teal-soft: #d9f0ea;
  --coral: #c85f45;
  --gold: #dba83e;
  --plum: #5a4567;
  --shadow: 0 18px 55px rgba(23, 32, 28, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  line-height: 1.5;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid rgba(221, 213, 199, 0.72);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.48rem 0.72rem;
  border-radius: var(--radius);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: var(--soft);
  outline: none;
}

.hero {
  min-height: 620px;
  display: grid;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(23, 32, 28, 0.95), rgba(23, 32, 28, 0.72), rgba(23, 32, 28, 0.1)),
    url("tiny-rhythm-icon.png");
  background-color: var(--ink);
  background-position: center right 8%;
  background-repeat: no-repeat;
  background-size: min(46vw, 520px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 118px;
  background: linear-gradient(0deg, var(--paper), rgba(255, 253, 248, 0));
  z-index: -1;
}

.hero-inner,
.section-inner,
.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-copy {
  max-width: 620px;
  color: var(--paper);
  padding: 100px 0 130px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  font-size: 3.4rem;
  max-width: 10ch;
}

h2 {
  font-size: 2.2rem;
}

h3 {
  font-size: 1.16rem;
}

p {
  margin: 0;
}

.lead {
  margin-top: 20px;
  max-width: 58ch;
  font-size: 1.18rem;
  color: rgba(255, 253, 248, 0.86);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.78rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--gold);
  color: #1f1a10;
}

.button.secondary {
  background: rgba(255, 253, 248, 0.12);
  color: var(--paper);
  border-color: rgba(255, 253, 248, 0.32);
}

.button.dark {
  background: var(--ink);
  color: var(--paper);
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: var(--soft);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-header p {
  max-width: 52ch;
  color: var(--muted);
}

.app-grid,
.link-grid,
.policy-grid,
.support-grid {
  display: grid;
  gap: 16px;
}

.app-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
}

.app-card,
.mini-card,
.policy-card,
.support-card,
.notice,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(23, 32, 28, 0.04);
}

.app-card {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 18px;
  padding: 22px;
  align-items: center;
}

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.app-card p,
.mini-card p,
.policy-card p,
.support-card p,
.notice p,
.contact-panel p,
.legal-copy p,
.legal-copy li {
  color: var(--muted);
}

.app-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.3rem 0.56rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: #1f6257;
  font-size: 0.86rem;
  font-weight: 800;
}

.mini-card,
.policy-card,
.support-card,
.contact-panel {
  padding: 20px;
}

.mini-card {
  min-height: 172px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mini-card strong {
  color: var(--coral);
}

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

.link-tile {
  display: block;
  min-height: 156px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-decoration: none;
}

.link-tile:hover,
.link-tile:focus-visible {
  border-color: var(--teal);
  outline: none;
  box-shadow: 0 14px 32px rgba(47, 139, 123, 0.13);
}

.link-tile span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

.page-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 86px 0 66px;
}

.page-hero h1 {
  max-width: 14ch;
}

.page-hero p {
  margin-top: 18px;
  max-width: 62ch;
  color: rgba(255, 253, 248, 0.82);
  font-size: 1.08rem;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 28px;
  align-items: start;
}

.aside-panel {
  position: sticky;
  top: 96px;
  border-left: 4px solid var(--teal);
  padding-left: 18px;
}

.aside-panel p {
  color: var(--muted);
  margin-top: 10px;
}

.legal-copy {
  display: grid;
  gap: 28px;
}

.legal-copy section {
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.legal-copy h2 {
  font-size: 1.48rem;
  margin-bottom: 10px;
}

.legal-copy ul {
  margin: 12px 0 0;
  padding-left: 1.2rem;
}

.legal-copy li + li {
  margin-top: 8px;
}

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

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

.notice {
  margin-top: 28px;
  padding: 18px;
  border-color: rgba(200, 95, 69, 0.4);
  background: #fff6ef;
}

.contact-panel {
  display: grid;
  gap: 14px;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 38px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 253, 248, 0.78);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--paper);
}

@media (max-width: 860px) {
  .nav-shell,
  .footer-inner,
  .section-header,
  .page-layout {
    display: block;
  }

  .nav-links {
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .hero {
    min-height: 660px;
    background:
      linear-gradient(180deg, rgba(23, 32, 28, 0.96), rgba(23, 32, 28, 0.76), rgba(23, 32, 28, 0.36)),
      url("tiny-rhythm-icon.png");
    background-position: center bottom 36px;
    background-size: min(72vw, 360px);
  }

  .hero-copy {
    padding: 72px 0 260px;
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.78rem;
  }

  .lead {
    font-size: 1.04rem;
  }

  .app-grid,
  .link-grid,
  .policy-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .section-header p {
    margin-top: 12px;
  }

  .aside-panel {
    position: static;
    margin-bottom: 34px;
  }

  .footer-links {
    margin-top: 18px;
  }
}

@media (max-width: 560px) {
  .hero-inner,
  .section-inner,
  .footer-inner,
  .nav-shell {
    width: min(100% - 24px, 1120px);
  }

  .app-card {
    grid-template-columns: 1fr;
  }

  .app-icon {
    width: 82px;
    height: 82px;
    border-radius: 18px;
  }

  .button {
    width: 100%;
  }

  .contact-row {
    display: block;
  }
}
