@font-face {
  font-family: "DM Sans";
  src: url("./assets/dm-sans.woff2") format("woff2");
  font-weight: 400 850;
  font-display: swap;
}

@font-face {
  font-family: Fraunces;
  src: url("./assets/fraunces.woff2") format("woff2");
  font-weight: 600 850;
  font-display: swap;
}

@font-face {
  font-family: Fraunces;
  src: url("./assets/fraunces-italic.woff2") format("woff2");
  font-weight: 600 850;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #19362b;
  --muted: #465a4b;
  --forest: #254f3a;
  --forest-dark: #173a2a;
  --paper: #fcf9ef;
  --cream: #f7f3e7;
  --border: #d9d3be;
  --sage: #e5ebd1;
  --lavender: #eee4f2;
  --peach: #f7e3d3;
  --gold: #efc760;
  --display: Fraunces, Georgia, serif;
  --body: "DM Sans", system-ui, sans-serif;
  --shadow: 0 3px 0 #24392c13;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.55 var(--body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { display: block; max-width: 100%; }
button, textarea, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #993a27; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; }
h1 { font-weight: 780; }
h1:focus, main:focus { outline: none; }
p { overflow-wrap: break-word; }

.site-shell { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid #e8e2d1; }
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font: 750 clamp(1.05rem, 2.5vw, 1.34rem)/1 var(--display);
  text-decoration: none;
}
.park-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: #fbe8a1;
  font: 1.28rem/1 Georgia, serif;
}
.header-nav { display: flex; align-items: center; gap: 6px; }
.nav-link, .park-return {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 750;
  text-decoration: none;
}
.nav-link { padding: 6px 17px; border-radius: 100px; }
.nav-link:hover, .nav-link[aria-current="page"] { background: var(--sage); }
.play-link:hover, .play-link[aria-current="page"] { background: var(--lavender); }
.write-link:hover, .write-link[aria-current="page"] { background: var(--peach); }
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 5;
  transform: translateY(-180%);
  padding: .5rem 1rem;
  border-radius: 8px;
  background: var(--forest);
  color: white;
}
.skip-link:focus { transform: translateY(0); }
.site-main { flex: 1; padding-block: 38px 54px; }
.site-footer { border-top: 1px solid #e8e2d1; }
.footer-inner {
  min-height: 68px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: .9375rem;
}
.footer-inner a { text-underline-offset: .2em; }

.hero {
  display: grid;
  grid-template-columns: .91fr 1.09fr;
  min-height: 460px;
  background: #eaeccf;
  border: 1px solid #d6d8b9;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(32px, 5vw, 70px);
  background: radial-gradient(ellipse at 12% 0%, #f4f0d6, transparent 90%);
}
.hero h1 { font-size: clamp(3.15rem, 6.2vw, 5.85rem); letter-spacing: -.043em; line-height: .97; }
.hero h1 em { color: #3d664d; font-weight: 680; }
.hero p { margin-block: 24px 27px; max-width: 30ch; color: #324b3a; font-size: 1.125rem; }
.hero-picture { position: relative; min-width: 0; background: #b1c6a3; }
.hero-picture img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 58% 53%; }

.button, .studio-exports button, .studio-suggestion button, .studio-copy-fallback button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 19px;
  border: 1px solid var(--forest);
  border-radius: 10px;
  background: var(--forest);
  color: #fffaf0;
  font-weight: 760;
  font-size: 1rem;
  line-height: 1.25;
  text-decoration: none;
  text-align: center;
  transition: background .16s ease, box-shadow .16s ease;
}
.button:hover, .studio-exports .studio-export-primary:not(:disabled):hover { background: var(--forest-dark); }
.button-secondary, .studio-exports button:not(.studio-export-primary), .studio-copy-fallback button {
  background: #fffdf7;
  color: var(--forest);
}
.button-secondary:not(:disabled):hover, .studio-exports button:not(.studio-export-primary):not(:disabled):hover { background: var(--sage); }
.button:disabled, .studio-exports button:disabled {
  background: #ebe9e0;
  color: #535a52;
  border-color: #bbbdb4;
  box-shadow: none;
}

.park-stops { padding-top: 44px; }
.stops-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 18px; flex-wrap: wrap; margin-bottom: 21px; }
.stops-heading h2 { font-size: clamp(2rem, 4.1vw, 2.65rem); letter-spacing: -.04em; }
.stops-heading p { color: var(--muted); }
.stop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.stop-card {
  --card-color: var(--sage);
  --card-border: #c4d0ad;
  display: grid;
  grid-template: auto auto 1fr / 1fr 108px;
  column-gap: 7px;
  padding: 23px;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  background: var(--card-color);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.stop-play { --card-color: var(--lavender); --card-border: #dacee2; }
.stop-write { --card-color: var(--peach); --card-border: #e9cbb7; }
.stop-card:hover { transform: translateY(-3px); box-shadow: 0 7px 0 #24392c13; }
.stop-card h3 { grid-area: 1 / 1; font-size: 2.02rem; letter-spacing: -.035em; margin: 3px 0 8px; }
.stop-card p { grid-area: 2 / 1; font-size: 1rem; color: #3d4c41; line-height: 1.4; }
.stop-action { grid-area: 3 / 1 / 4 / 3; align-self: end; margin-top: 18px; font-size: .9375rem; font-weight: 800; text-decoration: underline; text-underline-offset: .23em; }
.stop-art {
  grid-area: 1 / 2 / 3 / 3;
  display: grid;
  place-items: center;
  min-height: 92px;
  background: center / contain no-repeat;
}
.stop-read .stop-art { background-image: url("./assets/read-spot.png"); }
.stop-play .stop-art { background-image: url("./assets/play-spot.png"); }
.stop-write .stop-art { background-image: url("./assets/write-spot.png"); }
.noscript { padding: 15px; border: 1px solid var(--border); border-radius: 10px; margin-top: 18px; }

.activity-screen { width: min(1010px, 100%); margin-inline: auto; --activity: var(--sage); --accent: #254f3a; }
.play-screen { --activity: var(--lavender); --accent: #51395d; }
.write-screen { --activity: var(--peach); --accent: #75402e; }
.screen-heading {
  padding: 22px clamp(22px, 5vw, 48px) 35px;
  border: 1px solid #d5cfbd;
  border-radius: 24px;
  background: radial-gradient(ellipse at 70% 100%, #ffffff45, transparent 80%), var(--activity);
  margin-bottom: 22px;
}
.park-return { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.screen-heading h1 { font-size: clamp(2.8rem, 6.6vw, 5.05rem); letter-spacing: -.038em; margin: 2px 0 9px; }
.screen-heading p { color: #344a3b; }
.reading-picker, .play-nav, .studio-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.reading-choice, .play-game-button, .studio-format, .play-choice {
  min-height: 46px;
  padding: 8px 15px;
  border-radius: 11px;
  border: 1px solid #c1bead;
  background: #fffdf7;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 760;
  line-height: 1.3;
}
.reading-choice:hover, .play-game-button:hover, .studio-format:hover, .play-choice:hover { background: var(--activity); }
.reading-choice[aria-pressed="true"], .play-game-button[aria-pressed="true"], .studio-format[aria-pressed="true"], .play-choice[aria-pressed="true"] {
  background: var(--accent);
  color: #fffaf0;
  border-color: var(--accent);
}
.reading-layout, .studio-grid { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); gap: 18px; align-items: start; }
.reading-paper, .reading-notes, .play-panel, .studio-editor, .studio-output {
  min-width: 0;
  padding: clamp(21px, 4vw, 34px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fffdf7;
  box-shadow: var(--shadow);
}
.reading-paper {
  position: relative;
  isolation: isolate;
  min-height: 346px;
  background: linear-gradient(155deg, #fffdf7 45%, #e9eedb);
  overflow: hidden;
}
.reading-motif {
  z-index: -1;
  position: absolute;
  right: 19px;
  bottom: 0;
  color: #536f47;
  opacity: .18;
  font: clamp(6rem, 16vw, 10rem)/1 Georgia, serif;
}
.reading-form { margin-bottom: 10px; color: #435c46; font-size: 1rem; font-weight: 800; }
.reading-title, .reading-notes h2, .play-panel h2 {
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  letter-spacing: -.043em;
}
.reading-verse { margin-top: 26px; font: 620 clamp(1.16rem, 2.25vw, 1.55rem)/1.65 var(--display); }
.poem-acrostic-line { display: block; }
.poem-acrostic-line::first-letter { color: #89412d; font-size: 1.18em; font-weight: 850; }
.reading-discovery { margin-top: 20px; border: 1px solid #c6d2b1; border-radius: 10px; background: #edf2e0; }
.reading-discovery summary { min-height: 46px; padding: 10px 13px; cursor: pointer; font-weight: 800; }
.reading-discovery p { padding: 0 13px 13px; }
.reading-revision { margin: 19px 0; }
.reading-revision h3 { font-size: 1.22rem; margin-bottom: 6px; }

.play-panel { padding: clamp(20px, 4vw, 40px); }
.play-panel h2:focus { outline: none; }
.play-prompt { margin: 8px 0 16px; max-width: 58ch; color: var(--muted); }
.play-word { font: 750 clamp(2.05rem, 5vw, 3.3rem)/1.1 var(--display); margin: 12px 0 14px; }
.play-choices, .play-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.play-choices { margin: 10px 0; }
.play-choice { min-width: 75px; }
.play-actions { margin-top: 20px; }
.play-preview {
  padding: 14px 19px;
  margin: 16px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid #dacde2;
  border-radius: 12px;
  background: #f6eff7;
  font: 630 clamp(1.18rem, 3vw, 1.6rem)/1.5 var(--display);
}
.play-feedback { min-height: 1.6em; margin-top: 10px; color: #453551; font-weight: 720; }
.play-senses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.play-fieldset { min-width: 0; border: 1px solid #dbd0dd; border-radius: 12px; margin: 0; padding: 0 12px 8px; }
.play-fieldset legend { padding: 0 5px; font-weight: 800; }

.studio-grid { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); }
.studio-guide {
  padding: 15px 17px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: #f8eddf;
  border: 1px solid #ead9c5;
}
.studio-guide h2 { font-size: 1.27rem; margin-bottom: 6px; }
.studio-guide p { font-size: 1rem; }
.studio-guide .studio-prompt { margin-top: 8px; font-weight: 710; }
.studio-fields { display: grid; gap: 7px; }
.studio-fields label, .studio-preview-label { font-weight: 800; }
.studio-input, .studio-textarea, .studio-copy-fallback textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #9f9c8b;
  border-radius: 9px;
  background: white;
  font-size: 1.0625rem;
}
.studio-input { min-height: 46px; margin-bottom: 7px; }
.studio-textarea, .studio-copy-fallback textarea { resize: vertical; }
.studio-textarea { min-height: 180px; }
.studio-revision { margin-top: 14px; color: var(--muted); font-size: 1rem; }
.studio-suggestion, .studio-copy-fallback {
  padding: 13px;
  border: 1px solid #c6d2b1;
  border-radius: 10px;
  margin-block: 12px;
  background: #edf2e0;
}
.studio-suggestion-line { white-space: pre-wrap; margin: 6px 0 10px; }
.studio-preview {
  padding: clamp(17px, 4vw, 29px);
  margin-block: 12px 18px;
  background: #fbf2e2;
  border: 1px solid #e6d5bc;
  border-left: 4px solid #bc825f;
  border-radius: 10px;
  min-height: 240px;
}
.studio-preview-title { font-size: clamp(1.5rem, 3vw, 2rem); overflow-wrap: anywhere; }
.studio-preview-lines {
  margin-top: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 620 clamp(1.05rem, 2vw, 1.3rem)/1.62 var(--display);
}
.studio-preview-lines.is-empty { font: 1rem/1.5 var(--body); color: var(--muted); }
.studio-exports { display: flex; flex-wrap: wrap; gap: 8px; }
.studio-keep-note { margin-top: 9px; color: var(--muted); font-size: .9375rem; }
.studio-status { min-height: 1.55em; margin-top: 7px; color: #3b5643; font-size: 1rem; }

@media (max-width: 1050px) {
  .site-shell { width: calc(100% - 56px); }
  .hero { min-height: 400px; }
  .hero-copy { padding: 38px; }
  .stop-card { padding: 20px; grid-template-columns: minmax(0, 1fr) 80px; }
}

@media (max-width: 750px) {
  .site-shell { width: calc(100% - 34px); }
  .site-main { padding-block: 24px 40px; }
  .header-inner { min-height: 65px; gap: 4px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 32px 27px; }
  .hero h1 { font-size: clamp(3.14rem, 10vw, 5rem); }
  .hero p { margin: 17px 0 21px; }
  .hero-picture { min-height: 260px; }
  .hero-picture img { object-position: 57% 61%; }
  .park-stops { padding-top: 33px; }
  .stop-grid { gap: 12px; }
  .stop-card { grid-template: auto auto auto 1fr / minmax(0, 1fr); padding: 17px; }
  .stop-card h3 { grid-area: 2 / 1; }
  .stop-card p { grid-area: 3 / 1; }
  .stop-action { grid-area: 4 / 1; margin-top: 12px; }
  .stop-art { grid-area: 1 / 1; justify-self: start; width: 84px; min-height: 74px; }
  .reading-layout, .studio-grid { grid-template-columns: minmax(0, 1fr); }
  .reading-paper { min-height: 290px; }
}

@media (max-width: 470px) {
  .park-mark { width: 28px; height: 28px; flex-basis: 28px; font-size: 1rem; }
  .wordmark { gap: 6px; font-size: clamp(.9rem, 4vw, 1.08rem); }
  .header-nav { gap: 1px; }
  .nav-link { padding-inline: 8px; font-size: .875rem; }
  .hero-picture { min-height: 215px; }
  .stop-grid { grid-template-columns: 1fr; }
  .stop-card { grid-template: auto auto 1fr / 1fr 88px; }
  .stop-card h3 { grid-area: 1 / 1; }
  .stop-card p { grid-area: 2 / 1; }
  .stop-action { grid-area: 3 / 1 / 4 / 3; }
  .stop-art { grid-area: 1 / 2 / 3 / 3; justify-self: end; }
  .play-senses { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; }
}

@media print {
  body:has(.write-screen:not([hidden])) {
    display: block;
    background: #fff;
    color: #000;
  }
  body:has(.write-screen:not([hidden])) :is(.site-header, .site-footer, .skip-link, .screen-heading, .studio-editor, .studio-preview-label, .studio-exports, .studio-keep-note, .studio-status, .studio-copy-fallback) {
    display: none !important;
  }
  body:has(.write-screen:not([hidden])) :is(.site-main, .write-screen, .studio-grid, .studio-output, .studio-preview) {
    display: block;
    width: 100%;
    max-width: unset;
    min-height: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .studio-preview-title { font-size: 22pt; }
  .studio-preview-lines { font-size: 13pt; }
}
