@font-face { font-family: "DM Sans"; src: url(/fonts/dm-sans.woff2) format("woff2"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "DM Serif Text"; src: url(/fonts/dm-serif-text.woff2) format("woff2"); font-weight: 400; font-display: swap; }
/* Hearth brand tokens (marketing/brand/hearth/tokens.css) */
:root {
  --forest: #233b30; --forest-deep: #182a21; --amber: #e8af56; --ivory: #f7f1e6; --sage: #607767;
  --paper: #fffbf3; --line: #d9cfbb; --muted: #4e6257;
  --display: "DM Serif Text", Georgia, serif; --body: "DM Sans", system-ui, sans-serif;
  color-scheme: light; accent-color: var(--forest); font-family: var(--body); color: var(--forest); background: var(--ivory);
}
* { box-sizing: border-box; }
body { margin: 0; }
header { background: var(--ivory); color: var(--forest); border-bottom: 1px solid var(--line); }
.shell { width: min(100% - 2rem, 67rem); margin: auto; }
.top, .heading, .intro, .row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.top { min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: .5rem; font-family: var(--display); font-size: 1.55rem; color: inherit; text-decoration: none; }
.brand img { width: 2.75rem; height: auto; }
.badge { border: 1px solid var(--sage); border-radius: 2rem; padding: .4rem .7rem; font-size: .875rem; }
.intro { padding: 2.75rem clamp(1.25rem, 5vw, 3rem); margin-top: 1.5rem; color: var(--ivory); background: radial-gradient(ellipse at 90% 5%, #3f5a4a, var(--forest) 65%); border-radius: 1.4rem; }
.intro p { margin-bottom: 0; color: #ece5d6; }
.eyebrow { font-size: .875rem; letter-spacing: .13em; font-weight: 650; margin-top: 0; }
h1 { font-family: var(--display); font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 400; margin: .15em 0 0; line-height: 1; }
h2 { font-family: var(--display); font-weight: 400; font-size: 1.75rem; margin: 0; }
.summary { min-width: 7rem; background: var(--forest-deep); border-radius: 1rem; padding: 1rem; text-align: center; }
.summary strong, .summary span { display: block; }
.summary strong { color: var(--amber); font-size: 2rem; }
section { margin: 1.75rem 0; }
.heading { margin-bottom: .75rem; }
.devices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .75rem; }
.card, .row, .empty { background: var(--paper); border: 1px solid var(--line); border-radius: 1rem; padding: 1rem; }
.card { display: grid; gap: .85rem; align-content: start; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.card.sensor { display: flex; justify-content: space-between; align-items: center; }
.value { font-size: 1.35rem; font-weight: 650; white-space: nowrap; }
.pill { border: 1px solid var(--line); border-radius: 2rem; padding: .35rem .75rem; font-size: .875rem; white-space: nowrap; }
.slider { margin: 0; gap: .2rem; }
.slider-head { display: flex; justify-content: space-between; font-size: .875rem; color: var(--muted); }
input[type=range] { width: 100%; padding: 0; min-height: 2rem; border: 0; accent-color: var(--forest); }
.thermostat { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.reading { display: grid; }
.big { font-size: 1.75rem; font-weight: 650; }
.target { min-width: 5.5rem; text-align: center; font-weight: 600; }
.thermostat .buttons button { width: 2.75rem; padding: 0; }
[hidden] { display: none !important; }
.card strong, .row strong { display: block; }
.meta, small { color: var(--muted); font-size: .875rem; }
.list { display: grid; gap: .5rem; }
button, input, select { font: inherit; border-radius: .65rem; border: 1px solid #b9ae98; padding: .55rem .8rem; min-height: 2.75rem; color: var(--forest); background: var(--paper); }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
button { font-weight: 500; }
button.primary, button[aria-pressed=true] { background: var(--amber); border-color: var(--amber); color: var(--forest); font-weight: 700; }
button.dark { background: var(--forest); border-color: var(--forest); color: var(--ivory); }
button:focus-visible, a:focus-visible { outline: 3px solid #a06722; outline-offset: 3px; }
dialog { width: min(100% - 2rem, 34rem); border-radius: 1rem; border: 1px solid var(--line); padding: 1.25rem; color: var(--forest); background: var(--ivory); }
dialog::backdrop { background: #182a21b0; }
label { display: grid; gap: .3rem; margin-bottom: 1rem; }
.action, .buttons { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.action { margin-bottom: .6rem; }
.action select:first-child { flex: 1; min-width: 9rem; }
.action input[type=number] { width: 6rem; }
#status:empty, #form-error:empty { display: none; }
#form-error { color: #9f2c24; }
@media (max-width: 36rem) { .intro { align-items: flex-start; flex-direction: column; padding-block: 1.5rem; } .summary { display: flex; gap: .5rem; align-items: center; padding: .4rem .75rem; } .summary strong { font-size: 1.25rem; } .row { flex-wrap: wrap; } }
.pair { display: flex; gap: .75rem; align-items: end; flex-wrap: wrap; margin-bottom: 1rem; }
.pair label { flex: 1 1 16rem; }
.top-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; align-items: center; }
.integration { border: 1px solid var(--line); background: var(--paper); border-radius: .75rem; padding: 1rem; margin-bottom: 1rem; }
.integration h3 { margin: 0; font-size: 1.05rem; }
.integration .error, .pill.error { color: #a12a1b; }
.pill.warn { color: #8a5a00; border-color: #e0c48a; font-size: .75rem; padding: .15rem .5rem; vertical-align: middle; }
.speak { display: flex; gap: .5rem; flex-wrap: wrap; }
.speak input { flex: 1 1 10rem; min-width: 0; }
.now-playing { margin: 0; }
.check { display: flex; gap: .5rem; align-items: center; }
.check input { width: auto; }
.notice { padding: .75rem 1rem; border-radius: .75rem; background: #efe5d0; }
.problems { background: #fbeee9; color: #7a2414; }
.problems p { margin: .25rem 0; }
pre.command { white-space: pre-wrap; word-break: break-all; background: var(--forest); color: var(--ivory); padding: .75rem; border-radius: .65rem; font-size: .85rem; }
@media (max-width: 36rem) { .brand { font-size: 1.25rem; gap: .35rem; } .brand img { width: 2.1rem; } .top-actions { gap: .35rem; } .top-actions button, .badge { padding-inline: .6rem; font-size: .875rem; } }
