/* Shared styles for Hatch & Build subpages (about, blog, privacy, contact).
   The home page keeps its own inline styles. */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #F4EBD9;
  font-family: -apple-system, "Helvetica Neue", "Arial Rounded MT Bold", "Segoe UI", sans-serif;
  color: #463C30;
}

body {
  position: relative;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  padding: 40px 20px 48px;
}

.bg-glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(237,167,56,0.12), transparent 42%),
    radial-gradient(circle at 90% 85%, rgba(157,179,137,0.10), transparent 42%);
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 620px;
}

nav.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-bottom: 40px;
  font-size: 13.5px;
  font-weight: 600;
}

nav.site-nav a {
  color: #a89a80;
  text-decoration: none;
  padding: 4px 2px;
}

nav.site-nav a:hover { color: #463C30; }
nav.site-nav a.current { color: #463C30; }
nav.site-nav .brand {
  color: #463C30;
  margin-right: 6px;
}
nav.site-nav .brand .accent { color: #EDA738; }

h1 {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}

.page-sub {
  font-size: 14px;
  color: #a89a80;
  margin: 0 0 34px;
  line-height: 1.6;
}

.prose h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 34px 0 10px;
}

.prose h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 26px 0 8px;
}

.prose p, .prose li {
  font-size: 15px;
  line-height: 1.8;
  color: #6b5f4e;
}

.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }

.prose a {
  color: #b57b1e;
  text-decoration: underline;
  text-decoration-color: rgba(237,167,56,0.5);
  text-underline-offset: 2px;
}

.prose a:hover { color: #463C30; }

.prose strong { color: #463C30; }

.prose blockquote {
  margin: 0 0 16px;
  padding: 2px 0 2px 16px;
  border-left: 3px solid rgba(237,167,56,0.6);
  color: #7a6d5c;
  font-style: italic;
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  background: #EFE3CC;
  border-radius: 6px;
  padding: 2px 6px;
}

.prose hr {
  border: none;
  border-top: 1px solid rgba(70,60,48,0.1);
  margin: 30px 0;
}

.post-meta {
  font-size: 12.5px;
  color: #b6a98f;
  margin: 0 0 28px;
}

/* Blog index cards */
.post-list { display: flex; flex-direction: column; gap: 16px; }

.post-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #FBF6EC;
  border: 1px solid rgba(70,60,48,0.07);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(70,60,48,0.04);
  transition: border-color 0.15s ease;
}

.post-card:hover { border-color: rgba(70,60,48,0.18); }

.post-card .date {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b6a98f;
  margin-bottom: 6px;
}

.post-card h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}

.post-card p {
  font-size: 13.5px;
  line-height: 1.7;
  color: #7a6d5c;
  margin: 0;
}

footer {
  margin-top: 56px;
  text-align: center;
  font-size: 12.5px;
  color: #b6a98f;
}

footer .links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 12px;
}

footer a {
  color: #a89a80;
  text-decoration: none;
  font-weight: 600;
}

footer a:hover { color: #463C30; }
