Spaces:
Running
Running
File size: 16,732 Bytes
5d399f2 2d6b5ef 5d399f2 2d6b5ef 5d399f2 2d6b5ef 5d399f2 2d6b5ef 5d399f2 2d6b5ef 5d399f2 2d6b5ef 5d399f2 2d6b5ef 5d399f2 2d6b5ef 5d399f2 2d6b5ef | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 | /*!
* Cold Plunge Timer — styles
* (c) 2026 DIVELUX Inc. MIT License. https://diveluxsaunahat.com
* Mobile first. Light paper, dark ink, one ember accent.
*/
.dvx {
--paper: #f6f3ee;
--card: #fffdf9;
--ink: #1c110b;
--ink-2: #4a3a30;
--muted: #66564b;
--line: #d9cfc1;
--wood-dark: #2a1b13;
--wood: #7a4e2d;
--wood-soft: #c99b6c;
--rest: #e9dfd0;
--ember: #f0762e;
--spruce: #1d5c45;
--r: 6px;
--display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
--text: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
html { background: #f6f3ee; -webkit-text-size-adjust: 100%; }
body.dvx { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 16px; line-height: 1.55; }
.dvx *, .dvx *::before, .dvx *::after { box-sizing: border-box; }
:where(.dvx) :where(h1, h2, h3, p, ul, ol, dl, dd, dt, fieldset, legend) { margin: 0; padding: 0; border: 0; min-width: 0; }
:where(.dvx) :where(input, button, select, output) { font: inherit; color: inherit; }
.dvx a { color: var(--spruce); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.dvx a:hover { text-decoration-thickness: 2px; }
.dvx :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
.dvx [hidden] { display: none !important; }
.dvx-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dvx-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.dvx-skip { position: absolute; left: -999px; top: 8px; padding: 10px 14px; background: var(--ink); color: #fff !important; border-radius: var(--r); z-index: 5; }
.dvx-skip:focus { left: 8px; }
/* ---------- page chrome ---------- */
.dvx-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.dvx-bar img { display: block; width: 128px; height: auto; }
.dvx-bar a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.dvx-hero { padding-top: 24px; padding-bottom: 28px; }
.dvx h1 { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 7vw + 12px, 88px); line-height: .98; letter-spacing: -0.03em; max-width: 12ch; }
.dvx-lead { margin-top: 16px; font-size: clamp(17px, .5vw + 15px, 20px); line-height: 1.5; color: var(--ink-2); max-width: 50ch; }
.dvx-h { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.2vw + 16px, 34px); line-height: 1.12; letter-spacing: -0.015em; margin-bottom: 12px; }
.dvx-h--s { font-size: clamp(20px, 1vw + 17px, 24px); }
.dvx-kicker { font-size: 14px; line-height: 1.3; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
/* ---------- tool layout ---------- */
.dvx-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 8px; padding-bottom: 40px; }
.dvx-form { display: grid; gap: 24px; align-content: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; min-width: 0; }
.dvx-out { display: grid; gap: 24px; align-content: start; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.dvx-out > *, .dvx-top > * { min-width: 0; }
.dvx-field { display: block; min-width: 0; }
.dvx-label { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink); margin-bottom: 10px; }
.dvx-hint { font-size: 14px; line-height: 1.45; color: var(--muted); margin-top: 8px; }
.dvx-err { font-size: 14px; line-height: 1.45; color: #8a2a12; margin-top: 8px; font-weight: 500; }
/* segmented radios + chips */
.dvx-segs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.dvx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dvx-seg, .dvx-chip { position: relative; display: block; margin: 0; cursor: pointer; min-width: 0; }
.dvx-seg input, .dvx-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.dvx-seg span, .dvx-chip span {
display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px;
border: 1px solid var(--line); background: #fff; font-size: 15px; font-weight: 500; line-height: 1.2; color: var(--ink-2); text-align: center;
transition: background-color .15s, color .15s, border-color .15s;
}
.dvx-chip span { border-radius: var(--r); padding: 8px 14px; font-variant-numeric: tabular-nums; }
.dvx-seg + .dvx-seg span { border-left-width: 0; }
.dvx-seg:first-child span { border-radius: var(--r) 0 0 var(--r); }
.dvx-seg:last-child span { border-radius: 0 var(--r) var(--r) 0; }
.dvx-seg:hover span, .dvx-chip:hover span { border-color: var(--ink-2); }
.dvx-seg input:checked + span, .dvx-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.dvx-seg input:focus-visible + span, .dvx-chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
/* number inputs */
.dvx-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 12px; }
.dvx-num { display: block; min-width: 0; margin: 0; }
.dvx-num > span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; line-height: 1.3; }
.dvx-inp { position: relative; display: flex; align-items: stretch; }
.dvx-inp input {
width: 100%; min-width: 0; min-height: 48px; padding: 8px 12px; margin: 0; border: 1px solid var(--ink-2); border-radius: var(--r);
background: #fff; font-family: var(--display); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums;
-moz-appearance: textfield; appearance: textfield;
}
.dvx-inp input::-webkit-outer-spin-button, .dvx-inp input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dvx-inp input[aria-invalid="true"] { border-color: #8a2a12; box-shadow: inset 0 0 0 1px #8a2a12; }
.dvx-inp i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 14px; color: var(--muted); pointer-events: none; }
.dvx-inp--u input { padding-right: 52px; }
.dvx-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dvx-check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 0; font-size: 15px; line-height: 1.4; color: var(--ink-2); cursor: pointer; }
.dvx-check input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); flex: none; }
/* range */
.dvx-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 0; padding: 0; background: transparent; border: 0; cursor: pointer; }
.dvx-range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--line); }
.dvx-range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
.dvx-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: var(--ink); border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--ink); }
.dvx-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--ink); }
.dvx-range:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; border-radius: var(--r); }
.dvx-ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: -4px; font-variant-numeric: tabular-nums; }
.dvx-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dvx-row .dvx-label { margin-bottom: 0; }
.dvx-row output { font-family: var(--display); font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* ---------- results ---------- */
.dvx-headline { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 6vw + 12px, 60px); line-height: 1.02; letter-spacing: -0.025em; max-width: 14ch; text-wrap: balance; font-variant-numeric: tabular-nums; }
.dvx-sub { font-size: 17px; line-height: 1.5; color: var(--ink-2); margin-top: 12px; max-width: 50ch; }
.dvx-stats { display: grid; grid-template-columns: 1fr 1fr; margin-top: 24px; border-top: 2px solid var(--ink); }
.dvx-stat { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.dvx-stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.dvx-stat dt { font-size: 13px; color: var(--muted); line-height: 1.3; }
.dvx-stat dd { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.15; letter-spacing: -0.01em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.dvx-stat dd small { display: block; font-family: var(--text); font-size: 13px; font-weight: 400; letter-spacing: 0; line-height: 1.35; color: var(--muted); margin-top: 3px; }
.dvx-list { margin: 12px 0; border-top: 1px solid var(--line); list-style: none; }
.dvx-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.dvx-list li strong { color: var(--ink); }
.dvx-callout { padding: 14px 16px; border-left: 3px solid var(--ink); background: var(--card); font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 68ch; }
.dvx-callout strong { color: var(--ink); font-weight: 700; }
.dvx-callout--warn { border-left-color: var(--ember); font-size: 16px; }
.dvx-btn {
display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 20px; margin: 0;
border: 1px solid var(--ink); border-radius: var(--r); background: transparent; color: var(--ink);
font-family: var(--display); font-size: 16px; font-weight: 700; line-height: 1.2; cursor: pointer; text-decoration: none;
transition: background-color .15s, color .15s, transform .15s;
}
.dvx-btn:hover { background: var(--ink); color: #fff; }
.dvx-btn:active { transform: translateY(1px); }
.dvx-btn--go { background: var(--ember); border-color: var(--ember); color: var(--ink); min-width: 132px; }
.dvx-btn--go:hover { background: #ff8a45; border-color: #ff8a45; color: var(--ink); }
.dvx-btn[disabled] { opacity: .45; cursor: default; }
.dvx-btn[disabled]:hover { background: transparent; color: var(--ink); }
.dvx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dvx-status { font-size: 14px; color: var(--ink-2); }
/* tables */
.dvx-scroll { overflow-x: auto; margin: 20px 0 8px; -webkit-overflow-scrolling: touch; }
.dvx table { border-collapse: collapse; width: 100%; font-size: 15px; font-variant-numeric: tabular-nums; }
.dvx caption { text-align: left; font-size: 14px; color: var(--muted); padding-bottom: 8px; }
.dvx th, .dvx td { text-align: left; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.dvx thead th { border-top: 2px solid var(--ink); font-weight: 600; font-size: 14px; }
.dvx tbody th { font-weight: 600; }
/* ---------- method + footer ---------- */
.dvx-method { border-top: 1px solid var(--line); padding-top: 48px; padding-bottom: 56px; }
.dvx-method p, .dvx-method li { font-size: 16px; color: var(--ink-2); max-width: 68ch; }
.dvx-method p + p { margin-top: 12px; }
.dvx-method ol, .dvx-method ul.dvx-plain { padding-left: 20px; margin: 16px 0; }
.dvx-method li { margin-top: 8px; }
.dvx-method h3 { font-family: var(--display); font-size: 20px; line-height: 1.2; margin: 32px 0 8px; }
.dvx-method .dvx-callout { margin-top: 24px; }
.dvx-foot { background: var(--ink); color: #e9dccb; padding: 32px 0 40px; font-size: 15px; }
.dvx-foot p { margin: 0 0 8px; max-width: 68ch; }
.dvx-foot a { color: #fff; }
.dvx-foot a:focus-visible { outline-color: #fff; }
.dvx-foot strong { color: #fff; font-family: var(--display); font-size: 18px; }
@media (min-width: 640px) {
.dvx-form { padding: 28px; }
.dvx-stats { grid-template-columns: repeat(4, 1fr); }
.dvx-stat { padding-left: 16px; border-left: 1px solid var(--line); }
.dvx-stat:first-child { padding-left: 0; border-left: 0; }
}
@media (min-width: 900px) {
.dvx-hero { padding-top: 40px; padding-bottom: 48px; }
.dvx-top { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 56px; padding-bottom: 64px; }
.dvx-out { gap: 40px; }
.dvx-form { position: sticky; top: 20px; align-self: start; }
}
@media (prefers-reduced-motion: reduce) {
.dvx *, .dvx *::before, .dvx *::after { transition: none !important; animation: none !important; }
}
/* ---------- cold plunge timer ---------- */
.cpt-band { background: var(--wood-dark); color: #f6efe6; padding: 32px 0 36px; }
.cpt-band :focus-visible { outline-color: #fff; }
.cpt-band-in { display: grid; gap: 24px; justify-items: center; text-align: center; }
.cpt-pick { width: 100%; }
.cpt-legend { font-size: 15px; font-weight: 600; color: #e9dccb; margin: 0 auto 12px; padding: 0; }
.cpt-pick .dvx-chips { justify-content: center; }
.cpt-band .dvx-chip span { background: transparent; border-color: rgba(255, 255, 255, .28); color: #f6efe6; min-width: 64px; font-family: var(--display); font-weight: 700; font-size: 17px; }
.cpt-band .dvx-chip:hover span { border-color: #fff; }
.cpt-band .dvx-chip input:checked + span { background: #f6efe6; border-color: #f6efe6; color: var(--ink); }
.cpt-band .dvx-chip input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.cpt-band .dvx-chip input:disabled { cursor: default; }
.cpt-band .dvx-chip input:disabled + span { opacity: .4; }
.cpt-band .dvx-chip input:disabled:checked + span { opacity: 1; }
.cpt-stage { width: 100%; }
.cpt-phase { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2vw + 14px, 30px); line-height: 1.2; color: #fff; }
.cpt-clock { font-family: var(--display); font-weight: 700; font-size: clamp(112px, 38vw, 300px); line-height: .92; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: #fff; margin: 8px 0 12px; }
.cpt-track { height: 8px; max-width: 560px; margin: 0 auto; border-radius: 4px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.cpt-track i { display: block; height: 100%; width: 0; background: var(--ember); border-radius: 4px; transition: width .2s linear; }
.cpt-next { font-size: 16px; line-height: 1.45; color: #e9dccb; margin-top: 14px; max-width: 44ch; margin-left: auto; margin-right: auto; min-height: 2.9em; }
.cpt-btns { display: grid; gap: 10px; width: 100%; max-width: 420px; }
.cpt-btns .dvx-btn { min-height: 64px; font-size: 22px; }
.cpt-band .cpt-line { border-color: #f6efe6; color: #f6efe6; }
.cpt-band .cpt-line:hover { background: #f6efe6; color: var(--ink); }
.cpt-opts { display: grid; gap: 0 28px; justify-items: start; }
.cpt-band .dvx-check { color: #e9dccb; text-align: left; }
.cpt-band .dvx-check input { accent-color: #f6efe6; }
.cpt-fine { font-size: 13px; line-height: 1.5; color: #cdbba6; max-width: 52ch; }
body[data-cpt="plunge"] .cpt-pick, body[data-cpt="getin"] .cpt-pick { opacity: .55; }
.cpt-below { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 48px; padding-bottom: 48px; }
.cpt-stats { margin-top: 16px; }
.cpt-logbtns { margin: 16px 0 8px; }
.cpt-empty { font-size: 16px; color: var(--ink-2); padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 16px; }
.cpt-day { font-size: 14px; font-weight: 600; color: var(--muted); margin: 24px 0 0; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.cpt-rows { list-style: none; }
.cpt-rows li { display: grid; grid-template-columns: 84px 64px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.cpt-at { font-size: 14px; color: var(--muted); }
.cpt-len { font-family: var(--display); font-weight: 700; font-size: 20px; }
.cpt-how { font-size: 14px; color: var(--ink-2); }
.cpt-clear { margin-top: 16px; }
.cpt-clear .dvx-btn { min-height: 44px; padding: 8px 14px; font-size: 15px; font-family: var(--text); font-weight: 600; border-color: var(--line); color: var(--ink-2); }
.cpt-clear .dvx-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.cpt-safety > p { font-size: 16px; color: var(--ink-2); max-width: 56ch; }
.cpt-safety .dvx-callout { margin-top: 16px; }
.cpt-more { margin-top: 16px; font-size: 15px !important; }
@media (min-width: 640px) {
.cpt-band { padding: 48px 0 52px; }
.cpt-btns { grid-template-columns: 1fr; }
.cpt-opts { grid-auto-flow: column; }
}
@media (min-width: 900px) {
.cpt-below { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; padding-top: 72px; padding-bottom: 72px; }
}
|