:root{
  --bg:#f7f7fb;
  --fg:#1f2430;
  --muted:#6b7280;

  --card:#ffffff;
  --line:rgba(31,36,48,.10);

  --accent:#f2a6bf;
  --accent2:#ffd6e3;
  --accent-ink:#7a2b44;

  --shadow: 0 12px 30px rgba(31,36,48,.10);
  --shadow2: 0 8px 24px rgba(31,36,48,.08);

  --radius: 18px;
  --radius2: 24px;

  --container: 1120px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
/* header alignment stability between pages */
html{ scrollbar-gutter: stable; }

body{
  margin:0;
  background:var(--bg);
  color:var(--fg);
  font: 14px/1.65 "Zen Kaku Gothic New", system-ui, -apple-system, "Segoe UI", Roboto,
        "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  letter-spacing:.2px;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
.link{ text-decoration:none; }
.link:hover{ opacity:.94; }

.container{
  width: min(var(--container), calc(100% - 36px));
  margin: 0 auto;
}

.main{ padding: 22px 0 70px; }

.visually-hidden{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  border:0;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:.35em;
  padding: .25rem .6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: rgba(31,36,48,.92);
  background: rgba(255,255,255,.92);
}
.pill-accent{
  border-color: rgba(242,166,191,.55);
  background: rgba(255,214,227,.65);
  color: var(--accent-ink);
}
.pill-strong{
  font-weight: 900;
  letter-spacing: .2px;
}

.date{
  font-size: 12px;
  color: rgba(31,36,48,.82);
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(242,166,191,.42);
  box-shadow: 0 6px 18px rgba(31,36,48,.06);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 12px;
}

.brand{
  font-weight: 900;
  letter-spacing:.6px;
  font-size: 13px;
  color: rgba(31,36,48,.94);
  text-transform: uppercase;
  white-space: nowrap; /* prevent ugly wraps; mobile uses menu */
}

/* Desktop nav */
.nav{
  display:flex;
  gap: 10px;
  font-size: 13px;
}
.nav a{
  padding: 7px 10px;
  border-radius: 999px;
  color: rgba(31,36,48,.86);
  border: 1px solid rgba(242,166,191,.28);
  background: rgba(255,255,255,.90);
  text-transform: uppercase;
  letter-spacing: .6px;
  font-weight: 800;
}
.nav a:hover{
  background: rgba(255,214,227,.75);
  border-color: rgba(242,166,191,.55);
}

/* Hamburger button (hidden on desktop) */
.nav-toggle{
  display:none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(242,166,191,.40);
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow2);
  cursor:pointer;
}
.nav-toggle:hover{
  background: rgba(255,214,227,.65);
}
.nav-toggle-lines{
  position: relative;
  display:block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: rgba(31,36,48,.82);
  border-radius: 999px;
}
.nav-toggle-lines::before,
.nav-toggle-lines::after{
  content:"";
  position:absolute;
  left:0;
  width: 18px;
  height: 2px;
  background: rgba(31,36,48,.82);
  border-radius: 999px;
}
.nav-toggle-lines::before{ top: -6px; }
.nav-toggle-lines::after{ top: 6px; }

/* Footer */
.site-footer{
  border-top: 1px solid var(--line);
  margin-top: 70px;
  padding: 26px 0;
  color: rgba(31,36,48,.70);
}
.footer-inner small{
  display:block;
  /*line-height: 1.6;*/
  line-height: 1;
}

/* Back to top */
.to-top{
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  display:grid;
  place-items:center;
  border-radius: 999px;
  border: 1px solid rgba(242,166,191,.42);
  background: rgba(255,255,255,.94);
  color: rgba(31,36,48,.82);
  box-shadow: var(--shadow);
}
.to-top:hover{ background: rgba(255,214,227,.70); }

/* ===== Mobile drawer ===== */
@media (max-width: 720px){
  .nav-toggle{ display:inline-flex; align-items:center; justify-content:center; }
  /* hide inline nav and use drawer */
  .nav{
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    margin: 0 auto;
    width: min(var(--container), calc(100% - 28px));
    display:none;
    flex-direction:column;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(242,166,191,.35);
    background: rgba(255,255,255,.96);
    box-shadow: 0 18px 50px rgba(31,36,48,.12);
  }
  .nav a{
    display:block;
    text-align:center;
    padding: 10px 12px;
  }

  /* open state via body class */
  body.nav-open .nav{ display:flex; }

  /* keep header inner as positioning context */
  .header-inner{ position: relative; }

  .container{ width: min(var(--container), calc(100% - 28px)); }
}