@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

:root {
  --ink: #1a1a1a;
  --paper: #faf8f5;
  --warm: #f0ece6;
  --muted: #8a8279;
  --accent: #c2582a;
  --rule: #d6d0c8;
  --max-width: 680px;
  --page-pad: clamp(1.25rem, 5vw, 3rem);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Source Sans 3', Georgia, serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

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

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

/* ─── Layout ─── */

.page-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

/* ─── Site Header ─── */

.site-header {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--rule);
}

.site-header .page-wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.site-name:hover {
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

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

/* ─── Site Footer ─── */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 0;
  margin-top: 5rem;
}

.site-footer .page-wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer p {
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: none;
}

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

/* ─── Home: Hero ─── */

.hero {
  padding: 6rem 0 4rem;
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 520px;
}

.hero p {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 460px;
  line-height: 1.65;
}

/* ─── Home: App List ─── */

.app-list {
  padding: 0 0 3rem;
}

.app-list h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.app-entry {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  transition: opacity 0.2s;
}

.app-entry:hover {
  opacity: 0.7;
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  flex-shrink: 0;
  object-fit: cover;
}

.app-entry-text h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.app-entry-text .app-tagline {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.app-entry-text .app-platform {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 0.5rem;
  opacity: 0.7;
}

/* ─── App Page: Header ─── */

.app-header {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--rule);
}

.app-header-inner {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.app-header .app-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
}

.app-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.app-header .app-subtitle {
  font-size: 1.0625rem;
  color: var(--muted);
  margin-top: 0.35rem;
  font-weight: 300;
}

.app-meta {
  display: flex;
  gap: 2rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}

.app-meta dt {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.app-meta dd {
  font-size: 0.9375rem;
  font-weight: 500;
  margin-top: 0.15rem;
}

/* ─── App Page: Sections ─── */

.app-section {
  padding: 3rem 0 0;
}

.app-section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.app-section p {
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  line-height: 1.75;
}

.app-section p:last-child {
  margin-bottom: 0;
}

/* ─── Legal Content ─── */

.legal-nav {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem 0 0;
}

.legal-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.legal-nav a:hover,
.legal-nav a.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.legal {
  padding: 2.5rem 0 3rem;
}

.legal h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.legal .effective-date {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.legal h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}

.legal p {
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.legal ul,
.legal ol {
  margin: 0.75rem 0 1rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.75;
}

.legal li {
  margin-bottom: 0.35rem;
}

.legal strong {
  font-weight: 600;
}

/* ─── Responsive ─── */

@media (max-width: 520px) {
  .site-header .page-wrap {
    flex-direction: column;
    gap: 0.75rem;
  }

  .app-header-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .app-meta {
    gap: 1.25rem;
  }

  .hero {
    padding: 4rem 0 3rem;
  }
}
