:root {
  --bg: #f1e7dc;
  --surface: #e7d7c7;
  --surface-2: #efe3d7;
  --card: #d8c0a8;
  --text: #2f2218;
  --muted: #6f5846;
  --accent: #55331a;
  --accent-2: #8a5a36;
  --border: #b89f89;
  --light: #f7f1ea;
  --shadow: rgba(85,51,26,0.10);
  --overlay: rgba(47,34,24,0.45);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Merrycle, "Times New Roman", serif; background: var(--bg); color: var(--text); line-height: 1.7; font-size: 30px; }
body.menu-open { overflow: hidden; }

@font-face {
  font-family: 'Merrycle';
  src: url('../fonts/merrycle.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

h1, h1.site-title,
.site-title {
  font-family: 'Merrycle', cursive !important;
}

article.post p,
article.post li,
article.post blockquote {
  font-family: Georgia, "Times New Roman", serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 30%; height: auto; display: block; float: left; margin: 0 1rem 1rem 0; }
.container { width: min(100% - 1.25rem, 980px); margin-inline: auto; }
.site-header {
  background: linear-gradient(180deg, var(--accent), #6a4326);
  color: var(--light);
  border-bottom: 4px solid var(--accent-2);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--light);
  text-decoration: none;
  min-height: 52px;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  flex: 0 0 auto;
}
.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.site-title {
  margin: 0;
  font-size: 3.29rem;
  line-height: 1.15;
  color: var(--light);
}

.brand-subtitle {
  color: #eadbcf;
  font-size: 1.6rem;
  line-height: 1.2;
  margin-top: 0.2rem;
}
.menu-toggle {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.26);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  color: var(--light);
  position: relative;
  padding: 0;
  z-index: 65;
}
.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 16px;
  position: absolute;
  transition: transform .18s ease, opacity .18s ease;
}
.menu-toggle::before { transform: translateY(-6px); }
.menu-toggle::after { transform: translateY(6px); }
.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { transform: rotate(-45deg); }
.menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 50;
}
.menu-overlay[data-open="true"] { opacity: 1; pointer-events: auto; }
.offcanvas-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(86vw, 340px);
  height: 100dvh;
  background: var(--surface-2);
  border-left: 1px solid var(--border);
  box-shadow: -10px 0 30px rgba(47,34,24,0.18);
  transform: translateX(100%);
  transition: transform .22s ease;
  z-index: 60;
  padding: 5rem 1rem 1rem;
  overflow-y: auto;
}
.offcanvas-menu[data-open="true"] { transform: translateX(0); }
.offcanvas-menu nav,
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.offcanvas-menu a,
.mobile-nav > a,
.mobile-nav-item > .menu-item-row {
  width: 100%;
}
.offcanvas-menu a,
.mobile-nav > a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.85rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--accent);
}
.desktop-nav { display: none; }
.desktop-nav,
.desktop-nav .nav-item {
  position: relative;
}
.desktop-nav a {
  color: var(--light);
  padding: 0.62rem 0.85rem;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.04);
}
.menu-item-row {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
}
.desktop-nav .menu-item-row a {
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}
.submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.62rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: var(--light);
  cursor: pointer;
  font: inherit;
  line-height: 1;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.submenu-toggle span {
  display: inline-block;
  transition: transform .18s ease;
}
.has-submenu.is-open > .menu-item-row .submenu-toggle span {
  transform: rotate(180deg);
}
.submenu {
  display: none;
}
.desktop-nav .submenu {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  min-width: 220px;
  padding: 0.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(47,34,24,0.18);
  z-index: 80;
}
.desktop-nav .submenu a {
  display: flex;
  width: 100%;
  margin: 0;
  color: var(--accent);
  background: transparent;
  border: 0;
  border-radius: 12px;
  min-height: 44px;
  padding: 0.75rem 0.9rem;
}
.desktop-nav .submenu a:hover,
.desktop-nav .submenu a:focus-visible {
  background: var(--surface);
  text-decoration: none;
}
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.mobile-nav-item > .menu-item-row a,
.mobile-nav-item > .menu-item-row .submenu-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  min-height: 48px;
}
.mobile-nav-item > .menu-item-row a {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
}
.mobile-nav-item > .menu-item-row .submenu-toggle {
  border-radius: 12px;
}
.mobile-nav .submenu {
  padding-left: 0.9rem;
  margin-top: 0.2rem;
}
.mobile-nav .submenu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.75rem 0.95rem;
  border-left: 3px solid var(--accent-2);
  background: rgba(255,255,255,0.18);
  border-radius: 0 12px 12px 0;
  color: var(--accent);
}
.has-submenu.is-open > .submenu {
  display: block;
}
.submenu-toggle:hover,
.submenu-toggle:focus-visible,
.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  text-decoration: none;
}
.content { padding: 1rem 0 2rem; }
.post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px var(--shadow);
}
.post h1, .post h2, .post h3 { color: var(--accent); line-height: 1.15; margin: 0 0 0.7rem; font-weight: 900; font-size: 2.8rem !important; }
.post h1 { font-family: 'MagicalNight', cursive !important; font-size: clamp(2.2rem, 4vw, 2.6rem); }
.post h2 { font-size: clamp(1.25rem, 3vw, 1.7rem); }
.post-meta { color: var(--muted); font-size: 1.0rem; margin-bottom: 0.85rem; }
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 0.8rem; margin: 1.1rem 0; }
.gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  box-shadow: 0 3px 12px var(--shadow);
}
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.footer { border-top: 1px solid var(--border); color: var(--muted); padding: 1.25rem 0 2rem; font-size: 0.95rem; }
@media (max-width: 420px) {
  .brand-logo { width: 96px; height: 96px; }
  .site-title { font-size: 2.4rem; }
  .brand-subtitle { display: none; }
}
@media (min-width: 860px) {
  .brand-logo { width: 96px; height: 96px; }
  .menu-toggle, .menu-overlay, .offcanvas-menu { display: none; }
  .site-title { font-size: 2.15rem; }
  .desktop-nav { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-left: auto; align-items: center; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-title { font-size: 3.15rem; }
  .post { padding: 1.5rem; }
}

