/* Palette and type carried over from theciceronemethod.com: forest green,
   teal, Playfair Display headings. The font is self-hosted so the site still
   makes zero third-party requests, which keeps privacy.html literally true. */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/playfair-800.woff2") format("woff2");
}

:root {
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --text: #1B4332;
  --muted: #4A6741;
  --accent: #0D9488;
  --accent-soft: rgba(13, 148, 136, .09);
  --border: #E8E4DF;
  --btn-bg: #1B4332;
  --btn-text: #F5F7FA;
  --footer-bg: #16352A;
  --footer-text: #B9CABF;
  --footer-link: #5FCFC0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1813;
    --surface: #17231D;
    --text: #E8F0EB;
    --muted: #9DB3A6;
    --accent: #35C7B6;
    --accent-soft: rgba(53, 199, 182, .12);
    --border: #263630;
    --btn-bg: #35C7B6;
    --btn-text: #0C1A14;
    --footer-bg: #0B120E;
    --footer-text: #9DB3A6;
    --footer-link: #5FCFC0;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { padding: 24px 0; border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--text);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; background: #fff;
  border: 1px solid var(--border);
}
.site-nav { display: flex; gap: 22px; }
.site-nav a {
  text-decoration: none; color: var(--muted);
  font-size: .93rem; font-weight: 600;
}
.site-nav a:hover { color: var(--accent); }

/* Type */
h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.2rem, 5.6vw, 3.2rem);
  line-height: 1.08; letter-spacing: -.022em;
  font-weight: 800; margin: 0 0 18px;
}
h2 {
  font-size: .74rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
  margin: 0 0 22px;
}
h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 6px;
}
p { margin: 0 0 18px; }
.lede { font-size: 1.16rem; color: var(--muted); max-width: 620px; line-height: 1.72; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

section { padding: 58px 0 0; }
.hero { padding: 74px 0 66px; }
.hero p:last-child { margin-bottom: 0; }

/* App cards */
.apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: 16px;
}
.app {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 26px 28px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(27, 67, 50, .04);
}
.app-icon {
  width: 64px; height: 64px; border-radius: 15px; flex: none;
  border: 1px solid var(--border);
}
.app-body { display: flex; flex-direction: column; flex: 1; }
.app-body h3 a { color: inherit; text-decoration: none; }
.app-body h3 a:hover { color: var(--accent); }
.app-body p { color: var(--muted); margin: 0 0 14px; font-size: .97rem; }
.app-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.btn {
  display: inline-block; padding: 9px 18px; border-radius: 10px;
  background: var(--btn-bg); color: var(--btn-text); text-decoration: none;
  font-size: .87rem; font-weight: 700;
}
.btn:hover { filter: brightness(1.12); }
.btn.ghost { background: var(--accent-soft); color: var(--accent); }
.app.soon .app-icon { opacity: .75; }
.tag {
  display: inline-block; vertical-align: 3px; margin-left: 6px;
  padding: 3px 9px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}

/* About */
.about-grid {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: 40px; align-items: start;
}
.team { display: flex; flex-direction: column; gap: 26px; }
.team figure { margin: 0; }
.team img {
  width: 100%; height: auto; display: block;
  border-radius: 18px; border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 14px 34px -18px rgba(22, 53, 42, .35);
}
.team figcaption {
  margin-top: 10px; font-size: .85rem; color: var(--muted); text-align: center;
}
@media (max-width: 680px) {
  .about-grid { grid-template-columns: 1fr; }
  .team { max-width: 360px; margin: 0 auto; }
}

/* Prose pages (support, privacy, app pages) */
.prose { padding: 48px 0 0; }
.prose h1 { margin-top: 0; }
.prose h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem; text-transform: none; letter-spacing: -.01em;
  color: var(--text); margin: 36px 0 10px;
}
.prose ul { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 7px; }
.updated { font-size: .88rem; color: var(--muted); }
.page-icon { width: 72px; height: 72px; border-radius: 17px; border: 1px solid var(--border); margin-bottom: 20px; }

/* Footer */
footer {
  margin-top: 88px; padding: 34px 0 48px;
  background: var(--footer-bg);
  font-size: .89rem; color: var(--footer-text);
}
footer a { color: var(--footer-text); }
footer a:hover { color: var(--footer-link); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 12px; }
