/* TwoDid website — paper-cream warm aesthetic, matched to the iOS app theme. */

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

html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
figure,
blockquote {
  margin: 0;
  padding: 0;
}

ul,
ol {
  padding-left: 1.4em;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #F6EFE0;            /* twoBackground — paper cream */
  color: #231712;                       /* twoTextPrimary — warm ink */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  min-height: 100vh;
  padding: 3rem 1.25rem 4rem;
}

.container {
  max-width: 720px;
  margin: 0 auto;
}

/* Headings — serif display face, matching the app's display weights. */
h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", "Lora", "Merriweather", Georgia, serif;
  color: #231712;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

h1 {
  font-weight: 800;
  font-size: 2.6rem;
  margin-bottom: 0.5em;
}

h2 {
  font-weight: 700;
  font-size: 1.55rem;
  margin-top: 2.4em;
  margin-bottom: 0.6em;
}

h3 {
  font-weight: 600;
  font-size: 1.2rem;
  margin-top: 1.8em;
  margin-bottom: 0.4em;
}

p {
  margin-bottom: 1em;
  color: #231712;
}

/* Secondary / meta text — muted warm brown. */
.muted,
.meta,
time {
  color: #6E5444;                       /* twoTextSecondary */
  font-size: 0.95rem;
}

/* Links — moss-green deep, underlined on hover. */
a {
  color: #3C4419;                       /* twoCombinedDeep */
  text-decoration: none;
  border-bottom: 1px solid rgba(60, 68, 25, 0.25);
  transition: border-color 120ms ease;
}

a:hover,
a:focus {
  border-bottom-color: #3C4419;
}

/* Subtle separators between sections. */
hr {
  border: 0;
  border-top: 1px solid #E7DBC2;        /* twoSeparator */
  margin: 2.4em 0;
}

/* Wordmark / site header */
.wordmark {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: #231712;
  letter-spacing: -0.01em;
  display: inline-block;
}

.wordmark a {
  color: inherit;
  border-bottom: none;
}

.site-header {
  margin-bottom: 3rem;
}

/* Landing hero */
.hero {
  margin-top: 6rem;
  text-align: left;
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 800;
}

.hero .tagline {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: 1.35rem;
  color: #6E5444;
  margin-top: 0.5em;
}

/* Footer */
footer {
  margin-top: 5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #E7DBC2;
  color: #6E5444;
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: baseline;
  justify-content: space-between;
}

footer nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

footer a {
  color: #6E5444;
  border-bottom-color: rgba(110, 84, 68, 0.3);
}

footer a:hover {
  border-bottom-color: #6E5444;
}

/* Intro paragraph after the hero — slightly larger, slightly looser. */
.intro {
  margin-top: 2.5rem;
  font-size: 1.08rem;
  line-height: 1.7;
  color: #231712;
}

.intro p {
  max-width: 36em;
}

/* Thesis pull-quote — display serif, italic, centered, deliberately big. */
.thesis {
  text-align: center;
  margin: 3.5rem 0;
}

.thesis p {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1.3;
  color: #3C4419;
  margin: 0;
}

/* "Who it's for" list — no bullet markers, just tight vertical rhythm. */
.who-list {
  list-style: none;
  padding-left: 0;
  margin: 1em 0 1.5em;
}

.who-list li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 0.55em;
  color: #231712;
}

.who-list li::before {
  content: "·";
  position: absolute;
  left: 0.3em;
  top: -0.05em;
  color: #3C4419;
  font-weight: 700;
  font-size: 1.3em;
  line-height: 1;
}

/* Pro callout — subtle border + soft tinted background, paper-warm. */
.callout {
  background-color: #F2E9D2;            /* slightly warmer than the page bg */
  border: 1px solid #E7DBC2;
  border-radius: 12px;
  padding: 1.6rem 1.8rem;
  margin: 2.4em 0;
}

.callout h2 {
  margin-top: 0;
}

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

@media (max-width: 540px) {
  .thesis p {
    font-size: 1.5rem;
  }

  .callout {
    padding: 1.3rem 1.4rem;
  }
}

/* Legal page content (terms / privacy) */
.legal h2:first-of-type {
  margin-top: 1.6em;
}

.legal h3 {
  color: #3C4419;
}

.legal ul {
  margin-bottom: 1em;
}

.legal li {
  margin-bottom: 0.3em;
}

.legal .updated {
  display: inline-block;
  margin-top: 0.25rem;
  margin-bottom: 0;
  color: #6E5444;
  font-size: 0.95rem;
  font-style: italic;
}

/* Small screens — generous padding still, smaller display sizes. */
@media (max-width: 540px) {
  body {
    padding: 2rem 1.1rem 3rem;
    font-size: 16px;
  }

  h1 {
    font-size: 2.1rem;
  }

  .hero {
    margin-top: 3rem;
  }

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

  .hero .tagline {
    font-size: 1.15rem;
  }

  h2 {
    font-size: 1.35rem;
  }
}
