/* Both palettes use the same readable type and layout. */
:root {
  --muted: #5e6654;
  --rust: #945235;
  --section: #eeeee1;
  --reply: #f4efdf;
  --reply-border: #d8d0bb;
  --reply-rule: #b6b39a70;
  --chip: #e0e5d1;
  --button-bg: #293d32;
  --button-hover: #425543;
  --button-text: #fcf8ee;
  --selection: #d9dfc3;
  --moss: #58644b;
  --ochre: #80603b;
  --blue: #4b6e77;
  --clay: #8c6042;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #18241f;
  --paper-light: #1d2b24;
  --section: #233329;
  --ink: #f1efdf;
  --body: #d0d5c8;
  --muted: #b7c0af;
  --rust: #edba91;
  --line: #52634e;
  --reply: #29382d;
  --reply-border: #56624c;
  --reply-rule: #a0ae8a55;
  --chip: #3d503d;
  --button-bg: #d3dfbf;
  --button-hover: #e8efd9;
  --button-text: #17241c;
  --selection: #4c654c;
  --moss: #bed1a2;
  --ochre: #e2c18a;
  --blue: #b0cfd3;
  --clay: #e4b591;
}

::selection { background: var(--selection); color: var(--ink); }
[hidden] { display: none !important; }
.hero-artwork { display: contents; }
.hero-artwork > source { display: none; }
html:not(.js) .theme-toggle,
html:not(.js) .quest-toggle,
html:not(.js) .reply-paper { display: none; }
.site-header { height: 110px; gap: 28px; }
.wordmark { font-size: 31px; line-height: 1.2; }
.wordmark small {
  display: block;
  font: 500 15px/1.5 var(--sans);
  letter-spacing: 1px;
  margin-top: 5px;
  color: var(--body);
}
.site-header nav { gap: 26px; }
.site-header nav a, .site-footer > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-footer > a { justify-content: flex-end; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex-shrink: 0;
  padding: 10px 13px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper-light);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.3;
}
.theme-toggle:hover { background: var(--section); }
#theme-icon { font-size: 23px; width: 24px; line-height: 1; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  aspect-ratio: auto;
  min-height: 790px;
  padding: 60px max(6%, calc((100% - 1190px)/2)) 90px;
}
.hero-copy {
  width: 100%;
  max-width: 535px;
  margin: 0;
  padding: 24px;
  background: var(--paper);
  box-shadow: 0 0 50px 30px var(--paper);
  z-index: 1;
}
.hero h1 {
  font-size: clamp(76px, 6.4vw, 96px);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -2px;
  white-space: normal;
  margin: 23px 0 26px;
}
.hero-subtitle { font-size: 36px; line-height: 1.2; }
.hero .eyebrow { font-size: 15px; letter-spacing: .7px; gap: 8px; }
.hero .eyebrow .little-star { flex-shrink: 0; }
.hero-aside { font-size: 18px; max-width: none; }
.hero .button { margin-top: 28px; font-size: 17px; min-height: 53px; }
.hero-note { display: block; font-size: 26px; margin: 20px 0 0 9px; max-width: none; }
.hero-art { opacity: 1; object-position: center; }
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  height: auto;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, var(--paper) 4%, transparent 59%);
}
.hero:after { height: 120px; bottom: 0; }
[data-theme="dark"] .hero-art { filter: brightness(.72) saturate(.8); }
.landscape-note {
  color: var(--ink);
  background: var(--paper);
  padding: 6px 13px;
  border-radius: 5px;
  bottom: 25px;
  right: 5%;
  font-size: 24px;
}
.button-primary { background: var(--button-bg); color: var(--button-text); }
.button-primary:hover { background: var(--button-hover); }
.possibilities-section, .possibilities-section:before { background: var(--section); }
.quest { border-color: var(--line); }
.quest.is-selected { border-color: var(--ink); box-shadow: 0 -2px 0 var(--ink); }
.quest h3 {
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.7px;
}
.quest-number { color: var(--muted); font-size: 15px; }
.quest-illustration svg { stroke-width: 1.7; }
.moss { color: var(--moss); }
.ochre { color: var(--ochre); }
.blue { color: var(--blue); }
.clay { color: var(--clay); }
.quest-toggle, .quest-toggle[aria-pressed="true"] { color: var(--ink); }
.toggle-mark { border-color: var(--muted); }
.quest-toggle[aria-pressed="true"] .toggle-mark {
  background: var(--button-bg);
  color: var(--button-text);
  border-color: var(--button-bg);
}
.quest-toggle:hover { color: var(--rust); }
.guild-seal { color: var(--body); border-color: var(--muted); outline-color: var(--line); }
.guild-seal > span { font-size: 15px; }
.guild-seal strong { font-size: 31px; }
.invitation-section { background: var(--paper-light); }
.reply-paper {
  background: var(--reply);
  border-color: var(--reply-border);
  box-shadow: 3px 5px 0 -1px var(--paper), 3px 5px 0 0 var(--reply-border);
}
.wishlist-summary, .reply-bottom > p, .copy-status { color: var(--body); }
.wishlist li { color: var(--ink); background: var(--chip); }
.reply-paper textarea {
  background: repeating-linear-gradient(transparent, transparent 31px, var(--reply-rule) 31px, var(--reply-rule) 32px);
  color: var(--ink);
}
.reply-paper textarea::placeholder { color: var(--muted); }
.wishlist { flex-direction: column; gap: 10px; }
.wishlist li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; }
.wishlist li > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.wishlist-remove {
  flex-shrink: 0;
  min-height: 44px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.has-selections { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
.selection-bar {
  position: fixed;
  z-index: 20;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(620px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-light);
  box-shadow: 0 5px 24px #0002;
  color: var(--ink);
  font-size: 15px;
}
.selection-bar a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 9px 12px;
  border-radius: 4px;
  background: var(--button-bg);
  color: var(--button-text);
  font-size: 16px;
}
.selection-bar a:hover { background: var(--button-hover); }
.selection-bar a:focus-visible { outline-offset: 3px; }
html { scroll-padding-bottom: 110px; }

@media (max-width: 1100px) {
  .site-header { padding: 0 35px; gap: 20px; }
  .site-header nav { font-size: 15px; gap: 20px; }
  .hero { padding-left: 40px; padding-right: 40px; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); }
  .hero-copy { padding: 20px; }
  .hero h1 { font-size: 82px; }
  .hero-subtitle { font-size: 34px; }
  .quest h3 { font-size: 26px; }
}

@media (max-width: 800px) {
  .site-header { height: auto; min-height: 105px; flex-wrap: wrap; padding: 20px 26px; gap: 17px; }
  .site-header nav { order: 3; flex-basis: 100%; justify-content: space-between; margin: 0; }
  .site-header nav a:first-child { display: inline-flex; }
  .wordmark { font-size: 29px; }
  .wordmark small { font-size: 15px; letter-spacing: .5px; }
  .theme-toggle { margin-left: auto; }
  .hero { padding: 48px 30px 95px; min-height: 750px; grid-template-columns: minmax(0, 1fr) minmax(0, .65fr); }
  .hero h1 { font-size: 76px; }
  .hero-subtitle { font-size: 31px; }
  .hero .eyebrow { font-size: 15px; }
  .hero-aside { font-size: 17px; }
  .hero-note { font-size: 25px; }
  .hero-copy { padding: 14px; }
  .quest h3 { font-size: 27px; }
}

@media (max-width: 600px) {
  .site-header { padding: 18px 23px; min-height: 105px; }
  .site-header nav { display: flex; gap: 12px; }
  .wordmark { font-size: 29px; gap: 8px; }
  .wordmark svg { width: 34px; height: 34px; }
  .theme-toggle { padding: 10px 11px; font-size: 15px; gap: 6px; }
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    min-height: 0;
    background: var(--paper);
    overflow: hidden;
  }
  .hero-copy { order: 0; max-width: none; padding: 30px 25px 40px; box-shadow: none; }
  .hero h1 { font-size: 76px; line-height: .96; margin: 22px 0 24px; }
  .hero-subtitle { font-size: 34px; max-width: 380px; }
  .hero .eyebrow { font-size: 15px; letter-spacing: .7px; }
  .hero-aside { font-size: 17px; }
  .hero .button { margin-top: 24px; min-height: 52px; font-size: 17px; }
  .hero-note { margin-top: 20px; font-size: 27px; }
  .hero-art {
    position: relative;
    inset: auto;
    order: 1;
    display: block;
    width: 100%;
    height: 440px;
    object-position: 84% center;
    z-index: 0;
    -webkit-mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent);
    mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent);
  }
  .hero:before, .hero:after { display: none; }
  .landscape-note {
    order: 2;
    position: relative;
    inset: auto;
    margin: -22px 20px 25px;
    z-index: 1;
    text-align: right;
    font-size: 23px;
    padding: 0;
    background: transparent;
  }
  .quest h3 { font-size: 26px; max-width: calc(100% - 65px); letter-spacing: -.5px; }
  .quest-illustration { top: 59px; }
  .quest-number { font-size: 15px; }
  .wildlife-note { font-size: 25px; }
  .reply-paper { transform: none; }
  .site-footer > a { justify-content: center; }
}

@media (max-width: 360px) {
  .site-header { padding: 17px; gap: 12px; }
  .wordmark { font-size: 26px; }
  .wordmark svg { display: none; }
  .wordmark small { font-size: 15px; letter-spacing: .5px; }
  .hero-copy { padding-left: 21px; padding-right: 21px; }
  .hero h1 { font-size: 66px; }
  .hero-subtitle { font-size: 31px; }
  .hero .eyebrow { font-size: 15px; }
  .quest h3 { font-size: 25px; }
}

@media print {
  .theme-toggle, .selection-bar { display: none; }
  .has-selections { padding-bottom: 0; }
  .hero { min-height: 0; }
  .hero-copy { box-shadow: none; }
}

@media (min-width: 601px) {
  [data-theme="dark"] .hero-art {
    -webkit-mask-image: linear-gradient(90deg, transparent 18%, #000 58%);
    mask-image: linear-gradient(90deg, transparent 18%, #000 58%);
  }
}
