diff --git a/style/main.css b/style/main.css index 7fc537c..6f936fc 100644 --- a/style/main.css +++ b/style/main.css @@ -18,6 +18,7 @@ src: url("/fonts/quicksand-semibold-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } + @font-face { font-family: "Quicksand"; font-style: normal; @@ -26,6 +27,7 @@ src: url("/fonts/quicksand-semibold-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; } + @font-face { font-family: "Quicksand"; font-style: normal; @@ -53,30 +55,16 @@ --radius: 1.1rem; - /* responsive base size: scales with viewport (2.1lvmin) on top of a - fixed floor (3pt) so it keeps growing on large/wide screens - instead of capping at a fixed px value like the old 17px did; - max(12px, ...) keeps it from shrinking below legible on tiny - viewports. lvmin (large-viewport min), not plain vmin or svmin - - plain vh-based units recalculate as mobile Safari's address bar - hides/shows on scroll, which would reflow every text size on the - page mid-scroll. svmin would be stable too, but pinned to the - *smallest* (toolbar-visible) state - wrong end for a page whose - toolbar collapses the moment you scroll: same mismatch as - .hero-yes below, just for font-size instead of height. lvmin - matches the settled (toolbar-collapsed) state scrolling actually - lands on. - Plain-px fallback declared first: an engine that doesn't - understand lvmin/calc() here treats the whole line as invalid and - ignores it, leaving this in effect instead of falling through to - the UA default. */ font-size: 17px; font-size: max(12px, calc(2.1lvmin + 3pt)); } -* { box-sizing: border-box; } +* { + box-sizing: border-box; +} -html, body { +html, +body { margin: 0; padding: 0; background: var(--paper); @@ -85,20 +73,30 @@ html, body { line-height: 1.55; } -h1, h2, h3 { +h1, +h2, +h3 { font-family: var(--heading); font-weight: 600; line-height: 1.2; margin: 0 0 0.4em; } -p { margin: 0 0 0.9em; } +p { + margin: 0 0 0.9em; +} -a { color: var(--accent); } +a { + color: var(--accent); +} -::selection { background: var(--accent-soft); color: var(--ink); } +::selection { + background: var(--accent-soft); + color: var(--ink); +} -main.loading, main.not-found { +main.loading, +main.not-found { min-height: 60vh; display: flex; flex-direction: column; @@ -128,7 +126,9 @@ main.loading, main.not-found { transition: opacity 120ms; } -.wordmark:hover { opacity: 1; } +.wordmark:hover { + opacity: 1; +} .wordmark img { height: 2.1rem; @@ -136,7 +136,9 @@ main.loading, main.not-found { display: block; } -.hero-copy h1 { font-size: 2.1rem; } +.hero-copy h1 { + font-size: 2.1rem; +} .hero-copy p { color: var(--ink-dim); @@ -218,13 +220,25 @@ main.loading, main.not-found { /* alternatives */ .alternatives { - max-width: 780px; + max-width: 65ch; margin: 0 auto 5rem; padding: 0 1.5rem; display: grid; gap: 1.25rem; } +@media (max-width: 700px) { + .alternatives { + padding: 0; + } + + .alt-card { + border: none; + border-radius: 0; + + } +} + .question-responsible { text-align: center; color: var(--ink-dim); @@ -232,8 +246,13 @@ main.loading, main.not-found { line-height: 1.6; } -.question-responsible a { color: var(--ink-dim); } -.question-responsible a:hover { color: var(--accent); } +.question-responsible a { + color: var(--ink-dim); +} + +.question-responsible a:hover { + color: var(--accent); +} .question-report { font: inherit; @@ -245,8 +264,14 @@ main.loading, main.not-found { cursor: pointer; } -.question-report:hover { color: var(--accent); } -.question-report:disabled { opacity: 0.5; cursor: wait; } +.question-report:hover { + color: var(--accent); +} + +.question-report:disabled { + opacity: 0.5; + cursor: wait; +} .alt-card { background: var(--paper-raised); @@ -255,9 +280,13 @@ main.loading, main.not-found { padding: 1.75rem 1.9rem; } -.alt-card h2 { font-size: 1.3rem; } +.alt-card h2 { + font-size: 1.3rem; +} -.alt-description { color: var(--ink-dim); } +.alt-description { + color: var(--ink-dim); +} .alt-encouragement { font-size: 0.9rem; @@ -281,10 +310,21 @@ main.loading, main.not-found { gap: 0.3rem; } -.features { display: grid; gap: 1.1rem; margin-top: 0.6rem; } +.features { + display: grid; + gap: 1.1rem; + margin-top: 0.6rem; +} -.feature h3 { font-size: 1rem; margin-bottom: 0.15em; } -.feature p { color: var(--ink-dim); font-size: 0.95rem; } +.feature h3 { + font-size: 1rem; + margin-bottom: 0.15em; +} + +.feature p { + color: var(--ink-dim); + font-size: 0.95rem; +} .field { display: flex; @@ -299,9 +339,13 @@ main.loading, main.not-found { color: var(--ink-dim); } -.required { color: var(--accent); margin-left: 0.2em; } +.required { + color: var(--accent); + margin-left: 0.2em; +} -input, textarea { +input, +textarea { font: inherit; color: var(--ink); background: var(--paper); @@ -311,9 +355,13 @@ input, textarea { width: 100%; } -textarea { min-height: 5rem; resize: vertical; } +textarea { + min-height: 5rem; + resize: vertical; +} -input:focus, textarea:focus { +input:focus, +textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); @@ -346,7 +394,10 @@ input:focus, textarea:focus { line-height: 1; } -.prosekit-toolbar button:hover { color: var(--ink); border-color: var(--line); } +.prosekit-toolbar button:hover { + color: var(--ink); + border-color: var(--line); +} .prosekit-toolbar button.is-active { color: var(--paper); @@ -369,8 +420,13 @@ input:focus, textarea:focus { box-shadow: 0 0 0 3px var(--accent-soft); } -.prosekit-editor p { margin: 0 0 0.6em; } -.prosekit-editor p:last-child { margin-bottom: 0; } +.prosekit-editor p { + margin: 0 0 0.6em; +} + +.prosekit-editor p:last-child { + margin-bottom: 0; +} .alt-submit { font-family: var(--sans); @@ -385,22 +441,39 @@ input:focus, textarea:focus { transition: filter 120ms, transform 120ms; } -.alt-submit:hover { filter: brightness(1.08); } -.alt-submit:active { transform: translateY(1px); } -.alt-submit:disabled { filter: grayscale(0.5) brightness(0.85); cursor: wait; } +.alt-submit:hover { + filter: brightness(1.08); +} -.gate-card { text-align: center; } +.alt-submit:active { + transform: translateY(1px); +} + +.alt-submit:disabled { + filter: grayscale(0.5) brightness(0.85); + cursor: wait; +} + +.gate-card { + text-align: center; +} /* resources */ -.resource { margin-top: 0.6rem; } +.resource { + margin-top: 0.6rem; +} -.resource-loading, .resource-empty { +.resource-loading, +.resource-empty { color: var(--ink-dim); font-size: 0.9rem; } -.resource-error { color: #ff6b6b; font-size: 0.9rem; } +.resource-error { + color: #ff6b6b; + font-size: 0.9rem; +} .resource-raw { background: var(--paper); @@ -412,7 +485,10 @@ input:focus, textarea:focus { white-space: pre-wrap; } -.answer-list { display: grid; gap: 0.8rem; } +.answer-list { + display: grid; + gap: 0.8rem; +} .answer-row { border: 1px solid var(--line); @@ -422,7 +498,9 @@ input:focus, textarea:focus { gap: 0.6rem; } -.answer-row.decided { opacity: 0.55; } +.answer-row.decided { + opacity: 0.55; +} .answer-fields { display: grid; @@ -430,7 +508,11 @@ input:focus, textarea:focus { gap: 0.5rem 1rem; } -.answer-field { display: flex; flex-direction: column; gap: 0.1rem; } +.answer-field { + display: flex; + flex-direction: column; + gap: 0.1rem; +} .answer-field-key { font-size: 0.72rem; @@ -439,7 +521,10 @@ input:focus, textarea:focus { color: var(--ink-dim); } -.answer-field-value { font-size: 0.92rem; word-break: break-word; } +.answer-field-value { + font-size: 0.92rem; + word-break: break-word; +} .answer-meta { display: flex; @@ -476,10 +561,20 @@ input:focus, textarea:focus { transition: filter 120ms; } -.answer-confirm:hover { filter: brightness(1.08); } -.answer-confirm:disabled { opacity: 0.5; cursor: not-allowed; filter: none; } +.answer-confirm:hover { + filter: brightness(1.08); +} -.item-list { display: grid; gap: 0.8rem; } +.answer-confirm:disabled { + opacity: 0.5; + cursor: not-allowed; + filter: none; +} + +.item-list { + display: grid; + gap: 0.8rem; +} .item-card { border: 1px solid var(--line); @@ -495,10 +590,20 @@ input:focus, textarea:focus { font-size: 1rem; } -.item-card-title a { color: var(--ink); text-decoration: none; } -.item-card-title a:hover { color: var(--accent); text-decoration: underline; } +.item-card-title a { + color: var(--ink); + text-decoration: none; +} -.item-card-description { font-size: 0.9rem; color: var(--ink-dim); } +.item-card-title a:hover { + color: var(--accent); + text-decoration: underline; +} + +.item-card-description { + font-size: 0.9rem; + color: var(--ink-dim); +} .item-card-fields { display: flex; @@ -507,7 +612,10 @@ input:focus, textarea:focus { margin-top: 0.2rem; } -.item-card-field { font-size: 0.82rem; color: var(--ink-dim); } +.item-card-field { + font-size: 0.82rem; + color: var(--ink-dim); +} .item-card-field-key { text-transform: uppercase; @@ -516,9 +624,15 @@ input:focus, textarea:focus { margin-right: 0.3rem; } -.select-field { margin-top: 0.3rem; } +.select-field { + margin-top: 0.3rem; +} -.select-options { display: flex; flex-wrap: wrap; gap: 0.5rem; } +.select-options { + display: flex; + flex-wrap: wrap; + gap: 0.5rem; +} .select-option { font-family: var(--sans); @@ -532,7 +646,10 @@ input:focus, textarea:focus { transition: border-color 120ms, color 120ms, background 120ms; } -.select-option:hover { border-color: var(--accent); color: var(--accent); } +.select-option:hover { + border-color: var(--accent); + color: var(--accent); +} .select-option.selected { border-color: var(--accent); @@ -541,7 +658,16 @@ input:focus, textarea:focus { } @media (max-width: 640px) { - .hero { padding: 3rem 1.25rem 2rem; } - .alt-card { padding: 1.4rem 1.3rem; } - .alt-cta { flex-direction: column; align-items: flex-start; } -} + .hero { + padding: 3rem 1.25rem 2rem; + } + + .alt-card { + padding: 1.4rem 1.3rem; + } + + .alt-cta { + flex-direction: column; + align-items: flex-start; + } +} \ No newline at end of file