:root {
  color-scheme: light;
  --ink: #272c22;
  --muted: #555e4e;
  --leaf: #506825;
  --paper: #fffef9;
  --line: #d7dbcb;
  --display: Georgia, "Thonburi", serif;
  background: #faf9f2;
  color: var(--ink);
  font-family: system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; }

.site-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(840px, calc(100% - 32px));
  margin: clamp(12px, 3vw, 32px) auto 0;
  padding: 6px 8px 6px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f3f2e8;
}
.site-nav a { text-decoration: none; }
.site-brand, .site-links a, .play-link { display: inline-flex; min-height: 44px; align-items: center; }
.site-brand img { display: block; width: clamp(78px, 13vw, 130px); height: auto; }
.site-links { display: flex; gap: clamp(10px, 3vw, 32px); font-size: .92rem; }
.site-links a { justify-content: center; padding-inline: .5em; border-radius: 7px; text-align: center; }
.site-links [aria-current="page"] { background: #e0ebcb; }
.site-links a:hover, .site-links [aria-current] { color: var(--leaf); text-decoration: underline; text-underline-offset: .4em; }
.play-link { gap: .65em; border-radius: 9px; padding: 0 .5em 0 .9em; background: #262c22; color: white; font-weight: 650; }
.play-link span { background: #c4de77; color: #29371b; padding: 0 .35em; border-radius: 5px; }
.play-link:hover { background: var(--leaf); }

.home {
  display: flow-root;
  min-height: 100svh;
  background: radial-gradient(ellipse at 50% 34%, #fff4deed, #fff4de9c 22%, transparent 56%),
    #f4e5ca url("./media/payon-dawn.webp") center / cover no-repeat;
}
.welcome {
  text-align: center;
  padding: clamp(36px, 5vw, 76px) 16px 0;
}
.home h1 {
  margin: .22em 0 .15em;
  font: 500 clamp(3rem, 6.2vw, 6rem)/1.18 var(--display);
  letter-spacing: -.035em;
}
.home em { font-style: normal; color: var(--leaf); }
.home .intro p { margin: 0; color: #3e4836; line-height: 1.65; }
.home .intro .admission { display: inline-block; padding: .2em .8em; border-radius: 5px; font-size: .82rem; background: #e9eedb; color: #44572a; }
.handbooks {
  position: relative;
  width: min(860px, calc(100% - 32px));
  margin: clamp(18px, 2vw, 28px) auto 36px;
  text-align: start;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.handbooks a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 6px 22px #36432312;
  text-decoration: none;
}
.handbooks a:hover { border-color: var(--leaf); }
.handbooks strong { display: block; font-size: 1.15rem; }
.handbooks small { display: block; margin-top: 4px; color: var(--muted); }
.handbooks .arrow { color: var(--leaf); font-size: 1.4rem; }
@media (max-width: 580px) {
  .site-nav {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 8px;
    width: calc(100% - 16px);
    padding: 6px 10px 0;
  }
  .site-links {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding-block: 3px;
    border-top: 1px solid var(--line);
    font-size: .9rem;
  }
  .site-links a { padding-inline: 2px; }
  .site-nav .play-link { grid-column: 2; grid-row: 1; }
  .play-link { font-size: .9rem; gap: .35em; }
  .handbooks { grid-template-columns: 1fr; }
}
