:root {
  color-scheme: dark;
  --background: #080808;
  --surface: #141414;
  --gold: #ffbd45;
  --text: #f8f4ec;
  --muted: #b7b1a7;
  --border: #382a18;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--background); color: var(--text); font-family: "Trebuchet MS", "Noto Sans Telugu", sans-serif; line-height: 1.65; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.container { width: min(1100px, 92%); margin-inline: auto; }
.skip-link { position: absolute; left: 4%; top: -80px; padding: 12px 18px; background: var(--gold); color: var(--background); z-index: 3; }
.skip-link:focus { top: 12px; }
header { position: sticky; top: 0; z-index: 2; background: rgba(8, 8, 8, .97); border-bottom: 1px solid var(--border); }
.navigation { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 18px; }
.brand { font-weight: 900; font-size: 21px; letter-spacing: -.6px; white-space: nowrap; }
.brand span { color: var(--gold); }
nav { display: flex; gap: 8px; flex-wrap: wrap; }
nav a { padding: 8px 11px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; color: var(--muted); }
nav a:hover, nav a[aria-current] { color: var(--gold); border-color: var(--gold); }
.intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: 65px; align-items: center; padding-block: 76px 64px; }
.eyebrow { margin: 0 0 16px; color: var(--gold); font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; font-weight: 700; }
h1, h2, h3 { line-height: 1.15; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 6vw, 72px); font-weight: 400; letter-spacing: -2px; margin: 0 0 24px; }
h1 span { color: var(--gold); font-style: italic; }
.intro-copy { color: var(--muted); max-width: 540px; font-size: 17px; }
.text-link { display: inline-flex; gap: 20px; align-items: center; color: var(--gold); padding-block: 12px; border-bottom: 1px solid var(--border); font-weight: 700; }
.text-link:hover { border-color: var(--gold); }
.recipe { border-left: 2px solid var(--gold); background: var(--surface); padding: 28px; }
.recipe h2 { margin: 0; font-size: 23px; }
.recipe ol { list-style: none; padding: 0; margin: 24px 0; }
.recipe li { display: flex; align-items: baseline; gap: 14px; margin-block: 14px; color: var(--muted); font-size: 14px; }
.recipe li span { color: var(--gold); font-family: Georgia, serif; }
.recipe p[lang] { color: var(--gold); font-size: 14px; margin-bottom: 0; }
.library { border-top: 1px solid var(--border); padding-top: 35px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.section-heading .eyebrow { margin-bottom: 9px; }
h2 { font-size: clamp(25px, 4vw, 34px); margin: 0; }
#result-count { color: var(--muted); font-size: 13px; margin: 0 0 4px; }
.controls { display: grid; grid-template-columns: 1fr 260px; gap: 18px; margin-block: 26px; }
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px; }
input, select { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 13px 15px; background: var(--surface); color: var(--text); min-height: 50px; }
input::placeholder { color: var(--muted); }
.prompt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 26px; }
.prompt-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 27px; transition: border-color .2s; min-width: 0; }
.prompt-card:hover { border-color: #816032; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.category-label { color: var(--gold); font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700; }
.prompt-number { font-family: Georgia, serif; font-size: 23px; color: #c9a36b; }
.prompt-card h3 { font-size: 23px; letter-spacing: -.5px; margin: 0; }
.description { color: var(--muted); font-size: 14px; margin: 12px 0 20px; }
.prompt-text { margin: 0 0 24px; padding: 18px; background: #0c0c0c; border-left: 2px solid var(--border); border-radius: 0 6px 6px 0; color: #d5cec2; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.copy-button { display: flex; justify-content: space-between; gap: 14px; margin-top: auto; width: 100%; padding: 12px 0 0; background: transparent; border: 0; border-top: 1px solid var(--border); color: var(--gold); cursor: pointer; text-align: left; font-weight: 700; }
.copy-button:hover { color: var(--text); }
.copy-button:active { transform: translateY(1px); }
.copy-button:disabled { color: var(--muted); cursor: wait; }
.manual-copy { margin: 12px 0; }
.manual-copy textarea { display: block; width: 100%; min-height: 160px; margin-top: 8px; padding: 12px; resize: vertical; background: #0c0c0c; color: var(--text); border: 1px solid var(--gold); border-radius: 6px; font: inherit; font-size: 14px; }
.empty-state { text-align: center; padding: 48px 20px; border: 1px dashed var(--border); border-radius: 12px; }
.empty-state p { color: var(--muted); }
.primary-button { display: inline-block; padding: 13px 20px; border: 1px solid var(--gold); border-radius: 8px; background: var(--gold); color: #171006; font-weight: 700; cursor: pointer; text-align: center; }
.primary-button:hover { background: #ffd17b; }
.copy-status { color: var(--gold); min-height: 26px; font-size: 14px; }
.closing { display: flex; justify-content: space-between; align-items: center; gap: 30px; border-block: 1px solid var(--border); padding-block: 32px; margin-block: 30px; }
.closing p:not(.eyebrow), .notice { color: var(--muted); }
.closing .primary-button { flex-shrink: 0; }
.notice { font-size: 13px; max-width: 850px; margin-bottom: 40px; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 25px 35px; border-top: 1px solid var(--border); }
footer p, footer > a:last-child { color: var(--muted); font-size: 13px; }
footer > a:last-child:hover { color: var(--gold); }
@media (max-width: 800px) {
  .intro { gap: 28px; grid-template-columns: 1fr; padding-block: 45px; }
  .recipe { max-width: 600px; }
  .navigation { align-items: flex-start; flex-direction: column; gap: 12px; }
  .closing { align-items: flex-start; flex-direction: column; }
  html { scroll-padding-top: 150px; }
}
@media (max-width: 580px) {
  .controls, .prompt-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .prompt-card { padding: 22px; }
  h1 { letter-spacing: -1.5px; }
  nav a { padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .prompt-card { transition: none; }
}
