/* platypen — a quiet maker label.
   Brand: editorial paper, black ink, restrained neutrals.
   Type: Source Serif 4 wordmark and display, neutral sans for interface. */

@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #080b14;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --soft: #f1f0ea;
  --muted: #5f6472;
  --quiet: #8a8e99;
  --line: #dfddd6;
  --focus: #5b64f4;
  --font-serif: "Source Serif 4", "New York", "Iowan Old Style", Georgia,
    serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
}

a {
  color: inherit;
  text-decoration-color: rgba(8, 11, 20, 0.3);
  text-underline-offset: 0.22em;
}

.page {
  min-height: 100vh;
}

.site-header,
.site-footer,
.content,
.hero-inner {
  width: min(100%, 68rem);
  margin: 0 auto;
  padding-inline: 2rem;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 1.35rem;
  font-size: 0.95rem;
}

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

.brand-mark {
  display: block;
  height: 2.1rem;
  width: auto;
}

.brand-word {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0;
  color: var(--ink);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.35rem;
  color: var(--muted);
}

.nav a {
  text-decoration: none;
}

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

/* Type */

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

h1 {
  margin-bottom: 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h2 {
  margin-bottom: 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  font-weight: 600;
  line-height: 1.12;
}

h3 {
  margin-bottom: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
}

p,
li {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.lead {
  max-width: 42rem;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  font-weight: 400;
  line-height: 1.45;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--quiet);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* Hero */

.hero {
  padding-block: 3.5rem 1rem;
}

/* Published app */

.app-card {
  display: grid;
  grid-template-columns: minmax(11rem, 0.65fr) minmax(0, 1fr);
  margin-block: 2.5rem 3rem;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  scroll-margin-block: 1.5rem;
}

.app-art {
  display: grid;
  min-height: 16rem;
  place-items: center;
  padding: 2rem;
  background: radial-gradient(ellipse at 42% 35%, #fae7e5, #eed3d3);
}

.app-art img {
  display: block;
  width: 9rem;
  height: auto;
  border-radius: 24%;
  box-shadow: 0 10px 28px -10px #8b3f4a80;
}

.app-copy {
  align-self: center;
  padding: clamp(1.4rem, 4vw, 3rem);
}

.app-copy h2 {
  margin-bottom: 0.55rem;
}

.app-copy p {
  max-width: 34rem;
  margin-bottom: 1.2rem;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.app-store-badge {
  display: inline-flex;
}

.app-store-badge img {
  display: block;
}

.app-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.app-cta:hover {
  background: var(--ink);
  color: var(--paper);
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

/* Sections */

.content {
  padding-block: 1.5rem 4rem;
}

.section {
  padding-block: 3.25rem;
  border-top: 1px solid var(--line);
}

.section:first-child {
  border-top: 0;
}

/* Docs (privacy, terms, contact, acknowledgements) */

.doc {
  max-width: 44rem;
  padding-block: 3.25rem 4rem;
}

.doc h1 {
  font-size: clamp(2rem, 3.8vw, 3rem);
}

.doc h2 {
  margin-top: 2.5rem;
}

.doc h3 {
  margin-top: 1.8rem;
}

.doc ul,
.doc ol {
  padding-left: 1.35rem;
}

.doc li {
  margin-bottom: 0.45rem;
}

.note {
  padding: 1rem 1.1rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

/* Footer */

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-block: 2.25rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.93rem;
}

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

.legal {
  color: var(--quiet);
}

@media (max-width: 720px) {
  .site-header,
  .site-footer,
  .content,
  .hero-inner {
    padding-inline: 1.15rem;
  }

  .app-card {
    grid-template-columns: 1fr;
    margin-block: 0.85rem 2rem;
  }

  .app-art {
    min-height: 0;
    padding: 1.1rem;
  }

  .app-art img {
    width: 5rem;
  }

  .hero {
    padding-block: 1.5rem 0;
  }

  .hero h1 {
    margin-bottom: 0;
  }

  .hero + .content {
    padding-top: 0.65rem;
  }
}

@media (max-width: 360px) {
  .site-header {
    gap: 0.75rem;
    padding-block: 0.85rem;
  }

  .brand-word {
    font-size: 1.15rem;
  }

  .brand-mark {
    height: 1.75rem;
  }

  .nav {
    gap: 0.7rem;
    font-size: 0.86rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .app-copy {
    padding: 1rem 1.2rem;
  }

  .app-card {
    position: relative;
  }

  .app-art {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    padding: 0;
    background: none;
  }

  .app-art img {
    width: 3rem;
  }

  .app-copy h2 {
    padding-right: 3.65rem;
  }
}
