@charset "UTF-8";

:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #242421;
  background: #f8f7f4;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --red: #df352c;
  --muted: #797871;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
p { margin: 0; }
[hidden] { display: none !important; }

.page {
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 5%;
  display: flex;
  flex-direction: column;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 105px;
  border-bottom: 1px solid #e4e2dc;
  gap: 20px;
}

.wordmark { display: flex; align-items: center; gap: 15px; }
.brand { font-size: 30px; font-weight: 800; letter-spacing: -1.8px; }
.wordmark-divider { font-size: 20px; font-weight: 300; color: #b1afa7; }
.edition { font-size: 15px; letter-spacing: -0.35px; font-weight: 500; padding-top: 3px; }
.collection { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #77766f; }
.collection-dot { height: 6px; width: 6px; border-radius: 50%; background: var(--red); margin-right: 5px; }

main { flex: 1; padding: 58px 0 55px; }
.hero { text-align: center; width: 100%; max-width: 1050px; margin: 0 auto; }
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 1.9px; color: #87857d; margin-bottom: 23px; }
h1 { font-size: clamp(42px, 5.5vw, 76px); line-height: 1.08; font-weight: 650; letter-spacing: -0.055em; margin: 0; }
h1 span { color: var(--red); }
.intro { color: #6d6c65; font-size: 16px; line-height: 1.75; letter-spacing: -0.15px; margin: 23px auto 0; max-width: 760px; }
.categories { padding: 0; margin: 23px 0 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 21px; }
.categories li { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: #56554e; }
.categories li > span { color: var(--red); font-size: 16px; font-weight: 600; }

.random-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  min-width: 224px;
  min-height: 75px;
  margin-top: 27px;
  padding: 18px 30px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #fffaf5;
  background: var(--red);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.6px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 3px 0 #bb2b23, 0 9px 21px -11px #c9493e70;
  transition: background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
.random-button svg { width: 24px; height: 24px; }
.random-button:hover:not([aria-disabled="true"]) { background: #cb2d25; transform: translateY(-2px); box-shadow: 0 5px 0 #ac261f, 0 13px 23px -12px #c9493e70; }
.random-button:active:not([aria-disabled="true"]) { transform: translateY(2px); box-shadow: 0 1px 0 #bb2b23; }
.random-button:focus-visible { outline: 2px solid #242421; outline-offset: 6px; }
.random-button[aria-disabled="true"] { cursor: wait; pointer-events: none; }
.button-note { font-size: 11px; letter-spacing: 0.1px; color: #96948c; margin-top: 22px; }
.error-message { font-size: 13px; color: #a42922; margin-top: 15px; }

.discovery { max-width: 860px; margin: 40px auto 0; padding: 28px; border: 1px solid #e1d6ca; border-radius: 16px; background: #f3eee6; }
.discovery-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.discovery .eyebrow { font-size: 9px; margin-bottom: 9px; color: #a5604d; letter-spacing: 1.4px; }
.discovery h2 { margin: 0; font-size: 26px; letter-spacing: -0.8px; line-height: 1.2; }
.reopen-link { white-space: nowrap; font-size: 12px; text-decoration: none; color: #85574b; }
.reopen-link:hover { text-decoration: underline; }
.discovery-intro { margin-top: 15px; font-size: 13px; line-height: 1.7; color: #746c61; max-width: 640px; }
.discovery details { margin-top: 20px; border: 1px solid #e1d6ca; background: #fffdf9; border-radius: 10px; overflow: hidden; }
.discovery summary { padding: 17px 18px; cursor: pointer; font-size: 14px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.discovery summary::-webkit-details-marker { display: none; }
.discovery summary > span { font-size: 20px; line-height: 16px; color: #9e7161; }
.discovery details[open] summary > span { transform: rotate(45deg); }
.prompt-content { padding: 0 18px 18px; }
.prompt-content label { display: block; padding: 12px 0; border-top: 1px solid #ece5db; font-size: 9px; letter-spacing: 1px; color: #9a8879; }
.prompt-content textarea { display: block; width: 100%; min-height: 190px; max-height: 420px; resize: vertical; padding: 13px; border: 1px solid #e6dfd5; border-radius: 6px; background: #f8f6f2; color: #514a43; font: 12px/1.75 ui-monospace, SFMono-Regular, Consolas, monospace; }
.prompt-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 13px; }
.prompt-actions button { padding: 10px 15px; border: 1px solid #d9cbbd; border-radius: 7px; color: #654b3b; background: #f3ece3; cursor: pointer; font-size: 12px; font-weight: 600; }
.prompt-actions button:hover:not(:disabled) { background: #eadfd1; }
.prompt-actions button:disabled { opacity: 0.5; cursor: wait; }
.prompt-actions p { font-size: 11px; color: #7e7060; }
.discovery-note { font-size: 11px; line-height: 1.65; color: #8b7d6e; margin-top: 15px; }
.discovery :focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.examples { max-width: 1180px; margin: 49px auto 0; }
.examples-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.examples-heading h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.5px; margin: 0; }
.examples-heading p { font-size: 12px; color: #858379; }
.example-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.example-card { padding: 20px; border: 1px solid #e7e3da; border-radius: 14px; display: flex; flex-direction: column; }
.game-card { background: #f2ece2; }
.art-card { background: #efeaf3; }
.quiz-card { background: #f7ebe4; }
.calm-card { background: #eaf0e7; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-bottom: 20px; }
.category-label { font-size: 9px; font-weight: 650; letter-spacing: 0.7px; color: #6d655b; }
.category-symbol { font-size: 25px; line-height: 1; color: #8f7961; }
.art-card .category-symbol { color: #8d70a3; }
.quiz-card .category-symbol { color: #c37657; }
.calm-card .category-symbol { color: #749166; }
.example-card h3 { font-size: 19px; line-height: 1.28; letter-spacing: -0.55px; font-weight: 600; margin: 0 0 11px; }
.example-card > p { font-size: 12px; line-height: 1.7; color: #746f65; margin-bottom: 23px; }
.app-name { margin-top: auto; font-size: 11px; color: #777066; padding-top: 12px; border-top: 1px solid #24242112; }

@media (max-width: 950px) {
  .example-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .desktop-break { display: none; }
}

.footer { min-height: 77px; border-top: 1px solid #e4e2dc; display: flex; justify-content: space-between; align-items: center; gap: 20px; color: #929087; font-size: 11px; }
.footer a { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.footer a:hover { color: #373631; }
.footer a:focus-visible { outline: 2px solid var(--red); outline-offset: 5px; }
.footer strong { font-size: 15px; font-weight: 750; letter-spacing: -0.9px; color: #605e58; }
.footer a > span { font-size: 15px; margin-left: 4px; }

@media (max-width: 600px) {
  .page { padding: 0 24px; }
  .masthead { min-height: 83px; gap: 12px; }
  .wordmark { gap: 11px; }
  .brand { font-size: 27px; }
  .edition { font-size: 13px; }
  .collection { font-size: 10px; }
  .collection-dot { margin-right: 2px; width: 5px; height: 5px; }
  main { padding: 39px 0 36px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.35px; margin-bottom: 21px; }
  h1 { font-size: clamp(33px, 7.8vw, 47px); letter-spacing: -0.055em; }
  .intro { font-size: 14px; line-height: 1.75; margin-top: 19px; }
  .categories { gap: 9px 15px; margin-top: 19px; }
  .categories li { font-size: 11px; }
  .random-button { min-width: 211px; min-height: 70px; font-size: 25px; margin-top: 25px; }
  .button-note { font-size: 10px; }
  .discovery { margin-top: 30px; padding: 19px; }
  .discovery-heading { align-items: flex-start; }
  .discovery h2 { font-size: 22px; }
  .reopen-link { font-size: 10px; padding-top: 3px; }
  .discovery-intro { font-size: 12px; }
  .discovery summary { font-size: 12px; padding: 15px; }
  .prompt-content { padding: 0 14px 14px; }
  .examples { margin-top: 37px; }
  .examples-heading { align-items: flex-start; flex-direction: column; gap: 5px; margin-bottom: 15px; }
  .examples-heading h2 { font-size: 17px; }
  .examples-heading p { font-size: 11px; }
  .example-grid { gap: 10px; }
  .example-card { padding: 15px; border-radius: 12px; }
  .card-top { align-items: flex-start; margin-bottom: 17px; }
  .category-label { font-size: 8px; line-height: 1.5; letter-spacing: 0.5px; }
  .category-symbol { font-size: 20px; }
  .example-card h3 { font-size: 17px; }
  .example-card > p { font-size: 11px; line-height: 1.65; margin-bottom: 16px; }
  .app-name { font-size: 10px; }
  .footer { padding: 23px 0; gap: 17px; min-height: 86px; flex-direction: column; justify-content: center; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .random-button { transition: none; }
}
