@font-face {
  font-family: Fraunces;
  src: url('/css/fonts/fraunces-black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
:root { color-scheme: light; --paper: #fffaf0; --tan: #cc9966; --ink: #281709; --border: #e7cdb1; --orange: #bd4b00; --display: Fraunces, 'Cooper Black', Georgia, serif; }
* { box-sizing: border-box; }
body { margin: 0; background: #c96; color: var(--ink); font-family: Georgia, 'Times New Roman', serif; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
a { color: #994000; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid #80500d; outline-offset: 4px; }
.site-header { background: var(--tan); }
.brand { max-width: 1440px; margin: auto; padding: 16px 36px; display: flex; align-items: center; gap: 22px; }
.mascot { width: clamp(100px, 12vw, 168px); height: auto; flex-shrink: 0; }
.site-name { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(42px, 5.7vw, 81px); line-height: 1.1; letter-spacing: -3px; }
.site-name a { text-decoration: none; color: #160e08; }
.tagline { margin: 9px 0 0; font-family: var(--display); font-size: clamp(15px, 1.7vw, 23px); font-weight: 900; line-height: 1.35; }
.workspace { display: grid; grid-template-columns: minmax(300px, 0.3fr) minmax(0, 0.7fr); gap: 16px; max-width: 1440px; padding: 28px 36px 24px; margin: auto; background: var(--paper); }
.panel { border: 1px solid var(--border); border-radius: 9px; }
.settings { padding: 21px 23px; background: #fbf2e6; }
h2 { font-family: var(--display); font-weight: 900; font-size: clamp(22px, 1.9vw, 26px); letter-spacing: -1px; line-height: 1.2; margin: 0; }
fieldset { border: 0; padding: 0; margin: 24px 0 18px; min-width: 0; }
.quantity-controls { display: grid; grid-template-columns: minmax(72px, .8fr) minmax(0, 1.7fr); gap: 9px; }
.quantity-controls label { display: block; font-size: 13px; margin-bottom: 5px; }
.quantity-controls input, select { width: 100%; height: 42px; background: #fff; border: 1px solid #ccb397; border-radius: 7px; padding: 8px 9px; font-size: 14px; }
.quantity-controls input { font-weight: bold; }
.start-option { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; line-height: 1.5; cursor: pointer; }
.start-option input { width: 22px; height: 22px; accent-color: var(--orange); margin: 0; flex-shrink: 0; cursor: pointer; }
.generate-button { margin-top: 20px; width: 100%; border: 1px solid var(--orange); border-radius: 8px; background: var(--orange); color: #fffaf0; padding: 12px 8px; font-family: var(--display); font-weight: 900; font-size: 19px; }
.generate-button:hover { background: #a64100; }
.generate-button:active { transform: translateY(1px); }
.output { display: flex; flex-direction: column; padding: 17px 12px 9px; background: #fff; min-width: 0; }
.output-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 10px 16px; }
.output-toolbar h2 { font-size: clamp(20px, 1.75vw, 24px); }
.copy-button { display: inline-flex; gap: 8px; align-items: center; justify-content: center; white-space: nowrap; border: 1px solid var(--border); border-radius: 8px; background: #fcf4e9; padding: 9px 12px; font-size: 14px; }
.copy-button svg { width: 20px; height: 20px; }
.copy-button:hover { background: #f3e4d0; }
.copy-button:disabled { cursor: wait; opacity: .6; }
textarea { display: block; width: 100%; flex: 1; min-height: 320px; resize: vertical; border: 1px solid #eee0d0; border-radius: 9px; padding: 21px 18px; font-size: 15px; line-height: 1.6; background: #fff; }
.status { min-height: 18px; font: 11px/1.5 Arial, sans-serif; margin: 8px 14px 0; color: #715137; }
footer.container-fluid { background: #c96; padding: 20px 30px 28px; color: #44311e; font: 13px/1.5 Helvetica, Arial, sans-serif; text-align: center; }
footer p { margin: 4px 0; }
footer a, footer a:visited { color: #823700; }
footer a:hover { color: #44311e; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -80px; padding: 10px 15px; background: white; z-index: 5; }
.skip-link:focus { top: 10px; }
@media (max-width: 1050px) {
  .brand { padding: 24px 28px; gap: 20px; }
  .site-name { letter-spacing: -2px; }
  .workspace { padding: 28px; grid-template-columns: 280px minmax(0, 1fr); }
  .settings { padding: 24px 20px; }
  .output-toolbar { flex-wrap: wrap; padding: 0 4px 18px; }
  textarea { padding: 20px; font-size: 17px; }
}
@media (max-width: 760px) {
  .brand { padding: 24px 20px; gap: 14px; }
  .mascot { width: 100px; }
  .site-name { font-size: clamp(33px, 7vw, 52px); letter-spacing: -1.5px; }
  .tagline { font-size: 15px; margin-top: 7px; }
  .workspace { grid-template-columns: minmax(0, 1fr); padding: 24px 18px; gap: 20px; }
  .settings { padding: 24px; }
  h2 { font-size: 25px; }
  fieldset { margin: 22px 0; }
  .quantity-controls { grid-template-columns: minmax(80px, 1fr) minmax(0, 2fr); }
  .generate-button { font-size: 23px; margin-top: 22px; }
  .output-toolbar { gap: 12px; }
  .output-toolbar h2 { font-size: 23px; }
  .copy-button { padding: 10px 12px; font-size: 14px; }
  textarea { min-height: 400px; font-size: 16px; }
  footer.container-fluid { padding-left: 20px; padding-right: 20px; }
}
@media (prefers-reduced-motion: reduce) { .generate-button:active { transform: none; } }
