:root {
  --ink: #2c2416;
  --sage: #3d4f3a;
  --leaf: #5c7a55;
  --clay: #9a5b2a;
  --paper: #f6efe2;
  --card: #fffdf7;
  --muted: #6b5e4e;
  --line: #e2d6c2;
  --shadow: 0 16px 36px rgba(44, 36, 22, 0.07);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, .logo-word { font-family: "Fraunces", serif; }

.wrap { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 239, 226, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner, .nav { display: flex; align-items: center; }
.header-inner { justify-content: space-between; min-height: 74px; gap: 16px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.logo-mark { width: 34px; height: 34px; }
.logo-word { font-size: 1.25rem; }
.nav { gap: 24px; }
.nav a { color: var(--muted); font-weight: 700; }
.nav a:hover, .nav a.active { color: var(--sage); }
.menu-btn {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 22px;
  font: inherit;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  text-align: center;
}
.btn-primary { background: var(--sage); color: #fff; }
.btn-ghost { background: #fff; color: var(--sage); border: 1px solid var(--line); }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .nav a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--leaf);
  outline-offset: 2px;
}

.hero { padding: 68px 0 28px; }
.eyebrow {
  color: var(--clay);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.76rem;
}
.hero h1, .page-head h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.08;
  margin: 10px 0 16px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 42rem; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

.section { padding: 52px 0; }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 12px; }
.section-intro { color: var(--muted); max-width: 44rem; margin-bottom: 24px; }

.story {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}
.story p { margin: 0 0 16px; }
.story p:last-child { margin-bottom: 0; }

.grid-2, .grid-3 { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.card h2, .card h3 { margin: 0 0 8px; }
.card ul { margin: 0; padding-left: 18px; }
.card li { margin: 6px 0; }

.timeline { display: grid; gap: 16px; }
.t-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
}
.t-item strong { display: block; color: var(--clay); font-size: 0.88rem; }

.entry {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 26px;
  margin-bottom: 16px;
}
.entry time { color: var(--clay); font-weight: 800; font-size: 0.86rem; }
.entry h3 { margin: 6px 0 8px; }

.howto {
  background: #3d4f3a;
  color: #eef4ea;
  border-radius: 24px;
  padding: 28px;
  margin-top: 28px;
}
.howto h2, .howto summary {
  color: #fff;
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  cursor: pointer;
  list-style: none;
}
.howto summary::-webkit-details-marker { display: none; }
.howto summary::after {
  content: "+";
  float: right;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 800;
}
.howto[open] summary::after { content: "–"; }
.howto a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.howto ol { margin: 16px 0 0; padding-left: 20px; }
.howto li { margin: 8px 0; }

.diary-launch { padding-top: 20px; }
.diary-notes { padding-top: 12px; }
.diary-tools { align-items: stretch; }
.diary-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.diary-card > p:not(.eyebrow) { color: var(--muted); margin: 0 0 16px; }
.diary-actions { margin-top: auto; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 0; }
.google-embed {
  width: 100%;
  height: min(70vh, 640px);
  border: 1px solid var(--line);
  margin-top: 22px;
  border-radius: 20px;
  background: #fff;
}
.share-label {
  margin: 16px 0 6px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
}
.share-preview {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #efe8db;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.share-preview:empty { display: none; }

form { display: grid; gap: 14px; position: relative; }
label { font-weight: 800; font-size: 0.92rem; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
}
.form-note { color: var(--muted); min-height: 1.4em; }
.form-note.ok { color: var(--leaf); }
.honey { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }

.page-head { padding: 52px 0 8px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
}
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.contact-line a { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    display: none;
    position: absolute;
    inset: 74px 20px auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav.open { display: flex; }
  .grid-2, .grid-3, .t-item { grid-template-columns: 1fr; }
  .toolbar .btn { flex: 1 1 calc(50% - 6px); }
}
