/* ========== Emkot — shared styles ========== */
:root {
  --paper: #f4efe6;
  --paper-2: #ece5d6;
  --ink: #1c1a17;
  --ink-soft: #4a443c;
  --ink-mute: #8a8175;
  --rule: #d6cdb8;
  --accent: #b34822;
  --accent-soft: #e8a98f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.11  0 0 0 0 0.10  0 0 0 0 0.09  0 0 0 0.07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

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

/* ===== NAV ===== */
nav.site-nav {
  padding: 28px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
}

.logo {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 50, "WONK" 1;
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
}

.logo .dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  transform: translateY(-2px);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

/* ===== HERO ===== */
.hero {
  padding: 100px 0 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
}

.hero-meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-meta .line { width: 36px; height: 1px; background: var(--ink-mute); }

.hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(44px, 6.5vw, 88px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
}

.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.hero-aside p {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 380px;
}

.hero-aside p::first-letter {
  font-family: 'Fraunces', serif;
  font-size: 56px;
  float: left;
  line-height: 0.85;
  padding: 6px 10px 0 0;
  font-weight: 500;
  color: var(--accent);
}

/* ===== Section heads ===== */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 48px;
  padding-top: 60px;
  border-top: 1px solid var(--rule);
  margin-top: 40px;
}

.section-head:first-child { padding-top: 0; border-top: none; margin-top: 0; }

.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  font-weight: 600;
}

.section-link {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
  text-decoration: none;
}

.section-link:hover { color: var(--accent); }

/* ===== Post list ===== */
.posts-section { padding-bottom: 80px; }

.post-list { list-style: none; }

.post-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 40px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: padding 0.3s ease;
  position: relative;
}

.post-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-50%) scale(0);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.post-item:hover { padding-left: 16px; }
.post-item:hover::before { transform: translateY(-50%) scale(1); }
.post-item:hover .post-title { color: var(--accent); }

.post-date {
  font-size: 13px;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.post-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  transition: color 0.2s ease;
}

.post-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  font-weight: 500;
}

/* ===== Article (post page) ===== */
.article-header {
  padding: 80px 0 50px;
  text-align: center;
}

.article-meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  margin-bottom: 28px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.article-header h1 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

.article-header .lede {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 22px;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.45;
  max-width: 640px;
  margin: 0 auto;
}

.article-body {
  padding: 30px 0 80px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
}

.article-body > p:first-of-type::first-letter {
  font-family: 'Fraunces', serif;
  font-size: 64px;
  float: left;
  line-height: 0.85;
  padding: 8px 12px 0 0;
  font-weight: 500;
  color: var(--accent);
}

.article-body p { margin-bottom: 1.4em; }

.article-body h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 56px 0 20px;
  font-variation-settings: "opsz" 100, "SOFT" 50;
}

.article-body h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 22px;
  margin: 36px 0 14px;
  letter-spacing: -0.01em;
}

.article-body ul, .article-body ol {
  margin: 0 0 1.4em 1.6em;
}

.article-body li { margin-bottom: 10px; }

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 24px;
  margin: 36px 0;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.article-body strong { color: var(--ink); font-weight: 600; }

.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.article-footer {
  border-top: 1px solid var(--rule);
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--ink-mute);
}

.back-link {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--ink-soft);
  text-decoration: none;
}
.back-link:hover { color: var(--accent); }

/* ===== Page header (about, contact, policies) ===== */
.page-header {
  padding: 80px 0 40px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 50px;
}
.page-header .eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 18px;
}
.page-header h1 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 1;
}
.page-header h1 em { font-style: italic; color: var(--accent); }

.page-body {
  padding-bottom: 80px;
  font-size: 17px;
  line-height: 1.75;
}
.page-body p { margin-bottom: 1.3em; color: var(--ink-soft); }
.page-body h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 26px;
  margin: 44px 0 16px;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.page-body h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 19px;
  margin: 28px 0 10px;
  color: var(--ink);
}
.page-body ul, .page-body ol { margin: 0 0 1.3em 1.5em; color: var(--ink-soft); }
.page-body li { margin-bottom: 8px; }
.page-body strong { color: var(--ink); }
.page-body a { color: var(--accent); }

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 30px;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  padding: 8px 0;
  outline: none;
  transition: border-color 0.2s ease;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form button {
  align-self: flex-start;
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 14px 28px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 16px;
  cursor: pointer;
  margin-top: 12px;
  transition: background 0.2s ease;
}
.contact-form button:hover { background: var(--accent); }

/* ===== Newsletter ===== */
.newsletter {
  padding: 90px 0;
  text-align: center;
  border-top: 1px solid var(--rule);
}

.newsletter-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  margin-bottom: 18px;
  font-weight: 600;
}

.newsletter h3 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 720px;
  margin: 0 auto 18px;
}

.newsletter h3 em { font-style: italic; color: var(--accent); }

.newsletter-sub { color: var(--ink-soft); margin-bottom: 36px; max-width: 480px; margin-left: auto; margin-right: auto; }

.newsletter-form {
  display: flex;
  max-width: 460px;
  margin: 0 auto;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 8px;
}

.newsletter-form input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  padding: 8px 0;
  outline: none;
}

.newsletter-form input::placeholder { color: var(--ink-mute); }

.newsletter-form button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--accent);
  padding: 8px 4px;
}

/* ===== Footer ===== */
footer.site-footer {
  border-top: 1px solid var(--rule);
  padding: 50px 0 60px;
  font-size: 13px;
  color: var(--ink-mute);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 14px;
  font-style: italic;
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--ink-mute); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }

.footer-about p { color: var(--ink-mute); max-width: 320px; line-height: 1.6; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .container, .container-narrow { padding: 0 22px; }
  nav.site-nav { padding: 20px 0; flex-wrap: wrap; gap: 12px; }
  .nav-links { gap: 18px; font-size: 13px; flex-wrap: wrap; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 60px 0 40px; }
  .post-item { grid-template-columns: 70px 1fr; gap: 16px; }
  .post-tag { display: none; }
  .post-title { font-size: 19px; }
  .article-body { font-size: 17px; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
}
