:root {
  color-scheme: light;
  --paper: #fbf5e8;
  --ink: #292e1b;
  --olive: #505b28;
  --serif: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  --sans: system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --gutter: clamp(22px, 5.3vw, 86px);
  --line: #66593729;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid #79501d;
  outline-offset: 5px;
}

.shell {
  width: min(calc(100% - var(--gutter) * 2), 1320px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 10;
  inset: 12px auto auto 12px;
  padding: .8rem 1rem;
  transform: translateY(-160%);
  background: var(--paper);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: #f9f2e4;
}

.header-inner {
  min-height: 77px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  color: var(--olive);
  text-decoration: none;
}

.brand img { width: 41px; height: 41px; }

.brand-name {
  display: grid;
  gap: 4px;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: .08em;
  line-height: 1;
}

.brand-name small {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3.2vw, 48px);
  font-size: 14px;
  letter-spacing: .06em;
}

.site-nav a {
  position: relative;
  padding-block: 15px;
  white-space: nowrap;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] { color: var(--olive); }

.site-nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  bottom: 7px;
  inset-inline: 0;
  height: 1px;
  background: var(--olive);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #f9f2e4;
  color: #594f3b;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  column-gap: 44px;
  row-gap: 12px;
  padding-block: 24px 26px;
  font-size: 12px;
  line-height: 1.65;
}

.footer-inner p { margin: 0; }
.footer-inner p + p { margin-top: 5px; }
.footer-brand p:last-child { text-wrap: pretty; }
.footer-name { color: var(--ink); font-size: 13px; font-weight: 675; }
.footer-legal { text-align: right; }
.footer-legal a { text-underline-offset: 3px; text-decoration-color: #7e755e; }
.footer-legal a:hover { color: var(--olive); text-decoration-color: currentColor; }

@media (max-width: 680px) {
  .header-inner { min-height: 66px; }
  .brand img { width: 37px; height: 37px; }
  .brand-name { font-size: 20px; }
  .site-nav { font-size: 13px; }
  .footer-inner { display: grid; padding-block: 22px 24px; }
  .footer-legal { text-align: start; }
}
