:root {
  color-scheme: light;
  --ink: #101c30;
  --ink-soft: #3d485a;
  --navy: #12233e;
  --navy-light: #203a60;
  --cream: #f7f1e5;
  --paper: #fffdf7;
  --paper-deep: #efe5d1;
  --gold: #af7c35;
  --gold-soft: #ddc18c;
  --line: rgba(18, 35, 62, 0.14);
  --shadow: 0 24px 70px rgba(33, 42, 58, 0.1);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Avenir, "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--cream);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(221, 193, 140, 0.25), transparent 28rem),
    linear-gradient(180deg, #fbf7ee 0%, var(--cream) 64%, #f2eadb 100%);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--gold);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #b67720;
  outline-offset: 4px;
  border-radius: 0.25rem;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  transform: translateY(-160%);
  border-radius: 0.45rem;
  color: #fff;
  background: var(--navy);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 247, 238, 0.84);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(72rem, calc(100% - 2rem));
  min-height: 4.75rem;
  margin: 0 auto;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 2rem;
  height: 2rem;
  flex: none;
  border: 1px solid rgba(18, 35, 62, 0.5);
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 0.63rem;
  border-radius: 1px;
  background: var(--navy);
  transform-origin: 50% 100%;
}

.brand-mark::before {
  transform: translate(-50%, -100%) rotate(42deg);
}

.brand-mark::after {
  transform: translate(-50%, -100%) rotate(158deg);
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.studio-mark {
  position: relative;
  width: 2rem;
  height: 2rem;
  flex: none;
  border: 1px solid rgba(18, 35, 62, 0.45);
  border-radius: 0.55rem;
  background: var(--paper);
  box-shadow: inset 0 0 0 0.28rem rgba(175, 124, 53, 0.08);
}

.studio-mark::before,
.studio-mark::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0.86rem;
  height: 1px;
  background: var(--navy);
  transform-origin: center;
}

.studio-mark::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.studio-mark::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.directory-kicker,
.all-apps-link {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.header-nav,
.language-switcher {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.header-nav a,
.language-switcher a {
  padding: 0.42rem 0.62rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.015em;
  text-decoration: none;
}

.header-nav a[aria-current="page"],
.language-switcher a[aria-current="true"] {
  color: var(--paper);
  background: var(--navy);
}

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

.document-hero::after {
  content: "";
  position: absolute;
  right: -7rem;
  top: -9rem;
  width: 22rem;
  height: 22rem;
  border: 1px solid rgba(175, 124, 53, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(175, 124, 53, 0.035), 0 0 0 7rem rgba(175, 124, 53, 0.025);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(52rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3.6rem, 8vw, 6.8rem) 0 clamp(3rem, 6vw, 5rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: #7b5727;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

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

h1 {
  max-width: 13ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.7rem, 8vw, 5.9rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.document-hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.75rem);
}

.lede {
  max-width: 46rem;
  margin-bottom: 1.65rem;
  color: var(--ink-soft);
  font-size: clamp(1.03rem, 2.5vw, 1.22rem);
}

.meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.meta-row span + span::before {
  content: "";
  display: inline-block;
  width: 0.28rem;
  height: 0.28rem;
  margin-right: 1rem;
  border-radius: 50%;
  vertical-align: 0.12em;
  background: var(--gold);
}

.document-layout {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  width: min(64rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.75rem) 0 6rem;
}

.document-aside {
  align-self: start;
  position: sticky;
  top: 2rem;
}

.document-aside h2 {
  margin-bottom: 0.4rem;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.document-aside p {
  margin-bottom: 1.5rem;
  font-size: 0.86rem;
}

.contact-link {
  overflow-wrap: anywhere;
}

.document-copy {
  min-width: 0;
}

.legal-section {
  padding: 0.3rem 0 2.2rem;
  border-bottom: 1px solid var(--line);
}

.legal-section + .legal-section {
  padding-top: 2.4rem;
}

.legal-section:last-child {
  border-bottom: 0;
}

.legal-section h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.legal-section p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.standard-eula {
  display: inline-block;
  margin-top: 1rem;
  color: var(--navy-light);
  font-weight: 700;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.support-grid .legal-section {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 253, 247, 0.72);
  box-shadow: 0 12px 40px rgba(33, 42, 58, 0.05);
}

.support-grid .legal-section + .legal-section {
  padding-top: 1.5rem;
}

.support-cta {
  grid-column: 1 / -1;
  padding: clamp(1.6rem, 4vw, 2.4rem);
  border-radius: 1rem;
  color: var(--paper);
  background: var(--navy);
}

.support-cta h2 {
  margin-bottom: 0.6rem;
  font-size: 1.8rem;
}

.support-cta p {
  color: rgba(255, 253, 247, 0.78);
}

.support-cta a {
  color: #f1d49c;
  font-weight: 750;
}

.directory-hero {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(3.5rem, 8vw, 6rem);
  border-bottom: 1px solid var(--line);
}

.directory-hero h1 {
  max-width: 10ch;
}

.directory-hero .lede {
  max-width: 37rem;
  margin-bottom: 0;
}

.app-catalog {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(5rem, 10vw, 8rem);
}

.app-card {
  display: grid;
  grid-template-columns: clamp(7rem, 18vw, 11rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.4rem, 5vw, 3.5rem);
  max-width: 49rem;
  padding: clamp(1.15rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.78);
  box-shadow: 0 18px 60px rgba(33, 42, 58, 0.07);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.app-card:hover {
  border-color: rgba(175, 124, 53, 0.55);
  color: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.app-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(18, 35, 62, 0.18);
  border-radius: 26%;
  background:
    repeating-conic-gradient(from -1deg, rgba(18, 35, 62, 0.42) 0deg 0.7deg, transparent 0.7deg 30deg),
    radial-gradient(circle, transparent 59%, rgba(175, 124, 53, 0.14) 59.5%, transparent 61%),
    var(--cream);
  box-shadow: inset 0 0 0 0.55rem rgba(18, 35, 62, 0.025);
}

.app-icon::before,
.app-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 2px;
  border-radius: 1rem;
  background: var(--navy);
  transform-origin: 50% 100%;
}

.app-icon::before {
  height: 23%;
  transform: translateX(-50%) rotate(42deg);
}

.app-icon::after {
  height: 31%;
  transform: translateX(-50%) rotate(158deg);
}

.app-icon-center {
  z-index: 1;
  width: 0.62rem;
  height: 0.62rem;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--gold);
}

.app-card-copy {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  color: var(--ink-soft);
}

.app-card-copy strong {
  margin: 0.2rem 0 0.55rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 5vw, 2.75rem);
  line-height: 1.1;
}

.app-card-meta {
  color: #7b5727;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.app-card-action {
  margin-top: 1rem;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 800;
}

.hub-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 0.78fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
  width: min(72rem, calc(100% - 2rem));
  min-height: calc(100vh - 4.75rem);
  margin: 0 auto;
  padding: 4rem 0 5rem;
}

.hub-copy .lede {
  max-width: 38rem;
}

.hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--navy);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.button-primary {
  color: var(--paper);
  background: var(--navy);
}

.button-primary:hover {
  color: white;
  background: var(--navy-light);
}

.timepiece {
  position: relative;
  display: grid;
  place-items: center;
  width: min(25rem, 78vw);
  aspect-ratio: 1;
  margin: 0 auto;
  border: 1px solid rgba(18, 35, 62, 0.25);
  border-radius: 50%;
  background:
    repeating-conic-gradient(from -1deg, rgba(18, 35, 62, 0.45) 0deg 0.6deg, transparent 0.6deg 30deg),
    radial-gradient(circle, transparent 65%, rgba(175, 124, 53, 0.1) 65.2%, transparent 66%),
    var(--paper);
  box-shadow: var(--shadow), inset 0 0 0 0.8rem rgba(18, 35, 62, 0.025);
}

.timepiece::before,
.timepiece::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 2px;
  border-radius: 1rem;
  background: var(--navy);
  transform-origin: 50% 100%;
}

.timepiece::before {
  height: 25%;
  transform: translateX(-50%) rotate(42deg);
}

.timepiece::after {
  height: 34%;
  transform: translateX(-50%) rotate(158deg);
}

.timepiece-center {
  z-index: 1;
  width: 0.72rem;
  height: 0.72rem;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 1px var(--navy);
}

.orbit-label {
  position: absolute;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--paper);
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.orbit-label:nth-of-type(2) { top: 12%; left: 13%; }
.orbit-label:nth-of-type(3) { bottom: 14%; right: 18%; }

.language-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: min(72rem, calc(100% - 2rem));
  margin: -1.5rem auto 5rem;
}

.language-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 253, 247, 0.72);
}

.language-card h2 {
  margin-bottom: 0.45rem;
  font-size: 1.35rem;
}

.language-card p {
  min-height: 3.5rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.language-card a {
  font-size: 0.87rem;
  font-weight: 750;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.6rem 0;
  gap: 0.8rem 1.5rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 760px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.9rem 0;
    gap: 0.65rem;
  }

  .header-nav a,
  .language-switcher a {
    padding: 0.34rem 0.5rem;
  }

  .document-layout {
    grid-template-columns: 1fr;
    gap: 2.3rem;
  }

  .document-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
  }

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

  .hub-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hub-visual {
    order: -1;
  }

  .timepiece {
    width: min(18rem, 72vw);
  }

  .language-cards,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .support-cta {
    grid-column: auto;
  }
}

@media (max-width: 420px) {
  body {
    font-size: 0.96rem;
  }

  .document-aside {
    grid-template-columns: 1fr;
  }

  .meta-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .meta-row span + span::before {
    display: none;
  }

  .directory-kicker {
    display: none;
  }

  .app-card {
    grid-template-columns: 5.5rem minmax(0, 1fr);
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .app-card {
    transition: none;
  }
}

@media print {
  body {
    background: white;
    font-size: 10.5pt;
  }

  .site-header,
  .site-footer,
  .skip-link {
    display: none;
  }

  .document-hero::after {
    display: none;
  }

  .document-layout {
    display: block;
    width: 100%;
    padding-top: 2rem;
  }

  .document-aside {
    position: static;
    margin-bottom: 2rem;
  }

  .legal-section {
    break-inside: avoid;
  }
}
