/* Delft & Tea — personal tea journal */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-deep:   #2d4a22;
  --green-mid:    #4a7c3f;
  --green-light:  #8fb369;
  --cream:        #faf7f2;
  --cream-dark:   #f0ebe1;
  --brown:        #6b5d4f;
  --brown-light:  #a0907e;
  --text:         #1c1814;
  --text-muted:   #5a4e44;
  --border:       #ddd5c8;
  --white:        #ffffff;

  --font-body:  'Georgia', 'Times New Roman', serif;
  --font-ui:    system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:  'Menlo', 'Monaco', monospace;

  --max-w: 740px;
  --wide-w: 1040px;
}

html { font-size: 18px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.75;
}

/* ── Layout ── */
.site-header {
  background: var(--green-deep);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,.25);
}
.header-inner {
  max-width: var(--wide-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.2rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.logo svg { width: 28px; height: 28px; flex-shrink: 0; }
nav { display: flex; gap: 1.6rem; }
nav a {
  font-family: var(--font-ui);
  font-size: .85rem;
  color: rgba(250,247,242,.75);
  text-decoration: none;
  letter-spacing: .04em;
  transition: color .15s;
}
nav a:hover, nav a.active { color: var(--cream); }

main { max-width: var(--max-w); margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
main.wide { max-width: var(--wide-w); }

.site-footer {
  background: var(--green-deep);
  color: rgba(250,247,242,.6);
  font-family: var(--font-ui);
  font-size: .78rem;
  padding: 1.6rem 1.5rem;
  text-align: center;
}
.site-footer a { color: rgba(250,247,242,.75); text-decoration: none; }
.site-footer a:hover { color: var(--cream); }

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 2.5rem;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
}
.hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.65);
}
.hero-body {
  position: relative;
  padding: 2rem 2rem 2.2rem;
  color: var(--white);
}
.hero-body h1 {
  font-size: 2.1rem;
  line-height: 1.25;
  font-weight: normal;
  margin-bottom: .5rem;
}
.hero-body p {
  font-size: 1.05rem;
  opacity: .85;
  max-width: 520px;
}

/* ── Typography ── */
h1, h2, h3, h4 { font-weight: normal; line-height: 1.3; }
h1 { font-size: 1.9rem; margin-bottom: 1rem; color: var(--green-deep); }
h2 { font-size: 1.45rem; margin: 2.2rem 0 .7rem; color: var(--green-deep); }
h3 { font-size: 1.15rem; margin: 1.8rem 0 .5rem; color: var(--brown); }
p  { margin-bottom: 1.1rem; }
a  { color: var(--green-mid); text-decoration: none; border-bottom: 1px solid var(--green-light); }
a:hover { color: var(--green-deep); }
ul, ol { padding-left: 1.6rem; margin-bottom: 1.1rem; }
li { margin-bottom: .3rem; }
blockquote {
  border-left: 3px solid var(--green-light);
  padding: .5rem 1.2rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}
hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
code {
  font-family: var(--font-mono);
  font-size: .82em;
  background: var(--cream-dark);
  padding: .1em .35em;
  border-radius: 3px;
  color: var(--green-deep);
}
pre {
  background: #1c1814;
  color: #e8e0d6;
  padding: 1.1rem 1.3rem;
  border-radius: 6px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: .82rem;
  line-height: 1.65;
  margin: 1.4rem 0;
}
pre code { background: none; padding: 0; color: inherit; font-size: inherit; }

/* ── Cards ── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.post-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
  transition: box-shadow .2s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  color: var(--text);
}
.post-card:hover { box-shadow: 0 4px 16px rgba(45,74,34,.12); border-bottom-color: transparent; }
.post-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.card-body { padding: 1.1rem 1.2rem 1.3rem; flex: 1; display: flex; flex-direction: column; }
.card-tag {
  font-family: var(--font-ui);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brown-light);
  margin-bottom: .4rem;
}
.card-body h3 {
  font-size: 1.05rem;
  margin: 0 0 .45rem;
  color: var(--green-deep);
  line-height: 1.35;
}
.card-body p { font-size: .88rem; color: var(--text-muted); margin: 0; }
.card-date {
  font-family: var(--font-ui);
  font-size: .75rem;
  color: var(--brown-light);
  margin-top: .7rem;
}

/* ── Post ── */
.post-header { margin-bottom: 2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--border); }
.post-header .tag {
  font-family: var(--font-ui);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--green-mid);
  margin-bottom: .6rem;
}
.post-header h1 { margin-bottom: .5rem; }
.post-meta {
  font-family: var(--font-ui);
  font-size: .8rem;
  color: var(--brown-light);
}
.post-hero {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1.8rem;
  display: block;
}

/* ── Misc ── */
.pill {
  display: inline-block;
  background: var(--cream-dark);
  color: var(--brown);
  font-family: var(--font-ui);
  font-size: .78rem;
  padding: .2rem .65rem;
  border-radius: 999px;
  margin: .15rem;
  border-bottom: none;
}
.pill:hover { background: var(--green-light); color: var(--white); }
.toc {
  background: var(--cream-dark);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.3rem;
  margin: 1.5rem 0;
  font-family: var(--font-ui);
  font-size: .86rem;
}
.toc ul { margin: .4rem 0 0; }
.toc li { margin-bottom: .25rem; }
.toc a { border-bottom: none; color: var(--green-mid); }
.section-label {
  font-family: var(--font-ui);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--brown-light);
  margin-bottom: 1rem;
}

/* ── Now page ── */
.now-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.2rem 1.4rem;
  margin: 1.2rem 0;
}
.now-block h3 { margin-top: 0; }

/* ── 404 ── */
.error-page { text-align: center; padding: 4rem 1.5rem; }
.error-page .big-num {
  font-size: 5rem;
  color: var(--green-light);
  font-family: var(--font-ui);
  line-height: 1;
  margin-bottom: .5rem;
}

@media (max-width: 600px) {
  html { font-size: 16px; }
  nav { gap: .9rem; }
  .hero-body h1 { font-size: 1.55rem; }
  .post-grid { grid-template-columns: 1fr; }
}
