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

:root {
  --bg:      #FAFAF8;
  --ink:     #1A1A1A;
  --mute:    #888;
  --soft:    #555;
  --rule:    #E4E4E0;
  --accent:  #1A1A1A;
  --max:     720px;
  --pad:     clamp(1.5rem, 5vw, 3rem);
}

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Layout ── */

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

header {
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--rule);
}

.site-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: normal;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.75rem;
}

.site-nav a {
  font-size: 0.9375rem;
  color: var(--mute);
  text-decoration: none;
}

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

main { flex: 1; }

section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--rule);
}

section:last-child { border-bottom: none; }

footer {
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--mute);
}

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

footer nav { display: flex; gap: 1.25rem; }
footer a { color: var(--mute); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ── Type ── */

h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: normal;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  font-weight: normal;
  margin-bottom: 1.5rem;
  color: var(--soft);
}

h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

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

ul { list-style: none; padding: 0; margin-bottom: 1rem; }

ul li {
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.35rem;
}

ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--mute);
}

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

/* ── Hero ── */

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

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

.hero-sub {
  font-size: 1.125rem;
  color: var(--soft);
  max-width: 480px;
}

/* ── Apps ── */

.apps-grid {
  display: grid;
  gap: 0;
}

.app-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 1rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
}

.app-card:last-child { border-bottom: 1px solid var(--rule); }

.app-card:hover .app-name { opacity: 0.6; }

.app-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.125rem;
  font-weight: normal;
  margin-bottom: 0.25rem;
  transition: opacity 0.15s;
}

.app-desc {
  font-size: 0.9375rem;
  color: var(--soft);
  margin: 0;
}

.app-badge {
  font-size: 0.8125rem;
  color: var(--mute);
  white-space: nowrap;
  padding-top: 0.2rem;
}

/* ── Blog ── */

.blog-list { display: grid; gap: 0; }

.blog-post {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.25rem;
  align-items: baseline;
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
}

.blog-post:last-child { border-bottom: 1px solid var(--rule); }
.blog-post:hover .post-title { opacity: 0.6; }

.post-date {
  font-size: 0.8125rem;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
}

.post-title {
  font-size: 1rem;
  transition: opacity 0.15s;
}

.blog-empty {
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--mute);
  font-size: 0.9375rem;
}

/* ── Inner pages ── */

.page-header { padding: 3.5rem 0 2.5rem; }

.page-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: normal;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
}

.page-meta {
  font-size: 0.875rem;
  color: var(--mute);
}

.page-body { padding-bottom: 5rem; }

.page-body h2 {
  font-size: 1.125rem;
  color: var(--ink);
  margin: 2.5rem 0 0.75rem;
}

.page-body p { margin-bottom: 1rem; }

.faq-item { margin-bottom: 2rem; }
.faq-q { font-weight: 500; margin-bottom: 0.35rem; }

code {
  font-family: ui-monospace, 'Courier New', monospace;
  font-size: 0.875em;
  background: var(--rule);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

/* ── Blog post page ── */

.post-body {
  padding-bottom: 5rem;
  max-width: 620px;
}

.post-body p { margin-bottom: 1.25rem; line-height: 1.75; }

.post-body blockquote {
  border-left: 2px solid var(--rule);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--soft);
  font-style: italic;
}
