/* 许振一 · layout clone of maigawara.com chrome (colors from their palette) */
:root {
  --beige: #f3efe7;
  --orange: #ff9966;
  --navy: #324890;
  --sky: #6699cc;
  --pink: #ffafaf;
  --yellow: #ffcc66;
  --green: #009966;
  --mint: #7fccb3;
  --ink: #111111;
  --grey1: #808080;
  --grey2: #d6d6d6;
  --grey3: #404040;
  --rail-w: 88px;
  --font-sans: "Noto Sans SC", "Manrope", system-ui, sans-serif;
  --font-display: "Noto Serif SC", "Noto Sans SC", serif;
  --font-en: "Manrope", "Noto Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--beige);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.35; margin: 0 0 0.6em; }
p { margin: 0 0 1em; }
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: #fff; padding: 8px 12px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ===== Right fixed orange rail ===== */
.rail {
  position: fixed;
  top: 0; right: 0;
  width: var(--rail-w);
  height: 100vh;
  height: 100dvh;
  background: var(--orange);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 16px;
}
.rail-menu {
  appearance: none;
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 8px 14px;
  cursor: pointer;
  line-height: 1;
}
.rail-menu:hover { background: var(--beige); }
.rail-name {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-display);
  font-size: clamp(22px, 3.2vh, 30px);
  font-weight: 700;
  letter-spacing: 0.35em;
  margin: 0;
  color: var(--ink);
}
.rail-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-en);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.2;
  padding: 4px;
}

/* ===== MENU overlay ===== */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(50, 72, 144, 0.96);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: var(--rail-w);
}
.menu-overlay[hidden] { display: none !important; }
.menu-close {
  position: absolute;
  top: 20px;
  right: calc(var(--rail-w) + 24px);
  background: none;
  border: none;
  color: #fff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}
.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
}
.menu-nav a {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-en);
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 500;
  letter-spacing: 0.08em;
}
.menu-nav a small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.45em;
  opacity: 0.75;
  letter-spacing: 0.2em;
  margin-top: 4px;
}
.menu-nav a:hover { color: var(--yellow); }

/* ===== Main canvas (left of rail) ===== */
.canvas {
  margin-right: var(--rail-w);
  min-height: 100vh;
  background: var(--beige);
  /* subtle paper grain */
  background-image:
    radial-gradient(rgba(0,0,0,0.03) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
}

.eyebrow {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--grey3);
  margin: 0 0 10px;
}
.eyebrow.light { color: rgba(255,255,255,0.75); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
  margin-top: 8px;
}
.text-link:hover { opacity: 0.8; }

.arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
}
.arrow-btn.dark { background: var(--ink); margin-top: 12px; }

/* ===== 1. Hero ===== */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-stage {
  position: relative;
  width: min(780px, 88vw);
  aspect-ratio: 1;
}
.hero-art {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}
.hero-ring-text {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.ring-txt {
  fill: var(--ink);
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.28em;
  opacity: 0.45;
}
.ring-txt--sm { font-size: 12px; opacity: 0.35; letter-spacing: 0.35em; }

/* ===== 2. Featured ===== */
.featured {
  position: relative;
  padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 80px) 0;
}
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.featured-copy h2 {
  font-size: clamp(26px, 3.5vw, 40px);
}
.featured-copy p {
  font-size: 15px;
  max-width: 36em;
  color: var(--ink);
}
.featured-panel {
  margin: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 8px 12px 0 rgba(50,72,144,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 520px;
}
.panel-top {
  background: var(--sky);
  color: #fff;
  padding: 28px 24px 0;
  flex: 1.1;
  position: relative;
  min-height: 240px;
}
.panel-kicker {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.06em;
}
.panel-sub {
  font-family: var(--font-en);
  font-size: 13px;
  opacity: 0.85;
  margin: 6px 0 0;
}
.panel-illus {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: 70%;
  height: 140px;
}
.blob {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
}
.blob-a { width: 70px; height: 90px; left: 20%; bottom: 10px; background: #fff; border-radius: 40% 45% 42% 48%; }
.blob-b { width: 78px; height: 100px; left: 42%; bottom: 0; background: var(--navy); border-radius: 48% 40% 45% 42%; }
.blob-c { width: 66px; height: 86px; left: 64%; bottom: 14px; background: #fff; border-radius: 42% 48% 40% 45%; }
.panel-bottom {
  background: #fff;
  padding: 28px 24px 32px;
  position: relative;
  flex: 1;
}
.stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e24b4b;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transform: rotate(-12deg);
  margin-bottom: 16px;
}
.tilt {
  margin: 0 0 8px;
  font-size: 15px;
}
.t1 { transform: rotate(-2deg); font-weight: 600; }
.t2 { transform: rotate(1.5deg); color: var(--grey3); }
.panel-foot {
  margin-top: 20px;
  color: #e24b4b;
  font-weight: 700;
  font-size: 16px;
}
.scallop-bar {
  margin-top: 56px;
  height: 36px;
  background: var(--green);
  clip-path: ellipse(55% 100% at 50% 100%);
  /* fallback serrated via repeating gradient edge */
  mask-image: radial-gradient(circle at 12px 0, #000 12px, transparent 12.5px);
  mask-size: 24px 36px;
  mask-repeat: repeat-x;
  mask-position: top;
  -webkit-mask-image: radial-gradient(circle at 12px 0, #000 12px, transparent 12.5px);
  -webkit-mask-size: 24px 36px;
  -webkit-mask-repeat: repeat-x;
  -webkit-mask-position: top;
}

/* ===== 3. Quote stripe ===== */
.quote-stripe {
  background: var(--pink);
  padding: clamp(48px, 7vw, 80px) clamp(24px, 6vw, 80px);
  margin-right: 0;
}
.quote-stripe blockquote {
  margin: 0 auto;
  max-width: 820px;
  text-align: center;
}
.quote-stripe p {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 36px);
  font-weight: 600;
  margin: 0 0 16px;
  line-height: 1.5;
}
.quote-stripe cite {
  font-style: normal;
  font-size: 14px;
  color: var(--grey3);
}

/* ===== 4. Essay / paper note ===== */
.essay {
  padding: clamp(56px, 9vw, 100px) clamp(24px, 6vw, 80px);
}
.essay-note {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  transform: rotate(-0.6deg);
}
.essay-note h2 { font-size: clamp(24px, 3vw, 32px); }

/* ===== 5. About ===== */
.about {
  padding: 0 0 clamp(64px, 8vw, 96px);
}
.about-portraits {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 40px clamp(16px, 4vw, 40px) 0;
  position: relative;
  background: linear-gradient(180deg, #e8e2d6 0%, var(--beige) 70%);
  overflow: hidden;
}
.portrait {
  width: clamp(140px, 22vw, 220px);
  height: clamp(140px, 22vw, 220px);
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 -12px;
  box-shadow: 0 0 0 10px var(--beige);
  position: relative;
  z-index: 1;
}
.portrait span {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  color: var(--navy);
  font-weight: 700;
}
.p1 { background: #efe8dc; z-index: 3; }
.p2 { background: #e4ddd0; z-index: 2; margin-top: 28px; }
.p3 { background: #ebe4d8; z-index: 1; }
.about-body {
  max-width: 640px;
  margin: 36px auto 0;
  padding: 0 clamp(24px, 5vw, 40px);
  text-align: center;
}
.about-body h2 { font-size: clamp(26px, 3.2vw, 36px); }
.sns-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  font-family: var(--font-en);
  font-size: 14px;
}
.sns-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.sns-dot:hover { background: var(--ink); }

/* ===== 6. Publishing dark band ===== */
.publishing {
  background: var(--navy);
  color: #fff;
  padding: clamp(56px, 8vw, 88px) 0 clamp(64px, 9vw, 100px);
  position: relative;
}
.pub-head {
  max-width: 1100px;
  margin: 0 auto 28px;
  padding: 0 clamp(24px, 5vw, 48px);
  position: relative;
}
.pub-head h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  color: #fff;
  margin: 0;
}
.pub-all {
  position: absolute;
  right: clamp(24px, 5vw, 48px);
  top: 8px;
  color: #fff;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.pub-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 12px clamp(24px, 5vw, 48px) 28px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.pub-track:focus { outline: 2px solid var(--yellow); outline-offset: 4px; }
.pub-card {
  flex: 0 0 min(320px, 78vw);
  scroll-snap-align: start;
  min-height: 380px;
  padding: 28px 24px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--beige);
}
.card-coral { background: #ff7a66; color: #fff; }
.card-coral .card-meta { color: rgba(255,255,255,0.85); }
.card-cream { background: var(--beige); }
.card-sky { background: var(--sky); color: #fff; }
.card-sky .card-meta { color: rgba(255,255,255,0.85); }
.card-pink { background: var(--pink); }
.card-meta {
  writing-mode: horizontal-tb;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--grey3);
  margin: 0 0 16px;
  font-family: var(--font-en);
}
.pub-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}
.pub-card p { font-size: 14px; line-height: 1.7; }
.card-cover {
  height: 160px;
  background: var(--navy);
  border-radius: 8px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mini-mascot {
  width: 72px;
  height: 72px;
  background: var(--navy);
  border: 3px solid #fff;
  border-radius: 42% 48% 45% 50%;
  box-shadow: inset 18px 22px 0 -10px #fff, inset -18px 22px 0 -10px #fff;
  position: relative;
}
.mini-mascot::before,
.mini-mascot::after {
  content: "";
  position: absolute;
  top: 28px;
  width: 8px;
  height: 8px;
  background: var(--ink);
  border-radius: 50%;
}
.mini-mascot::before { left: 20px; }
.mini-mascot::after { right: 20px; }

/* ===== 7. News ===== */
.news {
  padding: clamp(56px, 8vw, 96px) clamp(24px, 6vw, 80px);
  max-width: 900px;
  margin: 0 auto;
}
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 0; }
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(0,0,0,0.12);
}
.news-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(0,0,0,0.12);
}
.news-list time {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--grey1);
  padding-top: 4px;
}
.news-list h3 {
  font-size: 18px;
  margin: 0 0 6px;
}
.news-list p {
  margin: 0;
  font-size: 14px;
  color: var(--grey3);
}

/* ===== Contact ===== */
.contact {
  padding: clamp(48px, 7vw, 80px) clamp(24px, 6vw, 80px) 40px;
  text-align: center;
  background: #ebe5da;
}
.contact h2 { font-size: clamp(26px, 3vw, 34px); }
.contact-mail a {
  font-family: var(--font-en);
  font-size: clamp(20px, 3vw, 28px);
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid var(--navy);
}
.contact-mail a:hover { color: var(--ink); border-color: var(--ink); }
.contact-note { font-size: 13px; color: var(--grey1); }

.site-foot {
  padding: 28px clamp(24px, 5vw, 48px) 40px;
  text-align: center;
  font-size: 12px;
  color: var(--grey1);
  font-family: var(--font-en);
  background: #ebe5da;
}
.site-foot p { margin: 0; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  :root { --rail-w: 64px; }
  .rail-name { font-size: 18px; letter-spacing: 0.28em; }
  .rail-copy { width: 34px; height: 34px; font-size: 6px; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-panel { min-height: 0; }
  .news-list li { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 560px) {
  :root { --rail-w: 52px; }
  .rail { padding: 12px 0 10px; }
  .rail-menu { font-size: 9px; padding: 6px 8px; }
  .hero-stage { width: 92vw; }
  .portrait { margin: 0 -8px; }
  .p2 { margin-top: 16px; }
}
