:root {
  --bg: #fbfaf7;
  --card: #ffffff;
  --surface: #fffaf1;
  --text: #201d1a;
  --muted: #5e564d;
  --line: #e5d8c4;
  --accent: #2b9b6e;
  --accent-strong: #1f7a55;
  --post-image-max-width: 680px;
  --post-image-max-height: 520px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter", "Avenir Next", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}
a {
  color: var(--accent-strong);
  text-decoration-color: var(--accent);
  text-underline-offset: 0.12em;
}
a:visited {
  color: var(--accent-strong);
}
a:hover,
a:active {
  color: var(--accent);
}
.page {
  width: min(900px, 92vw);
  margin: 0 auto;
  padding: 2rem 0 3rem;
}
.topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.topnav-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.topnav-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.topnav-post {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}
.topnav a {
  color: var(--accent);
  text-decoration: none;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand-logo {
  width: 112px;
  max-width: 34vw;
  height: auto;
  display: block;
}
.back-link {
  font-size: 0.95rem;
  font-weight: 500;
}
.home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  line-height: 1;
}
.home-link:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}
.locale-dropdown { position: relative; }
.locale-dropdown summary { list-style: none; }
.locale-dropdown summary::-webkit-details-marker { display: none; }
.locale-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  min-height: 38px;
  cursor: pointer;
  background: var(--card);
  font-size: 0.875rem;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.locale-toggle:hover { border-color: var(--accent); }
.locale-flag { font-size: 1rem; }
.locale-chevron { font-size: 0.75rem; color: var(--muted); }
.locale-menu {
  position: absolute;
  right: 0;
  margin-top: 0.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.3rem;
  min-width: 145px;
  box-shadow: 0 10px 24px rgba(21, 33, 24, 0.08);
  display: grid;
  gap: 0.1rem;
  z-index: 10;
}
.locale-item {
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  transition: background 0.15s;
}
.locale-item:hover { background: var(--line); }
.locale-item[aria-current="page"] {
  background: color-mix(in srgb, var(--line) 68%, #fff);
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem 1.25rem;
  box-shadow: 0 10px 24px rgba(30, 18, 8, 0.07);
}
.post-list {
  display: grid;
  gap: 0.8rem;
}
.post-item h2,
article h1 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.post-item p.meta,
article p.meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.4rem 0 0.7rem;
}
.post-item p {
  margin: 0.5rem 0 0;
}
article .content p,
article .content li {
  color: #302a24;
}
article .content img {
  display: block;
  width: min(100%, var(--post-image-max-width));
  max-width: 100%;
  max-height: var(--post-image-max-height);
  height: auto;
  object-fit: contain;
  margin: 1rem auto;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 85%, #ffffff);
  background: #fff;
  box-shadow: 0 10px 24px rgba(24, 17, 10, 0.08);
}
.image-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: start;
}
.image-row figure {
  margin: 0;
}
.image-row img {
  width: 100%;
  max-height: 320px;
  margin: 0;
  box-shadow: 0 8px 18px rgba(24, 17, 10, 0.07);
}
.image-row figcaption {
  margin-top: 0.45rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
  text-align: center;
}
@media (max-width: 760px) {
  .image-row {
    grid-template-columns: 1fr;
  }
}
