/* Montessori with Merike — hand-built stylesheet */

:root {
  --paper: #ffffff;
  --paper-deep: #f4f1ec;
  --taupe: #615c55;
  --ink: #2a2723;
  --ink-soft: #55504a;
  --line: #e3ded6;
  --display: "Cinzel Decorative", "Iowan Old Style", Georgia, serif;
  --display-alt: "Marcellus", "Iowan Old Style", Georgia, serif;
  --body: "Poppins", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.8;
}

img { max-width: 100%; display: block; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--taupe); }

strong { font-weight: 600; }

::selection { background: var(--taupe); color: var(--paper); }

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  padding: 2rem clamp(1.25rem, 5vw, 4rem);
  background: var(--paper);
}

.wordmark {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { color: var(--ink); }

.site-nav { display: flex; gap: clamp(1rem, 2.5vw, 1.9rem); flex-wrap: wrap; }

.site-nav a {
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
  color: var(--ink-soft);
  padding-bottom: 0.15rem;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

.lang-switch {
  display: inline-flex; gap: 0.55rem; align-items: baseline;
  margin-left: 0.4rem; padding-left: 1.1rem; border-left: 1px solid var(--line);
}
.lang-switch a { font-size: 0.85rem; letter-spacing: 0.06em; }
.lang-switch a.active { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  isolation: isolate;
  color: #ffffff;
}
.hero img.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(30, 26, 20, 0.25);
}
.hero-inner {
  padding: clamp(3rem, 10vh, 7rem) clamp(1.25rem, 6vw, 5rem);
  max-width: 52rem;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}

.hero blockquote p.q {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.6;
}
.hero blockquote + blockquote { margin-top: 2rem; }
.hero cite {
  display: block;
  margin-top: 0.8rem;
  font-style: normal;
  font-size: 1rem;
  font-weight: 300;
  color: #f2ede5;
}

/* ---------- sections ---------- */

.section { padding: clamp(3.5rem, 9vw, 6.5rem) clamp(1.25rem, 6vw, 5rem); }
.section.tinted { background: var(--paper-deep); }
.section.inky { background: var(--taupe); color: var(--paper); }
.section.inky a { color: var(--paper); }

.measure { max-width: 68rem; margin: 0 auto; }
.measure-narrow { max-width: 46rem; margin: 0 auto; }

.kicker {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}
.inky .kicker { color: var(--paper-deep); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.25; text-wrap: balance; }
h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); }
h3 { font-size: 1.1rem; }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); }

/* two-column split with image */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split.flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
@media (max-width: 800px) { .split, .split.flip { grid-template-columns: 1fr; } }

/* side-by-side photo row */
.photo-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 2.5rem); }
.photo-row img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 640px) { .photo-row { grid-template-columns: 1fr; } }

.frame { position: relative; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px;
  border: 1px solid var(--line); z-index: -1;
}

.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--ink);
  padding: 0.8rem 2rem;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }

/* ---------- blog cards ---------- */

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 2.4rem; }

.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-deep); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.card:hover .thumb img { transform: scale(1.04); }
.card time {
  font-size: 0.8rem; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft);
  margin: 1.1rem 0 0.4rem;
}
.card h3 { font-family: var(--display-alt); font-size: 1.18rem; line-height: 1.4; font-variant-ligatures: no-discretionary-ligatures; }
.card:hover h3 { color: var(--taupe); }
.card p { margin-top: 0.5rem; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- article pages ---------- */

.post-header { padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 6vw, 5rem) 0; }
.post-header h1 { font-family: var(--display-alt); font-size: clamp(1.9rem, 4vw, 2.8rem); font-variant-ligatures: no-discretionary-ligatures; }
.post-header .measure-narrow > time {
  font-size: 0.85rem; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft);
  display: block; margin-bottom: 1rem;
}
.post-figure { margin: clamp(2rem, 5vw, 3.5rem) auto 0; max-width: 68rem; padding: 0 clamp(1.25rem, 6vw, 5rem); }
.post-figure img { width: 100%; max-height: 34rem; object-fit: cover; object-position: 50% 30%; }
.post-figure figcaption { font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.7rem; }

.post-body { padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 6vw, 5rem); }
.post-body p + p { margin-top: 1.4rem; }
.post-body h2 { margin: 2.6rem 0 1rem; }
.post-body ul, .post-body ol { margin: 1.4rem 0 1.4rem 1.6rem; }
.post-body li + li { margin-top: 0.4rem; }
.post-body blockquote {
  margin: 2rem 0; padding: 0.4rem 0 0.4rem 1.6rem;
  border-left: 3px solid var(--taupe);
  font-style: italic; color: var(--ink-soft);
}
.post-body .signoff { font-style: italic; color: var(--ink-soft); }

.post-nav {
  display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 2rem clamp(1.25rem, 6vw, 5rem) 3rem;
  font-size: 0.92rem;
}

/* ---------- contact ---------- */

.contact-list { list-style: none; margin-top: 1.8rem; }
.contact-list li { display: flex; gap: 1rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-list .label {
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft);
  min-width: 5.5rem;
}
.contact-list a { font-size: 1.1rem; font-weight: 400; }

/* full-bleed photo banner */
.banner {
  position: relative; isolation: isolate;
  min-height: 46vh; display: flex; align-items: center; justify-content: center;
  text-align: center; color: #ffffff; padding: 4rem 1.5rem;
}
.banner img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(30, 26, 20, 0.4); }
.banner p.banner-quote {
  font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-style: italic; font-weight: 600;
  line-height: 1.6; max-width: 46rem;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--taupe); color: #eae6df;
  padding: 3rem clamp(1.25rem, 6vw, 5rem);
  font-size: 0.92rem;
}
.site-footer .cols { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; max-width: 68rem; margin: 0 auto; }
.site-footer .fm { font-family: var(--display); font-size: 1.15rem; color: #ffffff; }
.site-footer a { color: #ffffff; }
.site-footer .quote { font-style: italic; max-width: 28rem; }
