/* Palette stile Anthropic/Claude: pergamena calda, terracotta, neutri caldi. */
:root {
  --testo: #141413;            /* near black caldo */
  --testo-secondario: #5e5d59; /* olive gray */
  --fondo: #f5f4ed;            /* parchment */
  --carta: #faf9f5;            /* ivory */
  --bordo: #e8e6dc;            /* warm sand */
  --accento: #c96442;          /* terracotta */
  --accento-testo: #faf9f5;
  --ok-fondo: #e9ecdd;         /* salvia chiara: valore nel range */
  --fuori: #b53333;            /* crimson caldo: valore fuori range */
  --fuori-fondo: #f6e7e3;
}
@media (prefers-color-scheme: dark) {
  :root {
    --testo: #faf9f5; --testo-secondario: #b0aea5;
    --fondo: #141413; --carta: #262624; --bordo: #3a3937;
    --accento: #c96442; --accento-testo: #faf9f5;
    --ok-fondo: #313a28;
    --fuori: #e08d85; --fuori-fondo: #3a2421;
  }
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, system-ui, sans-serif; font-size: 18px;
       line-height: 1.6; color: var(--testo); background: var(--fondo); }
h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; font-weight: 500; line-height: 1.2; }
header { background: var(--fondo); border-bottom: 1px solid var(--bordo); padding: .7rem 1rem; }
header a { color: var(--testo); text-decoration: none; }
header h1 { font-size: 1.25rem; margin: 0; }
main { padding: 1rem 1rem 3rem; max-width: 600px; margin: 0 auto; }
h2 { font-size: 1.4rem; }
.carta { background: var(--carta); border: 1px solid var(--bordo); border-radius: 12px;
         padding: 1.1rem; margin-bottom: 1rem; box-shadow: rgba(0,0,0,0.05) 0 4px 24px; }
button, .bottone { display: block; width: 100%; padding: 1rem; font-size: 1.1rem; border: none;
  border-radius: 12px; background: var(--accento); color: var(--accento-testo); text-align: center;
  text-decoration: none; cursor: pointer; margin: .5rem 0; font-family: inherit;
  box-shadow: 0 0 0 1px var(--accento); }
button.secondario, .bottone.secondario { background: var(--carta); color: var(--testo);
  border: none; box-shadow: 0 0 0 1px var(--bordo); }
.griglia { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.griglia .bottone { margin: 0; padding: .8rem .4rem; font-size: 1rem; }
input[type=text], input[type=number], input[type=date], input[type=datetime-local], select {
  width: 100%; padding: .8rem; font-size: 1.1rem; border: 1px solid var(--bordo);
  border-radius: 12px; background: var(--carta); color: var(--testo); }
label { display: block; margin: .8rem 0 .3rem; font-weight: 600; }
.spunta { display: flex; gap: .6rem; align-items: flex-start; padding: .7rem;
  border: 1px solid var(--bordo); border-radius: 12px; margin: .4rem 0; background: var(--carta); }
.spunta input[type=checkbox] { width: 1.5rem; height: 1.5rem; margin-top: .2rem;
  accent-color: var(--accento); }
.spunta input[type=radio] { accent-color: var(--accento); }
.spunta small { display: block; opacity: .75; font-weight: 400; }
.spunta label { display: inline-block; margin: .3rem 1.2rem 0 0; font-weight: 400; }
.valore-range { padding: .4rem .8rem; border-radius: 8px; background: var(--ok-fondo);
  display: inline-block; }
.valore-range.fuori { background: var(--fuori-fondo); color: var(--fuori); font-weight: 700; }
.timer-cerchio { font-size: 3rem; text-align: center; margin: 1rem 0; }
.tap-area { height: 40vh; display: flex; align-items: center; justify-content: center;
  background: var(--ok-fondo); border: 1px solid var(--bordo); border-radius: 16px;
  font-size: 1.3rem; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.timeline { list-style: none; padding: 0; }
.timeline li { margin: .5rem 0; }
.muto { color: var(--testo-secondario); font-size: .9rem; }
.passi { text-align: center; color: var(--testo-secondario); margin-bottom: .5rem; }
.grillo { font-size: 2.5rem; text-align: center; margin: 0; }
footer { text-align: center; color: var(--testo-secondario); font-size: .8rem;
  padding: 1.5rem 1rem 2rem; font-family: Georgia, 'Times New Roman', serif; font-style: italic; }
