.history-header{
  width:min(980px,calc(100% - 32px));
  margin:0 auto;
  padding:48px 0 24px;
}
.history-header h1{
  margin:0;
  font-family:mamelon,"Hiragino Maru Gothic ProN","Yu Gothic",system-ui,sans-serif;
  font-weight:500;
  font-size:clamp(2.3rem,7vw,5rem);
  line-height:1.08;
}
.back-link{
  display:inline-block;
  margin-bottom:34px;
  color:var(--muted);
  text-decoration:none;
  font-weight:800;
}
.back-link:hover{text-decoration:underline}
.history-lead{
  max-width:760px;
  margin:18px 0 0;
  color:var(--muted);
  font-family:mamelon,"Hiragino Maru Gothic ProN","Yu Gothic",system-ui,sans-serif;
  font-weight:300;
  font-size:clamp(1rem,2vw,1.15rem);
}
.history-main{
  width:min(980px,calc(100% - 32px));
  margin:0 auto 70px;
}
.history-note{
  display:flex;
  gap:12px;
  align-items:flex-start;
  margin:0 0 22px;
  padding:16px 18px;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(255,253,248,.78);
}
.history-note p{margin:0;color:var(--muted)}
.history-weeks{
  display:grid;
  gap:26px;
}
.history-week{
  --week-accent:var(--green-deep);
  --week-soft:rgba(255,253,248,.82);
  --week-border:var(--line);
  border:1px solid var(--week-border);
  border-radius:30px;
  padding:22px 20px 20px;
  background:var(--week-soft);
}
.week-1{
  --week-accent:#9a5519;
  --week-soft:linear-gradient(145deg,#fff7e8,#fffdf8);
  --week-border:#e7c79f;
}
.week-2{
  --week-accent:#526d2d;
  --week-soft:linear-gradient(145deg,#f3f8e9,#fffdf8);
  --week-border:#c8d6ad;
}
.week-3{
  --week-accent:#65528b;
  --week-soft:linear-gradient(145deg,#f3effa,#f8fbfc);
  --week-border:#d2c8e7;
}
.week-4{
  --week-accent:#8b5260;
  --week-soft:linear-gradient(145deg,#fff0e8,#fff8f4);
  --week-border:#e6c4bd;
}
.week-header{
  margin:0 0 18px 124px;
}
.week-number{
  margin:0 0 3px;
  color:var(--week-accent);
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.14em;
}
.week-header h2{
  margin:0;
  color:var(--week-accent);
  font-family:mamelon,"Hiragino Maru Gothic ProN","Yu Gothic",system-ui,sans-serif;
  font-size:clamp(1.35rem,3vw,1.8rem);
  font-weight:400;
}
.week-header p:last-child{
  margin:4px 0 0;
  color:var(--muted);
  font-family:mamelon,"Hiragino Maru Gothic ProN","Yu Gothic",system-ui,sans-serif;
  font-weight:300;
}
.timeline{
  position:relative;
  display:grid;
  gap:14px;
}
.timeline:before{
  content:"";
  position:absolute;
  left:92px;
  top:24px;
  bottom:24px;
  width:2px;
  background:var(--week-accent);
  opacity:.28;
}
.history-event{
  position:relative;
  display:grid;
  grid-template-columns:96px minmax(0,1fr);
  gap:28px;
  align-items:start;
}
.history-event time{
  position:relative;
  z-index:1;
  display:grid;
  justify-items:end;
  padding-top:18px;
  color:var(--week-accent);
  font-weight:900;
  line-height:1;
}
.history-event time:after{
  content:"";
  position:absolute;
  right:-3px;
  top:25px;
  width:12px;
  height:12px;
  border:3px solid var(--paper);
  border-radius:50%;
  background:var(--week-accent);
  box-shadow:0 0 0 1px rgba(78,56,42,.14);
}
.history-event time span{font-size:1.08rem}
.history-event time small{
  margin-top:5px;
  color:var(--muted);
  font-size:.65rem;
  letter-spacing:.08em;
}
.event-body{
  border:1px solid color-mix(in srgb,var(--week-accent) 22%,#ffffff);
  border-radius:22px;
  padding:18px 20px;
  background:rgba(255,255,255,.78);
  box-shadow:0 8px 24px rgba(78,56,42,.05);
}
.history-event.featured .event-body{
  border-color:color-mix(in srgb,var(--week-accent) 45%,#ffffff);
  background:rgba(255,255,255,.92);
}
.event-tags{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin-bottom:7px;
}
.event-tag{
  display:inline-flex;
  margin-bottom:7px;
  padding:3px 8px;
  border-radius:999px;
  background:color-mix(in srgb,var(--week-accent) 10%,#ffffff);
  color:var(--week-accent);
  font-size:.65rem;
  font-weight:900;
  letter-spacing:.08em;
}
.event-tags .event-tag{margin-bottom:0}
.event-body h3{
  margin:0;
  color:var(--week-accent);
  font-family:mamelon,"Hiragino Maru Gothic ProN","Yu Gothic",system-ui,sans-serif;
  font-size:clamp(1.2rem,3vw,1.55rem);
  font-weight:400;
}
.event-body p,
.event-list{
  color:var(--muted);
  font-family:mamelon,"Hiragino Maru Gothic ProN","Yu Gothic",system-ui,sans-serif;
  font-weight:300;
}
.event-body p{margin:7px 0 0}
.event-list{
  margin:8px 0 0;
  padding-left:1.25em;
}
.event-list li+li{margin-top:5px}
.history-footer-note{
  margin-top:28px;
  padding:26px;
  border:2px solid var(--cocoa);
  border-radius:28px;
  background:rgba(255,253,248,.78);
}
.history-footer-note h2{
  margin:0;
  font-family:mamelon,"Hiragino Maru Gothic ProN","Yu Gothic",system-ui,sans-serif;
  font-weight:400;
  font-size:clamp(1.6rem,4vw,2.4rem);
}
.history-footer-note p:not(.eyebrow){color:var(--muted)}
@media(max-width:680px){
  .history-header{padding-top:34px}
  .back-link{margin-bottom:26px}
  .history-week{padding:18px 14px 16px;border-radius:24px}
  .week-header{margin:0 0 16px 34px}
  .timeline:before{left:17px}
  .history-event{
    grid-template-columns:1fr;
    gap:6px;
    padding-left:34px;
  }
  .history-event time{
    justify-items:start;
    padding-top:0;
    display:flex;
    gap:7px;
    align-items:baseline;
  }
  .history-event time:after{
    left:-22px;
    right:auto;
    top:4px;
  }
  .history-event time small{margin-top:0}
  .event-body{padding:16px}
}
