/* Pagehour marketing site — quiet, typographic, matches the app's DESIGN.md tokens. */

@font-face {
  font-family: "Literata";
  src: url("/fonts/Literata-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/fonts/Literata-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/fonts/Literata-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f6f1e7;
  --surface: #fbf8f1;
  --ink: #221d17;
  --muted: #6e6558;
  --faint: #a39a8b;
  --hairline: #e0d7c6;
  --accent: #b0502a;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15120e;
    --surface: #1d1914;
    --ink: #ede5d6;
    --muted: #a2988a;
    --faint: #6d655a;
    --hairline: #322b23;
    --accent: #d8784c;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
}

.wordmark {
  font-family: "Literata", Georgia, serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

nav.site a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-left: 1.25rem;
}

nav.site a:hover,
nav.site a:focus-visible {
  color: var(--accent);
}

h1, h2, h3 {
  font-family: "Literata", Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.375rem;
  margin: 2.5rem 0 0.75rem;
  border-top: 1px solid var(--hairline);
  padding-top: 1.5rem;
}

h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 2rem;
}

p {
  margin: 0 0 1rem;
  color: var(--ink);
}

.lede {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 34ch;
}

.note {
  color: var(--muted);
  font-size: 0.9rem;
}

a {
  color: var(--accent);
}

.hairline {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 2rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.92rem;
}

th, td {
  text-align: left;
  padding: 0.6rem 0.6rem 0.6rem 0;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table-scroll {
  overflow-x: auto;
}

dl.faq dt {
  font-family: "Literata", Georgia, serif;
  font-weight: 600;
  margin-top: 1.5rem;
  color: var(--ink);
}

dl.faq dd {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

ul {
  padding-left: 1.1rem;
}

li {
  margin-bottom: 0.4rem;
}

.home {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.home .mark {
  font-family: "Literata", Georgia, serif;
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.home h1 {
  margin-bottom: 1rem;
}

.soon {
  display: inline-block;
  margin: 1.75rem 0 2.25rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
}

.home footer {
  display: flex;
  gap: 1.5rem;
  border-top: 1px solid var(--hairline);
  padding-top: 1.25rem;
  width: 100%;
}

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

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

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

.contact {
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  margin: 1.5rem 0;
}

.not-found {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.not-found .mark {
  font-family: "Literata", Georgia, serif;
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
