:root {
  --bg: #f4efe8;
  --ink: #1c1916;
  --muted: #6b6258;
  --brass: #9a6b2f;
  --card: #fffcf7;
  --line: #e0d6c8;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); line-height: 1.55; }
.header { border-bottom: 1px solid var(--line); background: rgba(244,239,232,0.94); position: sticky; top: 0; z-index: 20; }
.header-inner { position: relative; }
.header-inner, .container, .footer-inner { max-width: 980px; margin: 0 auto; padding: 0 1.15rem; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 1.15rem; }
.logo { text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: 0.05em; font-size: 0.86rem; }
.logo b { color: var(--brass); font-weight: 700; }
.nav { display: flex; gap: 1rem; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.88rem; }
.hero { padding: 3.2rem 0 2rem; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.15; margin: 0.4rem 0 0.8rem; max-width: 18ch; }
.hero h1 em { font-style: italic; color: var(--brass); }
.kicker { font-size: 0.72rem; letter-spacing: 0.14em; font-weight: 800; color: var(--brass); }
.hero p { max-width: 38rem; color: var(--muted); font-size: 1.05rem; }
.cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.btn {
  display: inline-flex; align-items: center; padding: 0.85rem 1.25rem;
  border-radius: 12px; font-weight: 700; text-decoration: none; font-size: 0.92rem;
}
.btn-primary { background: var(--brass); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.section { padding: 2.2rem 0 3rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.15rem; }
.card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.privacy { padding: 2.5rem 0 4rem; max-width: 720px; }
.privacy h1 { font-family: var(--serif); font-weight: 400; }
.privacy a { color: var(--brass); font-weight: 650; }
.footer { border-top: 1px solid var(--line); padding: 1.3rem 0; text-align: center; color: var(--muted); font-size: 0.82rem; }
.footer a { color: var(--brass); }
.hidden { display: none !important; }
.menu-btn { display: none; border: none; background: none; font-size: 1.4rem; }
.auth-page { padding: 3rem 0 4rem; min-height: 70vh; }
.auth-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem 1.5rem;
}
.auth-card h1 { font-family: var(--serif); font-weight: 400; font-size: 2rem; margin: 0.35rem 0 0.5rem; }
.auth-lead { color: var(--muted); margin: 0 0 1.5rem; font-size: 0.95rem; }
.auth-form { display: grid; gap: 0.9rem; }
.auth-form label { display: grid; gap: 0.35rem; font-size: 0.88rem; font-weight: 600; }
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-weight: 400;
  background: #fff;
  color: var(--ink);
}
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 560px) { .auth-row { grid-template-columns: 1fr; } }
.auth-form .chk { display: flex; align-items: flex-start; gap: 0.55rem; font-weight: 400; color: var(--muted); font-size: 0.88rem; }
.auth-form .chk input { margin-top: 0.2rem; }
.auth-form .btn { justify-content: center; width: 100%; border: 0; cursor: pointer; }
.auth-msg { margin: 0; font-size: 0.88rem; padding: 0.65rem 0.8rem; border-radius: 10px; }
.auth-msg.ok { background: #ecfdf3; color: #065f46; }
.auth-msg.err { background: #fef2f2; color: #991b1b; }
.auth-done { background: #ecfdf3; border: 1px solid var(--line); color: #065f46; padding: 1rem 1.1rem; border-radius: 12px; margin-bottom: 1rem; }
.auth-done a, .auth-foot a { color: var(--brass); font-weight: 600; }
.auth-foot { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 1.25rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pw-field { display: flex; gap: 0.4rem; align-items: stretch; }
.pw-field input { flex: 1; min-width: 0; }
.pw-toggle {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
}
.pw-toggle[aria-pressed="true"] { background: var(--brass); color: #fff; border-color: var(--brass); }
.pw-hint { font-weight: 500; color: var(--muted); font-size: 0.78rem; }
.pw-hint.ok { color: #0f766e; }
@media (max-width: 640px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--card);
    padding: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .menu-btn { display: block; }
}
