@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #f5f3ed;
  --card: #fffefa;
  --ink: #25362d;
  --muted: #6c7169;
  --green: #356147;
  --green-hover: #254b35;
  --line: #dedfd5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
button, summary { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #9c7436; outline-offset: 5px; }
::selection { background: #d9e7d8; color: #203b29; }
.page-shell { width: min(100% - 64px, 1120px); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; transform: translateY(-180%); padding: 12px 20px; background: var(--ink); color: white; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.site-header { min-height: 105px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 23px; font-weight: 650; letter-spacing: -1px; }
.brand-period { color: var(--green); }
.brand-mark { display: grid; grid-template-columns: repeat(5, 7px); gap: 3px; align-items: center; }
.brand-mark span { width: 7px; height: 18px; border: 1px solid #a7b2a4; border-radius: 2px; }
.brand-mark span:first-child { height: 23px; background: #6e9269; border-color: #6e9269; }
.header-note { color: var(--muted); font-size: 12px; letter-spacing: .02em; }
main { padding-top: 54px; }
.intro { max-width: 570px; text-align: center; margin: 0 auto 31px; }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 19px; font-size: 10px; font-weight: 650; letter-spacing: .15em; color: var(--green); }
.eyebrow > span { width: 6px; height: 6px; background: #7c9d72; border-radius: 50%; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 6vw, 62px); line-height: 1.06; letter-spacing: -.055em; font-weight: 400; }
h1 em { color: #5a7752; font-weight: 400; }
.intro-copy { max-width: 380px; margin: 20px auto 0; color: #626c60; font-size: 14px; line-height: 1.7; }
.starter-card { max-width: 508px; margin: 0 auto; padding: 27px 32px 20px; border: 1px solid #e0e2d7; border-radius: 17px; background: var(--card); box-shadow: 0 4px 8px #283b2310, 0 18px 40px #283b2305; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 26px; }
.card-heading h2 { margin: 0; font-size: 12px; font-weight: 600; }
.card-heading time { font-size: 11px; color: var(--muted); }
.word-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.letter-tile { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; min-width: 0; border: 1px solid #dcded5; border-radius: 7px; color: #b2b6aa; background: #f5f5ef; font-size: clamp(26px, 6.5vw, 39px); line-height: 1; font-weight: 500; }
.word-tiles.is-revealed .letter-tile { color: #28362e; background: #f1f1ea; border-color: #c9cfc2; font-weight: 650; animation: reveal .32s both; }
.word-tiles.is-revealed .letter-tile:nth-child(2) { animation-delay: .04s; }
.word-tiles.is-revealed .letter-tile:nth-child(3) { animation-delay: .08s; }
.word-tiles.is-revealed .letter-tile:nth-child(4) { animation-delay: .12s; }
.word-tiles.is-revealed .letter-tile:nth-child(5) { animation-delay: .16s; }
.status-area { min-height: 85px; padding: 20px 0 16px; text-align: center; }
.status { margin: 0; font-size: 13px; line-height: 1.5; }
.hint-note { margin: 5px 0 0; font-size: 11px; line-height: 1.5; color: var(--muted); }
.status.is-error { color: #8b4c36; }
.button { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 12px 16px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 600; line-height: 1.4; text-decoration: none; transition: background .15s, border-color .15s, transform .15s; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-primary { background: var(--green); color: #fffefa; }
.button-primary:hover { background: var(--green-hover); }
#reveal-button { width: 100%; }
.button-arrow { margin-left: 5px; }
.button svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.button:disabled { cursor: progress; opacity: .7; transform: none; }
.button-secondary { background: transparent; color: var(--ink); border-color: #cdd4c8; }
.button-secondary:hover { background: #f0f2e9; border-color: #aebca7; }
.revealed-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.card-footnote { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 17px 0 0; color: #767d70; font-size: 10px; line-height: 1.5; }
.card-footnote > span { font-size: 13px; }
.explanation { max-width: 508px; margin: 20px auto 0; }
summary { display: flex; align-items: center; justify-content: space-between; list-style: none; padding: 11px 3px; font-size: 12px; color: #5c685a; }
summary::-webkit-details-marker { display: none; }
.details-plus { font-size: 18px; font-weight: 300; transition: transform .15s; }
details[open] .details-plus { transform: rotate(45deg); }
.details-content { padding: 0 3px 4px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.details-content p { margin: 7px 0 12px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 45px; padding: 21px 0 25px; border-top: 1px solid var(--line); color: #73796e; font-size: 10px; }
.site-footer p { margin: 0; line-height: 1.6; }
.noscript-message { max-width: 508px; margin: 20px auto; color: #8b4c36; font-size: 14px; }
@keyframes reveal { from { opacity: .4; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1100px) and (min-height: 920px) {
  main { padding-top: 76px; }
  .intro { margin-bottom: 39px; }
  .site-footer { margin-top: 66px; }
}
@media (max-width: 600px) {
  .page-shell { width: min(100% - 40px, 440px); }
  .site-header { min-height: 80px; }
  .brand { font-size: 21px; }
  .header-note { display: none; }
  main { padding-top: 37px; }
  .intro { margin-bottom: 26px; }
  .eyebrow { font-size: 9px; margin-bottom: 16px; }
  h1 { font-size: clamp(41px, 11vw, 54px); }
  .intro-copy { font-size: 13px; max-width: 300px; margin-top: 18px; }
  .starter-card { padding: 23px 20px 18px; border-radius: 14px; }
  .card-heading { margin-bottom: 23px; }
  .card-heading h2 { font-size: 11px; }
  .card-heading time { font-size: 10px; }
  .word-tiles { gap: 7px; }
  .letter-tile { border-radius: 5px; }
  .status-area { min-height: 86px; padding-top: 19px; }
  .site-footer { margin-top: 30px; display: block; text-align: center; padding: 19px 0 24px; }
  .site-footer p + p { margin-top: 4px; }
}
@media (max-width: 340px) {
  .page-shell { width: calc(100% - 28px); }
  .starter-card { padding-inline: 14px; }
  .button { padding-inline: 10px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
