:root {
  color-scheme: light;
  --forest: #14372d;
  --forest-light: #204638;
  --ink: #1c2822;
  --muted: #526159;
  --paper: #f7f7f1;
  --white: #fffee9;
  --line: #d6ded4;
  --mint: #e6eee3;
  --accent: #c9e8a7;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, h4, p, ul { margin: 0; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
button { color: inherit; font: inherit; }
:focus-visible { outline: 2px solid #276f4b; outline-offset: 4px; }
[hidden] { display: none !important; }
.page-width { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link { position: absolute; left: 12px; top: 12px; z-index: 5; padding: 10px 14px; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.topbar { border-bottom: 1px solid #e2e6dd; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 72px; }
.wordmark { display: inline-flex; align-items: baseline; gap: .45em; color: var(--forest); font-weight: 800; font-size: 29px; text-decoration: none; padding-block: 6px; }
.wordmark > span { font-size: 15px; font-weight: 550; }
.wordmark > span:first-child { color: #687b70; }
.topbar nav { display: flex; align-items: center; gap: 24px; }
.topbar nav a { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; color: var(--forest); font-size: 14px; font-weight: 650; text-decoration: none; }
.topbar nav a:hover { text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .77fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  min-height: 376px;
  margin-block: 26px 46px;
  padding: clamp(30px, 4.5vw, 60px);
  border-radius: 18px;
  color: #f5f7e9;
  background: var(--forest);
}
.demo-label, .booking-status { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; }
.demo-label { color: var(--accent); }
.demo-label span, .booking-status span { width: 7px; height: 7px; border-radius: 100%; background: currentColor; flex: 0 0 auto; }
.hero h1 { margin-top: 16px; font-size: clamp(2.72rem, 5.3vw, 5rem); font-weight: 800; letter-spacing: -.065em; line-height: 1.12; }
.hero-intro { margin-top: 18px; max-width: 25em; color: #deebde; font-size: clamp(1rem, 1.45vw, 1.15rem); }
.hero-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 26px; min-height: 48px; padding: 9px 16px; border-radius: 5px; background: var(--accent); color: var(--forest); font-size: 14px; font-weight: 750; text-decoration: none; }
.hero-link:hover { background: #def1c9; }
.hero-link:focus-visible { outline-color: var(--white); }
.week-card { min-width: 0; border: 1px solid #527360; border-radius: 12px; padding: clamp(16px, 2.4vw, 30px); background: var(--forest-light); }
.week-card-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; color: #e0eed4; font-size: 13px; }
.week-card-top p { font-weight: 700; }
.week-card-range { margin-top: 6px; font-size: clamp(1.4rem, 2.5vw, 2.15rem); letter-spacing: -.05em; font-weight: 750; font-variant-numeric: tabular-nums; }
.week-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; padding: 0; margin: 14px 0 12px; list-style: none; }
.week-days li { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 57px; border-radius: 4px; background: #315447; color: #f6f7ef; font-variant-numeric: tabular-nums; }
.week-days li.has-work { background: var(--accent); color: var(--forest); }
.week-days .weekday { font-size: 12px; }
.week-days time { font-size: 16px; font-weight: 750; line-height: 1.1; }
.week-card-caption { color: #d5e3d8; font-size: 13px; }

.work-layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(25px, 4.5vw, 62px); align-items: start; }
.agenda, .booking { scroll-margin-top: 22px; }
.section-top, .agenda-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.agenda h2, .booking h2 { color: var(--forest); font-weight: 800; line-height: 1.17; letter-spacing: -.035em; font-size: clamp(1.6rem, 2.9vw, 2.3rem); }
.week-nav { display: flex; gap: 6px; }
.week-nav button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--forest); font-size: 24px; line-height: 1; cursor: pointer; }
.week-nav button:hover:not(:disabled) { background: var(--mint); }
.week-nav button:disabled { opacity: .45; cursor: default; }
.agenda-toolbar { margin-top: 13px; flex-wrap: wrap; }
.agenda-range { color: var(--forest); font-size: 14px; font-weight: 700; }
.view-toggle { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; min-width: 0; margin: 0; padding: 2px; border: 1px solid var(--line); border-radius: 7px; background: var(--mint); }
.view-toggle label { cursor: pointer; position: relative; }
.view-toggle input { position: absolute; inset: 50% auto auto 50%; margin: 0; width: 1px; height: 1px; opacity: 0; }
.view-toggle label span { display: flex; align-items: center; min-height: 44px; padding-inline: 11px; border-radius: 5px; color: var(--forest); font-size: 13px; font-weight: 650; }
.view-toggle input:checked + span { color: #fff; background: var(--forest); }
.view-toggle input:focus-visible + span { outline: 2px solid #276f4b; outline-offset: 3px; }
.view-note { margin-top: 7px; font-size: 13px; color: var(--muted); }
.agenda-block { margin-top: 27px; }
.agenda-block h3 { padding-bottom: 10px; border-bottom: 1px solid #aabaaa; color: var(--forest); font-size: 16px; font-weight: 750; }
.agenda-list, .summary-list { list-style: none; padding: 0; }
.agenda-item { padding-block: 15px; border-bottom: 1px solid var(--line); }
.entry-meta { display: flex; gap: 8px 11px; flex-wrap: wrap; align-items: center; margin-bottom: 7px; }
.category { display: inline-flex; width: fit-content; align-items: center; padding: 3px 8px; border-radius: 4px; background: var(--mint); color: #2d503b; font-size: 12px; font-weight: 700; white-space: nowrap; }
.entry-date { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.entry-body h4 { font-size: 18px; line-height: 1.4; }
.entry-body p, .empty-row, .data-error { margin-top: 4px; color: var(--muted); font-size: 14px; }
.empty-row { padding-block: 10px; }

.booking { padding: clamp(19px, 2.8vw, 32px); border: 1px solid #d5dfd2; border-radius: 12px; background: #edf2e9; }
.booking-status { color: #3d624b; margin-bottom: 10px; }
.booking h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
.booking-intro { margin-block: 8px 18px; color: var(--muted); font-size: 14px; }
.booking details { border: 1px solid #d4e0d4; border-radius: 8px; background: #fff; }
.booking details + details { margin-top: 9px; }
.booking summary { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 12px 13px; min-height: 48px; border-radius: 8px; list-style: none; cursor: pointer; color: var(--forest); font-size: 15px; font-weight: 750; }
.booking summary::-webkit-details-marker { display: none; }
.booking summary:hover { background: #f2f6f0; }
.disclosure-icon { flex: 0 0 auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -4px 4px 0 0; }
details[open] .disclosure-icon { transform: rotate(225deg); margin-top: 4px; }
.booking-content { padding: 0 13px 14px; font-size: 14px; color: #34463b; }
.booking-content ol { margin: 1px 0 0; padding-left: 1.15em; }
.booking-content li + li { margin-top: 5px; }
.booking-note { margin-top: 9px; color: var(--muted); font-size: 13px; }

.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 5px 18px; padding-block: 16px; margin-top: 46px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer p span { padding-inline: 3px; }
.footer a, .author-link { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; color: var(--forest); font-weight: 700; }

.author-page { background: #fbf8ef; }
.author-page .topbar { border-color: #e4dfd3; }
.author-wordmark { color: #26251e; font: 700 27px/1.2 Georgia, serif; letter-spacing: -.04em; }
.author-preview-label, .summary-label { color: #555b48; font-size: 13px; }
.author-main { max-width: 830px; padding-block: clamp(45px, 8vw, 90px); }
.author-heading { padding-bottom: 23px; border-bottom: 1px solid #dad5c7; }
.author-heading h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 790; line-height: 1.2; letter-spacing: -.065em; }
.author-heading p { margin-top: 9px; color: var(--muted); }
.author-agenda { margin-top: 24px; padding: clamp(17px, 4vw, 33px); border: 1px solid #d5dfd0; border-radius: 9px; background: #fcfff7; }
.author-agenda-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 7px 12px; }
.author-agenda h2 { margin-top: 4px; color: var(--forest); font-size: clamp(1.5rem, 4vw, 2.2rem); letter-spacing: -.055em; }
.summary-list { margin-top: 13px; }
.summary-list li { display: grid; grid-template-columns: 5.3em minmax(0, 1fr); align-items: start; gap: 5px 9px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.summary-list .empty-row { display: block; }
.summary-title { font-weight: 650; }
.summary-completed { display: flex; gap: 5px 13px; flex-wrap: wrap; align-items: baseline; margin-top: 16px; font-size: 14px; }
.summary-completed h3 { color: var(--muted); font: inherit; }
.author-link { margin-top: 9px; font-size: 14px; }

@media (max-width: 960px) {
  .page-width { width: calc(100% - 56px); }
  .hero { gap: 28px; }
  .work-layout { gap: 26px; }
}

@media (max-width: 720px) {
  .page-width { width: calc(100% - 32px); }
  .topbar-inner { min-height: 57px; }
  .topbar nav { gap: 15px; }
  .topbar nav .desktop-link { display: none; }
  .wordmark { font-size: 25px; }
  .wordmark > span { font-size: 13px; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 20px; padding: 22px; margin-block: 16px 29px; border-radius: 13px; }
  .hero h1 { margin-top: 10px; }
  .hero-intro { margin-top: 12px; }
  .hero-link { margin-top: 16px; }
  .week-card { padding: 13px; }
  .week-days li { min-height: 44px; }
  .week-days time { font-size: 14px; }
  .week-card-range { font-size: 1.3rem; }
  .work-layout { grid-template-columns: minmax(0, 1fr); gap: 27px; }
  .agenda-block { margin-top: 23px; }
  .footer { margin-top: 30px; }
}

@media (max-width: 370px) {
  .hero h1 { font-size: 2.17rem; }
  .hero { padding: 17px; }
  .week-days { gap: 3px; }
  .agenda-toolbar { gap: 6px; }
  .author-wordmark { font-size: 24px; }
}
