.candle-planner { --serif: var(--display); --ease: cubic-bezier(.22,.68,0,1); padding: 62px clamp(22px, 5.5vw, 90px) 76px; background: #e9ded0; color: #4b1827; }
.candle-planner button, .candle-planner input { font-family: inherit; }
.candle-planner .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.cp-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 42px; }
.cp-kicker { margin: 0 0 14px; font-size: 13px; color: #86595d; }
.cp-heading h1 { margin: 0; font-family: var(--serif); font-size: clamp(48px, 5.4vw, 78px); font-weight: 400; line-height: .98; letter-spacing: -.04em; }
.cp-heading > p { max-width: 355px; margin: 0 0 4px; color: #71585b; font-size: 14px; line-height: 1.8; }
.cp-workbench { display: grid; grid-template-columns: minmax(270px, .85fr) minmax(0, 1.3fr); background: #fffaf3; border: 1px solid #cbb3aa; }
.cp-controls { min-width: 0; padding: clamp(24px, 3.5vw, 48px); }
.cp-fieldset { position: relative; min-width: 0; padding: 0; margin: 0 0 29px; border: 0; }
.cp-fieldset:last-child { margin-bottom: 0; }
.cp-fieldset legend { float: none; width: 100%; padding: 0; margin: 0 0 17px; color: #4b1827; font-size: 13px; font-weight: 600; line-height: 1.55; }
.cp-field-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.cp-field-heading > span { font-size: 13px; font-weight: 600; }
.cp-units { display: inline-flex; gap: 2px; padding: 3px; background: #eee2d8; }
.cp-units button { min-height: 32px; padding: 5px 10px; border: 0; background: transparent; color: #876b6c; font-size: 11px; }
.cp-units button[aria-pressed="true"] { background: #fffaf3; color: #4b1827; }
.cp-dimensions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cp-dimensions > label { min-width: 0; color: #71585b; font-size: 12px; }
.cp-input { position: relative; display: block; margin-top: 7px; }
.cp-input input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 52px; padding: 10px 40px 10px 13px; border: 1px solid #cbb3aa; border-radius: 0; background: #fffaf3; color: #4b1827; font-size: 20px; }
.cp-input > span { position: absolute; top: 15px; right: 13px; pointer-events: none; color: #8b6d6e; font-size: 13px; }
.cp-input input[aria-invalid="true"] { border-color: #aa2945; }
.cp-input-note { margin: 8px 0 0; color: #876d6d; font-size: 11px; line-height: 1.65; }
.cp-error { display: block; margin-top: 5px; color: #a12740; font-size: 11px; line-height: 1.5; }
.cp-error[hidden] { display: none; }
.cp-moods { display: grid; gap: 8px; }
.cp-moods button { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 67px; padding: 11px 14px; border: 1px solid #dbc7bb; background: transparent; color: #6f4b54; text-align: left; transition: background-color 160ms ease, border-color 160ms ease; }
.cp-moods button[aria-pressed="true"] { border-color: #4b1827; background: #4b1827; color: #fff4e9; }
.cp-mood-mark { width: 25px; font-size: 27px; line-height: 1; text-align: center; color: #b58873; }
.cp-moods button[aria-pressed="true"] .cp-mood-mark { color: #ecc084; }
.cp-moods strong { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 600; }
.cp-moods small { display: block; color: #8d7375; font-size: 11px; line-height: 1.5; }
.cp-moods button[aria-pressed="true"] small { color: #d9bfc0; }
.cp-mood-check { margin-left: auto; color: #ecc084; opacity: 0; }
.cp-moods button[aria-pressed="true"] .cp-mood-check { opacity: 1; }
.cp-light-types { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.cp-light-types button { min-height: 43px; padding: 8px 6px; border: 1px solid #cbb3aa; background: transparent; color: #7c5b64; font-size: 12px; }
.cp-light-types button[aria-pressed="true"] { border-color: #855365; background: #eee1dd; color: #4b1827; }
.cp-preview-panel { min-width: 0; padding: 25px 28px 30px; background: #2e1b25; color: #fff0de; }
.cp-preview-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; color: #b89c9e; font-size: 10px; }
.cp-preview-meta > span:first-child { color: #ecc084; font-size: 13px; }
.cp-room-stage { position: relative; aspect-ratio: 640 / 420; overflow: hidden; background: #30202a; }
.cp-room-art { display: block; width: 100%; height: 100%; }
.cp-room-wash { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 61%, #e9b06755, transparent 65%); opacity: .65; pointer-events: none; transition: opacity 240ms var(--ease); }
[data-mood="calm"] .cp-room-wash { opacity: .25; }
[data-mood="celebrate"] .cp-room-wash { opacity: 1; }
.cp-candle-lights { position: absolute; inset: 0; pointer-events: none; }
.cp-light { position: absolute; width: 11px; height: 21px; opacity: 0; transform: translate(-50%, -100%); transition: opacity 240ms var(--ease); }
.cp-light.is-lit { opacity: 1; }
.cp-light::before { content: ""; position: absolute; width: 96px; height: 78px; left: 50%; top: 40%; transform: translate(-50%, -50%); background: radial-gradient(ellipse, #ffd9954a 0%, #f0ba6524 30%, transparent 70%); }
.cp-wax { position: absolute; bottom: 0; left: 3px; width: 6px; height: 12px; border-radius: 1px 1px 0 0; background: #f6ddbd; box-shadow: inset -2px 0 #c8a78b; }
.cp-flame { position: absolute; width: 5px; height: 6px; left: 3.5px; bottom: 13px; border-radius: 50%; background: #fff1b8; box-shadow: 0 0 8px 3px #fbc67566; opacity: .92; }
[data-light-type="flame"] .cp-flame { height: 9px; border-radius: 80% 30% 65% 35%; animation: cp-flicker 1.8s ease-in-out infinite alternate; animation-delay: var(--flicker-delay); }
@keyframes cp-flicker { from { opacity: .65; } to { opacity: 1; } }
.cp-scene-note { position: absolute; right: 14px; left: 14px; bottom: 11px; color: #bd9e97; font-size: 9px; line-height: 1.4; text-align: center; }
.cp-result { display: flex; align-items: center; gap: 18px; min-height: 87px; margin-top: 17px; }
.cp-result > strong { min-width: 64px; font-family: var(--serif); font-size: 84px; font-weight: 400; letter-spacing: -.05em; line-height: 1; color: #ecc084; }
.cp-result p { margin: 0 0 6px; color: #fff0de; font-size: 14px; }
.cp-result span { display: block; max-width: 260px; color: #c3a7a8; font-size: 11px; line-height: 1.6; }
.cp-mood-description { max-width: 430px; min-height: 39px; margin: 12px 0 18px; color: #d3b7b7; font-size: 12px; line-height: 1.7; }
.cp-cap-note { color: #ecc084; font-size: 11px; line-height: 1.6; margin: 10px 0; }
.cp-cap-note[hidden] { display: none; }
.cp-explore { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 48px; padding: 12px 17px; border: 1px solid #d1aa88; color: #f6dfc5; font-size: 12px; font-weight: 600; text-decoration: none; }
.cp-explore[aria-disabled="true"] { opacity: .45; cursor: default; }
.cp-notes { display: flex; justify-content: space-between; gap: 34px; margin-top: 19px; font-size: 11px; color: #775f62; line-height: 1.7; }
.cp-notes > p { max-width: 590px; margin: 0; }
.cp-notes details { max-width: 470px; }
.cp-notes summary { min-height: 30px; color: #704853; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.cp-notes details p { margin: 10px 0 0; }
.cp-notes a { text-decoration: underline; text-underline-offset: 3px; }
.cp-is-invalid .cp-room-wash, .cp-is-invalid .cp-light { opacity: 0; }
.cp-is-invalid .cp-result > strong { font-size: 44px; }
.candle-planner button:focus-visible, .candle-planner input:focus-visible, .cp-explore:focus-visible { outline: 2px solid #c1825e; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .cp-moods button:not([aria-pressed="true"]):hover { border-color: #a07376; background: #f3e8df; } .cp-explore:not([aria-disabled="true"]):hover { background: #f6dfc5; color: #4b1827; } }
@media (max-width: 900px) { .cp-heading { gap: 25px; } .cp-heading > p { max-width: 290px; font-size: 13px; } .cp-controls { padding: 26px 22px; } .cp-preview-panel { padding: 24px 19px; } .cp-workbench { grid-template-columns: minmax(250px, .95fr) minmax(0, 1.1fr); } }
@media (max-width: 700px) { .candle-planner { padding-block: 58px 48px; } .cp-heading { display: block; margin-bottom: 27px; } .cp-kicker { font-size: 12px; } .cp-heading h1 { font-size: 58px; } .cp-heading > p { max-width: 420px; margin: 18px 0 0; } .cp-workbench { grid-template-columns: minmax(0, 1fr); } .cp-controls { padding: 25px 22px; } .cp-fieldset { margin-bottom: 23px; } .cp-moods { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .cp-moods button { position: relative; flex-direction: column; justify-content: flex-start; gap: 8px; min-height: 112px; padding: 13px 5px; text-align: center; } .cp-moods small { font-size: 10px; } .cp-moods strong { font-size: 12px; } .cp-mood-check { position: absolute; top: 7px; right: 8px; font-size: 10px; } .cp-preview-panel { padding: 22px 16px 24px; } .cp-result { gap: 15px; } .cp-result > strong { font-size: 76px; } .cp-result p { font-size: 13px; } .cp-preview-meta { font-size: 9px; } .cp-scene-note { font-size: 8px; } .cp-notes { display: block; font-size: 11px; } .cp-notes details { margin-top: 14px; max-width: none; } }
@media (prefers-reduced-motion: reduce) { .cp-light, .cp-room-wash, .cp-moods button { transition: none; } [data-light-type="flame"] .cp-flame { animation: none; } }
