/* Inkling — inklingapp.org
   Editorial register: warm cream paper, warm near-black ink,
   single-family serif typography with restrained motion. */

:root {
  --paper: #F5EFE4;
  --paper-dim: #EDE5D3;
  --paper-light: #FBF7EE;
  --ink: #1A1714;
  --ink-soft: #5C534A;
  --rule: #D9CFB8;
  --accent: #1B2845;
  --crisis: #8B3A2F;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  padding: 0;
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  font-feature-settings: 'liga', 'kern', 'onum';
}

h1, h2, h3 {
  font-family: 'EB Garamond', Georgia, serif;
  color: var(--ink);
  line-height: 1.2;
  margin-top: 2.75rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-top: 0;
}

h2 {
  font-size: 1.625rem;
  font-weight: 500;
}

h3 {
  font-size: 1.25rem;
  font-weight: 500;
}

p {
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s ease;
}

a:hover {
  text-decoration-color: var(--ink);
}

strong { font-weight: 500; color: var(--ink); }
em { font-style: italic; }

ul, ol {
  padding-left: 1.5rem;
  margin: 0 0 1.5rem;
}

li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

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

/* Layout */
.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

/* Header (used on inner pages) */
.site-header {
  margin-bottom: 4rem;
}

.wordmark {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark:hover {
  text-decoration: none;
  color: var(--ink-soft);
}

/* Hero (index only) */
.hero {
  text-align: center;
  padding: 5rem 0 3rem;
  animation: fade-up 0.9s ease-out both;
}

.hero .blot {
  display: block;
  margin: 0 auto 2.5rem;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

.hero .tagline {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink-soft);
  max-width: 30rem;
  margin: 0 auto 3rem;
  line-height: 1.5;
}

.intro {
  margin-top: 3rem;
  animation: fade-up 1.1s ease-out 0.2s both;
}

.intro p {
  font-size: 1.125rem;
}

/* Meta line under page titles */
.section-meta {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 2rem;
  margin-top: -0.5rem;
}

/* Footer */
.site-footer {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration-color: transparent;
}

.site-footer a:hover {
  text-decoration-color: var(--ink-soft);
}

.site-footer .footer-links a + a {
  margin-left: 0.75rem;
}

/* Subtle entrance for body content */
article {
  animation: fade-up 0.8s ease-out 0.1s both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus state */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Mobile */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .container { padding: 3rem 1.5rem 4rem; }
  .hero { padding: 3rem 0 2rem; }
  .hero h1 { font-size: 3rem; }
  .hero .tagline { font-size: 1.125rem; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.375rem; }
  .site-footer { flex-direction: column; gap: 0.5rem; }
}
