:root {
  color-scheme: light;
  color: #243e36;
  background: #f7f7ee;
  font: 100%/1.65 Arial, Helvetica, sans-serif;
  --green: #254f46;
  --line: #cdd5c5;
}

* { box-sizing: border-box; }
body { margin: 0 auto; max-width: 73rem; padding: 0 clamp(1rem, 5vw, 3rem); }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; border-radius: 3px; }

.skip { position: absolute; left: 1rem; top: .5rem; transform: translateY(-180%); background: white; padding: .5rem; }
.skip:focus { transform: none; }
.site-header, .site-header nav, footer, .contents { display: flex; align-items: center; flex-wrap: wrap; }
.site-header { min-height: 5rem; justify-content: space-between; gap: .4rem 1.25rem; border-bottom: 1px solid var(--line); }
.site-header nav { gap: clamp(.75rem, 2vw, 1.75rem); }
/* Match the existing game header in src/App.tsx and src/styles.css. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #243e36;
  font: 800 31px/normal Arial, Helvetica, sans-serif;
  font-synthesis: none;
  letter-spacing: -1.6px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-dot { color: #e86643; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #254f46;
}

.brand-mark::before {
  content: "";
  width: 27px;
  height: 27px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6f3b0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 760px) {
  .brand { font-size: 26px; }
  .brand-mark { width: 35px; height: 35px; }
  .brand-mark::before { width: 23px; height: 23px; }
}

@media (max-width: 370px) {
  .brand { gap: 7px; font-size: 23px; }
  .brand-mark { width: 30px; height: 30px; }
}

.site-header nav a, footer a, .contents a { display: inline-flex; align-items: center; min-height: 44px; }
.site-header nav a { font-size: .875rem; text-decoration: none; }
.site-header nav a:hover, .site-header nav [aria-current] { text-decoration: underline; }

main { max-width: 45rem; margin: clamp(2rem, 6vw, 4.5rem) auto; }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; text-wrap: balance; }
h1 { max-width: 17ch; font-size: clamp(2.75rem, 7vw, 4.75rem); line-height: 1.05; letter-spacing: -.052em; margin: 0 0 1rem; }
h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); line-height: 1.2; letter-spacing: -.03em; margin: 0 0 1rem; }
h3, dt { margin: 1.4rem 0 .25rem; font-size: 1.125rem; font-weight: 700; line-height: 1.4; }
p, dd { margin: .6rem 0 1rem; }
.lead { font-size: clamp(1.1rem, 2.4vw, 1.3rem); line-height: 1.55; margin: 0; }
.contents { gap: 0 1.25rem; margin-top: 1.25rem; }
section { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 2rem; scroll-margin-top: 1rem; }
.example { background: #eaf0db; padding: 1.15rem clamp(1rem, 4vw, 1.6rem); margin: 1.35rem 0; border-radius: 1rem; }
.example h3 { margin-top: 0; }
.credit { color: #465e51; font-size: .94rem; }
.play { display: inline-flex; align-items: center; gap: 1.4rem; margin-top: 1rem; padding: .7rem 1.2rem; border-radius: .8rem; color: white; background: var(--green); text-decoration: none; font-weight: 700; }
.play:hover { text-decoration: underline; }
footer { border-top: 1px solid var(--line); gap: 0 1.25rem; padding: .75rem 0 2rem; }
footer a { font-size: .875rem; }
