/* cineviv — one layout for cineviv.com and cineviv.com/weatherbox.
   The page is exactly one viewport tall on every device: type and spacing
   scale with the smaller of width and height, so nothing ever scrolls. */

/* Ortho Sans (owner 2026-11-30): the typeface of the logos. Served only to these pages' font loads by the cineviv-fonts
   Worker (weatherbox repo ops/cloudflare/cineviv-fonts); '70ec0111a417.woff2' is the only file the current text needs, the others load only
   for the characters in their unicode-range. */
@font-face {
	font-family: 'Ortho Sans';
	src: url('/_f/70ec0111a417.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: block;
	unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+2000-2016, U+2018-201A, U+201C-2023, U+2025-2027, U+202A-2035, U+2039-203B, U+203D-203E, U+2044, U+204A, U+2052-2053, U+205F-2064, U+2066-2069, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF;
}

@font-face {
	font-family: 'Ortho Sans';
	src: url('/_f/6b117413643f.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: block;
	unicode-range: U+0100-0130, U+0132-0151, U+0154-017F, U+0181, U+0186, U+0189-018A, U+018E-0192, U+0194, U+0197-0199, U+019D, U+01A0-01A1, U+01AF-01B0, U+01B2-01B4, U+01B7, U+01C0-01C3, U+01CA-01DD, U+01E2-01E9, U+01EC-01EF, U+01F8-01F9, U+01FE-01FF, U+0218-021B, U+021E-021F, U+0237, U+0244, U+0251, U+0253-0254, U+0256-0257, U+0259, U+025B, U+0268, U+0272, U+0289, U+028B, U+0292, U+0294, U+02B0, U+02B2-02B3, U+02B7-02B8, U+02C7-02CB, U+02D8-02D9, U+02DB, U+02DD, U+02E1-02E3, U+0300-0303, U+0306-0307, U+0309-030C, U+0313-0314, U+031B, U+0323, U+0326-0328, U+0331, U+0342, U+0345, U+034F, U+037A, U+037E, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03AD, U+03AF-03B6, U+03B8-03BF, U+03C1-03C6, U+03C8-03CE, U+0400-045F, U+0462-0463, U+046A-046B, U+0472-0473, U+0490-049D, U+04A0-04A5, U+04AA-04AB, U+04AE-04B3, U+04B6-04BB, U+04C0, U+04C9-04CA, U+04CF-04D1, U+04D4-04D9, U+04E2-04E3, U+04E8-04E9, U+04EE-04EF, U+04F2-04F3, U+0605, U+06DD, U+0E3F, U+180E, U+1D43, U+1D47-1D49, U+1D4D, U+1D4F-1D50, U+1D52, U+1D56-1D58, U+1D5B, U+1D9C, U+1DA0, U+1DBB, U+1E0C-1E0D, U+1E10-1E11, U+1E24-1E25, U+1E28-1E29, U+1E2E-1E2F, U+1E36-1E37, U+1E3E-1E3F, U+1E44-1E47, U+1E5A-1E5B, U+1E62-1E63, U+1E6C-1E6D, U+1E7C-1E7D, U+1E80-1E85, U+1E92-1E93, U+1E9E, U+1EA0-1EF9, U+1F00-1F15, U+1F18-1F1D, U+1F28-1F45, U+1F48-1F4D, U+1F50-1F57, U+1F59, U+1F5B, U+1F5D, U+1F5F-1F73, U+1F76-1F7D, U+1F80-1F8F, U+1F98-1FB4, U+1FB6-1FC1, U+1FC8-1FD3, U+1FD6-1FDB, U+1FDD-1FEF, U+1FF2-1FF4, U+1FF6-1FFE, U+2070-2071, U+2074-208E, U+20A1, U+20A3-20AB, U+20AD-20AF, U+20B1-20B6, U+20B8-20BA, U+20BC-20C0, U+2103, U+2109, U+2116-2117, U+211E, U+2120, U+2126, U+212A-212B, U+212E, U+2150-215E, U+2190, U+2192, U+2194-2199, U+21B5, U+21C4-21C5, U+21E7, U+2200, U+2202-2203, U+2205-2208, U+220B, U+220F, U+2211, U+2213, U+2219-221A, U+221D-221E, U+222B, U+2248, U+2260-2261, U+2264-2265, U+226A-226B, U+22C5, U+2300, U+2318, U+2325, U+2329-232A, U+25A0-25A1, U+25B2-25B3, U+25B6-25B7, U+25BC-25BD, U+25C0-25C1, U+25C6-25C7, U+25CA-25CB, U+25CF, U+25E6, U+2713, U+2715, U+2780-2789, U+27E8-27E9, U+2C6D, U+2E17, U+A78B-A78C, U+FF21-FF3A, U+FF41-FF5A;
}

@font-face {
	font-family: 'Ortho Sans';
	src: url('/_f/c071aba1e945.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: block;
	unicode-range: U+3000-3003, U+3008-3012, U+3014-301F, U+3041-3096, U+3099-30FF, U+31F0-31FF, U+FE10-FE19, U+FE30-FE33, U+FE35-FE44, U+FE47-FE48, U+FF01-FF20, U+FF3B-FF40, U+FF5B-FF65, U+FFE1-FFE4, U+FFE6;
}

@font-face {
	font-family: 'Ortho Sans';
	src: url('/_f/0f173982ac3b.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: block;
	unicode-range: U+3007;
}

@font-face {
	font-family: 'Ortho Sans';
	src: url('/_f/2d9d4acdd2b3.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: block;
	unicode-range: U+1100-1112, U+1160-1175, U+11A8-11C2, U+302E-302F, U+3131-318E, U+AC00-D7A3, U+FFA0-FFBE, U+FFC2-FFC7, U+FFCA-FFCF, U+FFD2-FFD7, U+FFDA-FFDC;
}

@font-face {
	font-family: 'Ortho Sans';
	src: url('/_f/85370efe83bb.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: block;
	unicode-range: U+0531-0556, U+0559-058A, U+058D-058F, U+0591-05C7, U+05D0-05EA, U+05EF-05F4, U+0600-0604, U+0606-06DC, U+06DE-06FF, U+FB13-FB17, U+FB1D-FB36, U+FB38-FB3C, U+FB3E, U+FB40-FB41, U+FB43-FB44, U+FB46-FB4F, U+FD3E-FD3F, U+FDF2, U+FDFA-FDFD, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
	font-family: 'Ortho Sans';
	src: url('/_f/d9362c5f85e4.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: block;
	unicode-range: U+0E01-0E3A, U+0E40-0E5B;
}

:root {
	--white: #ffffff;
	--text: #e5e5e5;
	--muted: #7f7f7f;
	--grey: #636363;

	/* one type scale: the width sets it, the height caps it (K = the page's
	   height in rem), so both pages fit one screen on every device */
	--k: 40;
	font-size: 15px;
	font-size: clamp(10px, min(calc(14.5px + 0.3vw), calc(100vh / var(--k))), 18px);
	font-size: clamp(10px, min(calc(14.5px + 0.3vw), calc(100dvh / var(--k))), 18px);

	--pad-y: clamp(1.25rem, 6vh, 4.5rem);
	--pad-y: clamp(1.25rem, 6dvh, 4.5rem);
	--pad-x: clamp(1.5rem, 6vw, 4.5rem);
	--gap: 1.6rem;
	/* a feature's name -> description spacing; stacked link rows use it too (owner 2026-11-30) */
	--desc-gap: 0.1rem;
	--logo: clamp(24px, min(7vw, 6.5vh), 50px);
	--logo: clamp(24px, min(7vw, 6.5dvh), 50px);
	/* the logo height on cineviv.com and the weatherbox pages (one frame, owner 2026-10-17): the weatherbox wordmark (8 : 1)
	   spans the content width on a phone; the 50px cap holds on wider screens */
	--wordmark: clamp(24px, min(calc((100vw - 2 * var(--pad-x)) / 8), 6.5vh), 50px);
	--wordmark: clamp(24px, min(calc((100vw - 2 * var(--pad-x)) / 8), 6.5dvh), 50px);
	/* the wordmark's width — every block on a weatherbox page spans it (owner 2026-10-17); the 2026-11-23 logo
	   (827.858 × 100) keeps that width, so its height is the width × 100 / 827.858 (owner: "ensure it fits in the
	   horizontal space of the existing one"), and cineviv.com's mark takes that same height (owner: "match the height") */
	--wordmark-w: calc(var(--wordmark) * 8);
	--wordmark-h: calc(var(--wordmark-w) * 100 / 827.858);
}

*, *::before, *::after {
	box-sizing: border-box;
	text-transform: lowercase !important;
	font-family: 'Ortho Sans', sans-serif !important;
}

html, body {
	margin: 0;
	padding: 0;
	background: #000000;
}

body {
	color: var(--muted);
	font-size: 1rem;
	line-height: 1.45;
	letter-spacing: -0.01em;
	height: 100vh;
	height: 100dvh;
	padding: var(--pad-y) var(--pad-x);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: var(--gap);
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

/* logo — the square mark and the weatherbox wordmark share one height */
.logo {
	flex: none;
	display: block;
	height: var(--logo);
	line-height: 0;
}

.logo.wordmark {
	height: var(--wordmark-h);
}

/* on a weatherbox page a row of three or more links spans the wordmark (first link at its left edge, last at its right);
   a two-link row (the store links) stays left-aligned with the normal gap (owner 2026-10-17); a row marked .span spans it
   whatever its link count ("more" row 2: privacy directly below terms, owner 2026-12-01) */
body:has(> .logo.wordmark) .inline:has(> a:nth-of-type(3)),
body:has(> .logo.wordmark) .inline.span {
	width: var(--wordmark-w);
	max-width: 100%;
	justify-content: space-between;
}

.logo a {
	display: inline-block;
	height: 100%;
}

.logo svg {
	display: block;
	height: 100%;
	width: auto;
}

.logo-path {
	/* the cineviv mark is always #F04A00 (owner 2026-11-30); forced-color-adjust keeps high-contrast modes from repainting it */
	fill: #F04A00;
	stroke: none;
	forced-color-adjust: none;
}

/* main's blocks join the body's column, so the free height is shared
   evenly between every block, logo included */
main {
	display: contents;
}

main > * {
	max-width: 48rem;
}

.tagline {
	margin: 0;
	font-size: 1.3rem;
	font-weight: normal;
	line-height: 1.35;
	color: var(--text);
	border-left: 2px solid var(--grey);
	padding-left: 1.25rem;
}

/* the tagline is always two lines, one per span */
.tagline span {
	display: block;
	white-space: nowrap;
}

h2 {
	margin: 0 0 0.75rem 0;
	font-size: 1.05rem;
	font-weight: normal;
	color: var(--grey);
}

ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* list rows: name — description, flowing as one line of text that wraps */
.rows li {
	padding: 0.5rem 0;
	font-size: 1.05rem;
}

.rows li:first-child {
	padding-top: 0;
}

.name {
	color: var(--white);
	white-space: nowrap;
}

.inline a {
	white-space: nowrap;
}

.desc {
	display: block;
	margin-top: var(--desc-gap);
}

/* inline rows of links (download, contact, footer) */
.inline {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.6rem;
	font-size: 1.05rem;
	color: var(--text);
}

/* a second row of links sits as far below the first as a feature's description below its name: the description's
   margin less the 1px link border that already separates the rows (owner 2026-11-30) */
.inline + .inline {
	margin-top: calc(var(--desc-gap) - 1px);
}


a {
	color: var(--text);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

a.name {
	color: var(--white);
}

a:hover {
	color: var(--white);
	border-bottom-color: var(--white);
}

.logo a,
.logo a:hover {
	border-bottom: 0;
}

a:focus-visible {
	outline: 1px solid var(--text);
	outline-offset: 3px;
	border-bottom-color: transparent;
}

/* phones held sideways: too short for stacked rows, wide enough for one line */
@media (orientation: landscape) and (max-height: 480px) {
	:root { --gap: 1rem; }
	.rows li { padding: 0.3rem 0; }
	.desc { display: inline; margin: 0 0 0 1.2em; }
}

@media (prefers-reduced-motion: reduce) {
	a { transition: none; }
}
