:root {
  --paper: #f2f0e8;
  --ink: #171714;
  --muted: #6c6a62;
  --line: #c9c5b9;
  --tomato: #ef3e2f;
  --tomato-dark: #c9291e;
  --green: #355c3b;
  --mono: "DM Mono", monospace;
  --sans: "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
.noise { position: fixed; inset: 0; pointer-events: none; z-index: 20; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }

.site-header { height: 78px; padding: 0 4vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 900; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 33px; height: 33px; color: var(--paper); background: var(--tomato); border-radius: 50% 47% 52% 45%; font: 500 17px var(--mono); transform: rotate(-5deg); }
nav { display: flex; gap: 36px; font-size: 13px; font-weight: 700; }
nav a { position: relative; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--tomato); transition: right .25s; }
nav a:hover::after { right: 0; }
.header-cta { font: 500 12px var(--mono); border-bottom: 1px solid var(--ink); padding-bottom: 3px; }

.hero { min-height: calc(100svh - 78px); padding: clamp(70px, 10vh, 120px) 4vw 50px; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; position: relative; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow, .section-label { font: 500 11px var(--mono); letter-spacing: .08em; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 34px; }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--tomato); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .25; } }
h1 { margin: 0; font-size: clamp(54px, 7.7vw, 116px); line-height: .98; letter-spacing: -.075em; font-weight: 900; }
h1 em { color: var(--tomato); font-style: normal; }
.hero-intro { width: min(620px, 87%); margin: 38px 0 0 2px; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.9; color: #45433e; }
.hero-actions { margin-top: 38px; display: flex; align-items: center; gap: 28px; }
.button { min-width: 178px; padding: 16px 19px; display: inline-flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-3px); }
.button-dark { color: var(--paper); background: var(--ink); }
.button-dark:hover { background: var(--tomato); }
.text-link { font-size: 13px; border-bottom: 1px solid var(--ink); padding-bottom: 5px; }

.hero-object { min-height: 560px; display: grid; place-items: center; position: relative; }
.tomato { width: clamp(240px, 26vw, 390px); aspect-ratio: 1.05; border-radius: 49% 48% 44% 46%; background: var(--tomato); box-shadow: inset -24px -18px 0 rgba(130, 8, 0, .1), 18px 22px 0 rgba(28,28,20,.05); display: grid; place-items: center; transform: rotate(4deg); position: relative; z-index: 2; animation: float 5s ease-in-out infinite; }
.tomato::after { content: ""; width: 20%; height: 10%; position: absolute; top: 17%; left: 19%; border-radius: 50%; background: rgba(255,255,255,.15); transform: rotate(-30deg); }
.tomato span { color: var(--paper); font: 500 clamp(38px, 5vw, 74px) var(--mono); letter-spacing: -.08em; transform: rotate(-4deg); }
.leaf { width: 34%; height: 20%; background: var(--green); position: absolute; top: -7%; left: 34%; clip-path: polygon(50% 100%, 0 0, 44% 36%, 63% 0, 67% 40%, 100% 18%); z-index: 3; }
.leaf-b { transform: rotate(70deg); top: 0; left: 55%; }
.leaf-c { transform: rotate(-70deg); top: 2%; left: 14%; }
@keyframes float { 50% { transform: rotate(1deg) translateY(-14px); } }
.orbit { position: absolute; border: 1px solid #aaa69a; border-radius: 50%; z-index: 1; }
.orbit-one { width: 83%; height: 43%; transform: rotate(-16deg); }
.orbit-two { width: 55%; height: 88%; transform: rotate(26deg); }
.orbit-one span { position: absolute; right: 3%; top: 5%; padding: 3px 7px; background: var(--paper); font: 10px var(--mono); }
.object-note { position: absolute; font: 10px/1.45 var(--mono); color: var(--muted); }
.note-a { left: 4%; top: 23%; }
.note-b { right: 3%; bottom: 23%; text-align: right; }
.scroll-note { position: absolute; bottom: 25px; left: 4vw; margin: 0; font: 10px var(--mono); color: var(--muted); }
.scroll-note span { margin-left: 8px; color: var(--tomato); }

.ticker { overflow: hidden; color: var(--paper); background: var(--ink); padding: 16px 0; transform: rotate(-1deg) scale(1.01); }
.ticker-track { display: flex; width: max-content; align-items: center; gap: 22px; animation: marquee 22s linear infinite; font-weight: 900; font-size: 15px; }
.ticker i { color: var(--tomato); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { padding: 120px 6vw; }
.section-label { color: var(--muted); margin-bottom: 64px; }
.section-label span { color: var(--tomato); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; }
h2 { margin: 0; font-size: clamp(38px, 5.2vw, 76px); line-height: 1.15; letter-spacing: -.055em; }
.about-copy { padding-top: 8px; max-width: 590px; }
.about-copy p { font-size: 15px; line-height: 1.9; color: #4e4b45; }
.about-copy .lead { color: var(--ink); font-size: 21px; font-weight: 700; line-height: 1.6; margin-top: 0; }
.inline-link { border-bottom: 1px solid var(--ink); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 90px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.principles article { min-height: 275px; padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.card-no { font: 10px var(--mono); color: var(--muted); }
.principles strong { margin-top: auto; font-size: 25px; }
.principles p { min-height: 50px; font-size: 13px; line-height: 1.7; color: var(--muted); margin-bottom: 0; }
.principles .principle-red { background: var(--tomato); color: white; transform: rotate(1.5deg); border: 0; }
.principle-red .card-no, .principle-red p { color: rgba(255,255,255,.75); }

.manifesto { color: var(--paper); background: var(--green); }
.manifesto-grid { display: grid; grid-template-columns: .55fr 1.45fr; gap: 8vw; }
.manifesto-kicker { margin: 10px 0; color: rgba(255,255,255,.55); font: 10px var(--mono); }
.manifesto h2 { max-width: 900px; }
.manifesto h2 + p { max-width: 720px; margin: 45px 0 0; color: rgba(255,255,255,.76); font-size: 17px; line-height: 1.9; }
.manifesto-welcome { margin: 45px 0 0; color: white; font: 500 12px var(--mono); letter-spacing: .08em; }

.doing { background: #e6e2d7; }
.doing-header { display: flex; justify-content: space-between; gap: 50px; align-items: end; }
.doing-header h2 { max-width: 730px; }
.doing-header > p { max-width: 330px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.project-list { margin-top: 80px; border-top: 1px solid #aaa69a; }
.project { display: grid; grid-template-columns: 65px 1.1fr 1fr 50px; align-items: center; gap: 30px; min-height: 145px; border-bottom: 1px solid #aaa69a; transition: padding .25s, color .25s, background .25s; }
.project-link { cursor: pointer; }
.project:hover { padding: 0 18px; background: var(--tomato); color: white; }
.project-index, .project div p { font: 10px var(--mono); color: var(--muted); }
.project:hover .project-index, .project:hover div p, .project:hover .project-desc { color: rgba(255,255,255,.75); }
.project h3 { font-size: 25px; margin: 0 0 7px; }
.project div p { margin: 0; }
.project-desc { max-width: 390px; font-size: 13px; line-height: 1.7; color: #5d5a53; }
.project-arrow { justify-self: end; font-size: 25px; }

.literature { background: var(--paper); }
.literature-header { display: grid; grid-template-columns: 1fr 1fr; gap: 9vw; }
.literature-alias { margin: 0 0 18px; color: var(--muted); font: 10px var(--mono); }
.literature-copy .lead { margin: 5px 0 30px; color: var(--tomato); font-size: 28px; font-weight: 900; line-height: 1.45; }
.literature-copy > p:not(.lead) { color: #4e4b45; font-size: 15px; line-height: 1.9; }
.literature-slogan { margin: 110px 0 65px; font-size: clamp(38px, 6vw, 82px); font-weight: 900; letter-spacing: -.06em; }
.literature-slogan em { color: var(--tomato); font-style: normal; }
.literature-events { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.literature-events article { min-height: 260px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.literature-events span { color: var(--muted); font: 10px var(--mono); }
.literature-events h3 { margin: 75px 0 13px; font-size: 26px; }
.literature-events p { max-width: 550px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.section-more { display: inline-flex; gap: 50px; margin-top: 38px; padding-bottom: 6px; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 700; }

/* M.I.S.T. */
.mist-preview { min-height: 680px; display: grid; grid-template-columns: 1fr 1fr; gap: 7vw; align-items: center; overflow: hidden; color: var(--paper); background: #30323c; }
.mist-preview-mark { font: 500 clamp(70px, 12vw, 185px)/.82 var(--mono); letter-spacing: -.12em; writing-mode: vertical-rl; transform: rotate(180deg); color: rgba(255,255,255,.07); justify-self: center; }
.mist-preview-copy { max-width: 680px; }
.mist-preview-copy h2 { margin-bottom: 35px; }
.mist-preview-copy > p { max-width: 590px; color: rgba(255,255,255,.7); font-size: 15px; line-height: 1.9; }
.mist-preview-copy strong { color: white; }
.mist-body { background: #ecebe6; }
.mist-hero { min-height: 100svh; padding: 130px 6vw 55px; display: flex; flex-direction: column; color: #e8e8df; background: #292b35; position: relative; overflow: hidden; }
.mist-hero::before { content: ""; position: absolute; width: 55vw; height: 55vw; right: -14vw; top: -18vw; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 90px 30px rgba(214,218,202,.07); }
.mist-issue-tag { font: 10px var(--mono); letter-spacing: .1em; color: #b6b9a9; }
.mist-hero h1 { margin-top: auto; font-size: clamp(85px, 20vw, 285px); line-height: .78; letter-spacing: -.115em; color: #e8e8df; position: relative; }
.mist-fullname { margin: 45px 0 0; display: flex; flex-wrap: wrap; gap: 12px 28px; font: 500 clamp(13px, 1.7vw, 23px) var(--mono); color: #b9bdab; }
.mist-fullname span:first-letter { color: #f05a48; }
.mist-hero-footer { margin-top: auto; padding-top: 65px; display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.mist-hero-footer p { margin: 0; font-size: 14px; line-height: 1.7; }
.mist-hero-footer span { font: 9px var(--mono); color: #85887e; }
.mist-about { background: #ecebe6; }
.mist-about em { font-style: normal; font-family: var(--mono); }
.mist-accepts { color: #e8e8df; background: #4b503f; }
.mist-accepts-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.25); border-left: 1px solid rgba(255,255,255,.25); }
.mist-accepts-grid article { min-height: 270px; padding: 25px; border-right: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.25); }
.mist-accepts-grid span { color: #e99386; font: 10px var(--mono); }
.mist-accepts-grid h3 { margin: 90px 0 14px; font-size: 25px; }
.mist-accepts-grid p { margin: 0; color: rgba(255,255,255,.6); font-size: 12px; line-height: 1.75; }
.issues { background: #ecebe6; }
.issues-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.issues-heading p { color: var(--muted); font-size: 13px; }
.issue-empty { min-height: 230px; margin-top: 55px; padding: 30px; display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 30px; border: 1px solid #bab9b2; }
.issue-empty span, .issue-empty p { color: var(--muted); font: 10px var(--mono); }
.issue-empty strong { font-size: clamp(28px, 4vw, 54px); }

/* Archive pages */
.archive-hero { min-height: 78svh; padding: 160px 6vw 80px; display: flex; flex-direction: column; justify-content: center; position: relative; }
.archive-hero > p:last-child { max-width: 580px; margin: 45px 0 0 2px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.activity-hero { background: linear-gradient(115deg, var(--paper) 0 72%, var(--tomato) 72%); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9vw; }
.feature-date { color: var(--muted); font: 10px var(--mono); margin-top: 20px; }
.feature-copy .lead { margin-top: 5px; color: var(--tomato); font-size: clamp(22px, 2.4vw, 34px); font-weight: 900; line-height: 1.5; }
.feature-copy > p:not(.lead) { color: #4e4b45; font-size: 15px; line-height: 1.9; }
.history-table { margin-top: 85px; border-top: 1px solid var(--line); }
.history-table article { min-height: 150px; display: grid; grid-template-columns: 100px 1fr 120px; align-items: center; gap: 35px; border-bottom: 1px solid var(--line); }
.history-table time { color: var(--tomato); font: 500 20px var(--mono); }
.history-table h3 { margin: 0 0 9px; font-size: 22px; }
.history-table p { margin: 0; max-width: 680px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.history-stat { justify-self: end; font: 500 18px var(--mono); }
.white-festival { background: #e7e4dc; }
.poster-grid { margin-top: 90px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.poster-grid figure, .edition figure { margin: 0; }
.poster-grid img, .edition img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
figcaption { padding-top: 12px; color: var(--muted); font: 10px/1.6 var(--mono); }
figcaption span { color: var(--tomato); margin-right: 10px; }
.finance-strip { margin-top: 70px; padding: 30px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; gap: 30px; color: white; background: var(--green); }
.finance-strip div { display: flex; flex-direction: column; gap: 7px; }
.finance-strip span { color: rgba(255,255,255,.6); font: 9px var(--mono); }
.finance-strip strong { font: 500 clamp(30px, 4vw, 54px) var(--mono); }
.finance-strip p { justify-self: end; font: 9px var(--mono); }
.literature-hero { min-height: 82svh; color: white; background: var(--green); }
.literature-hero h1 em { color: #f3a6b4; }
.literature-hero .eyebrow { color: rgba(255,255,255,.7); }
.literature-hero .eyebrow span { background: #f3a6b4; }
.archive-hero-note { margin-top: 55px; display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.archive-hero-note span { font: 10px var(--mono); color: rgba(255,255,255,.6); }
.archive-hero-note p { max-width: 400px; margin: 0; font-size: 15px; line-height: 1.8; }
.literature-about { background: var(--paper); }
.shumiao { background: #e7e4dc; }
.shumiao-title { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.shumiao-title > div p, .shumiao-title > p { color: var(--muted); font: 10px/1.7 var(--mono); }
.shumiao-title > p { max-width: 350px; }
.edition { margin-top: 90px; display: grid; grid-template-columns: .72fr 1.28fr; gap: 6vw; align-items: center; }
.edition-reverse { margin-top: 120px; }
.edition-no, .edition-date, .submission { color: var(--muted); font: 10px/1.7 var(--mono); }
.edition h3 { margin: 18px 0 8px; font-size: clamp(30px, 4vw, 55px); letter-spacing: -.04em; }
.edition-copy > p:not(.edition-date):not(.submission) { margin-top: 32px; color: #4e4b45; font-size: 14px; line-height: 1.8; }
.edition code { padding: 2px 5px; color: white; background: var(--green); font: 11px var(--mono); }
.submission { margin-top: 25px !important; }
.works { margin-top: 75px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.works blockquote { min-height: 160px; margin: 0; padding: 25px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.8; }
.works cite { display: block; margin-top: 26px; color: var(--muted); font: normal 9px var(--mono); }

.quote-section { min-height: 580px; padding: 110px 6vw; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: var(--paper); }
.quote-section p { font-size: clamp(44px, 6vw, 88px); font-weight: 900; line-height: 1.22; letter-spacing: -.06em; margin: 0; }
.quote-section em { color: var(--tomato); font-style: normal; }
.quote-section span { margin-top: 40px; font: 10px var(--mono); color: var(--muted); }

.join { color: var(--paper); background: var(--tomato); display: grid; grid-template-columns: 1.2fr .8fr; gap: 9vw; align-items: end; }
.section-label-light { color: rgba(255,255,255,.65); }
.section-label-light span { color: white; }
.join-copy p { font-size: 17px; line-height: 1.85; max-width: 480px; }
.button-light { background: var(--paper); color: var(--ink); margin-top: 25px; }
.button-light:hover { background: var(--ink); color: var(--paper); }
.join-copy small { display: block; margin-top: 14px; color: rgba(255,255,255,.7); font: 9px var(--mono); }
footer { min-height: 110px; padding: 28px 4vw; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: space-between; gap: 30px; }
footer p { font: 9px var(--mono); color: #9b988e; }
.brand-footer { font-size: 13px; }

@media (max-width: 850px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 65px; }
  .hero-object { min-height: 470px; }
  .scroll-note { display: none; }
  .about-grid, .join { grid-template-columns: 1fr; }
  .manifesto-grid { grid-template-columns: 1fr; gap: 35px; }
  .literature-header { grid-template-columns: 1fr; gap: 45px; }
  .mist-preview { grid-template-columns: .35fr 1.65fr; }
  .mist-accepts-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { gap: 45px; }
  .principles { grid-template-columns: 1fr; }
  .principles article { min-height: 230px; }
  .doing-header { display: block; }
  .literature-events { grid-template-columns: 1fr; }
  .feature-grid, .edition { grid-template-columns: 1fr; }
  .poster-grid { grid-template-columns: 1fr; }
  .works { grid-template-columns: 1fr 1fr; }
  .activity-hero { background: var(--paper); }
  .doing-header > p { margin-top: 30px; }
  .project { grid-template-columns: 42px 1fr 30px; gap: 16px; padding: 25px 0; }
  .project-desc { grid-column: 2 / 4; margin: 0; }
  .project-arrow { grid-column: 3; grid-row: 1; }
  footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .site-header { height: 68px; }
  .header-cta { display: none; }
  .hero { min-height: auto; padding-left: 6vw; padding-right: 6vw; }
  h1 { font-size: 52px; }
  .hero-intro { width: 100%; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-object { min-height: 420px; }
  .tomato { width: 250px; }
  .section { padding: 85px 6vw; }
  .section-label { margin-bottom: 42px; }
  .quote-section { min-height: 440px; }
  .archive-hero { min-height: 660px; padding: 130px 6vw 70px; }
  .archive-hero-note, .shumiao-title { align-items: flex-start; flex-direction: column; }
  .history-table article { grid-template-columns: 70px 1fr; padding: 25px 0; }
  .history-stat { grid-column: 2; justify-self: start; }
  .finance-strip { grid-template-columns: 1fr 1fr; }
  .finance-strip p { grid-column: 1 / -1; justify-self: start; }
  .works { grid-template-columns: 1fr; }
  .mist-preview { grid-template-columns: 1fr; }
  .mist-preview-mark { display: none; }
  .mist-hero-footer, .issues-heading { align-items: flex-start; flex-direction: column; }
  .mist-accepts-grid { grid-template-columns: 1fr; }
  .issue-empty { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Calendar */
.calendar-page { min-height: 100svh; }
.calendar-intro { padding: 145px 6vw 70px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 7vw; align-items: end; }
.calendar-intro h1 { font-size: clamp(58px, 8vw, 116px); }
.calendar-intro-copy { max-width: 440px; }
.calendar-intro-copy p { color: var(--muted); line-height: 1.8; font-size: 14px; }
.data-hint { display: inline-flex; margin-top: 12px; padding: 8px 10px; border: 1px solid var(--line); font: 10px var(--mono); }
.calendar-shell { padding: 0 6vw 120px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 42px; }
.calendar-panel { border: 1px solid var(--line); background: rgba(255,255,255,.22); }
.calendar-toolbar { min-height: 94px; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.calendar-toolbar h2 { font-size: clamp(25px, 3vw, 40px); }
.calendar-controls { display: flex; align-items: center; gap: 8px; }
.calendar-controls button { height: 38px; min-width: 38px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 12px var(--mono); cursor: pointer; }
.calendar-controls button:hover { color: white; border-color: var(--tomato); background: var(--tomato); }
.calendar-controls .today-button { padding: 0 13px; }
.weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.weekdays span { padding: 13px 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font: 10px var(--mono); text-align: center; }
.weekdays span:last-child { border-right: 0; }
.calendar-day { appearance: none; min-width: 0; min-height: 116px; padding: 11px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; cursor: default; position: relative; }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day.other-month { color: #aaa69a; }
.calendar-day.today .day-number { color: white; background: var(--tomato); }
.calendar-day.has-events { cursor: pointer; }
.calendar-day.has-events:hover, .calendar-day.selected { background: #e4dfd3; }
.day-number { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; font: 11px var(--mono); }
.day-events { margin-top: 9px; display: flex; flex-direction: column; gap: 5px; }
.day-event { padding: 4px 6px; overflow: hidden; color: var(--ink); background: #d7d2c6; font: 9px var(--mono); white-space: nowrap; text-overflow: ellipsis; }
.day-event.highlight { color: white; background: var(--tomato); }
.agenda { border-top: 4px solid var(--tomato); }
.agenda-heading { padding: 20px 0; border-bottom: 1px solid var(--line); }
.agenda-heading span { color: var(--tomato); font: 10px var(--mono); }
.agenda-heading h2 { margin-top: 7px; font-size: 28px; }
.agenda-list { display: flex; flex-direction: column; }
.agenda-card { padding: 22px 0; border-bottom: 1px solid var(--line); }
.agenda-card time, .agenda-card .agenda-meta { color: var(--muted); font: 10px var(--mono); }
.agenda-card h3 { margin: 9px 0 8px; font-size: 18px; }
.agenda-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.agenda-empty { padding: 25px 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.calendar-error { margin: 0 6vw 40px; padding: 14px; color: #791b14; background: #f5c6bd; font: 11px/1.6 var(--mono); }

@media (max-width: 900px) {
  .calendar-intro, .calendar-shell { grid-template-columns: 1fr; }
  .calendar-shell { gap: 60px; }
}

@media (max-width: 600px) {
  .calendar-intro { padding: 115px 5vw 55px; }
  .calendar-shell { padding: 0 5vw 80px; }
  .calendar-toolbar { padding: 15px; }
  .calendar-day { min-height: 74px; padding: 5px; }
  .day-event { width: 6px; height: 6px; padding: 0; border-radius: 50%; color: transparent; }
  .day-events { flex-direction: row; gap: 3px; }
  .weekdays span { padding: 10px 2px; }
}
