/* threadbare is a substandard subsite: paper, ink, a red pen that disagrees, and hard misprint shadows. The tokens match web/src/styles/global.css exactly. */ :root { --bg: #f4f3ee; --card: #fdfcf9; --fg: #26282b; --muted: #6d6a62; --line: #dedcd3; --red: #d9482b; --gold: #e8b52a; --gold-hl: rgba(232, 181, 42, 0.35); --shadow: #dedcd3; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; } @media (prefers-color-scheme: dark) { :root { --bg: #1c1d20; --card: #26272b; --fg: #e9e7e0; --muted: #96938a; --line: #3a3b40; --red: #e2593a; --gold: #d9a826; --gold-hl: rgba(217, 168, 38, 0.28); --shadow: #131417; } } * { box-sizing: border-box; } html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--fg); } body { display: flex; flex-direction: column; min-height: 100vh; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.6; } ::selection { background: var(--gold-hl); } a { color: var(--fg); text-decoration: underline; text-decoration-style: wavy; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 3px; } /* The lockup is THREADBARE, ink on a fraying thread, attributed to SUBSTANDARD. Both wordmarks are inlined so the theme can recolor them. */ .site-header { align-items: center; background: var(--bg); border-bottom: 2px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; padding: 1rem clamp(1rem, 4vw, 3rem); position: sticky; top: 0; z-index: 10; } .brand { align-items: center; display: flex; text-decoration: none; } .brand-icon { height: 1.45rem; transform: rotate(2deg); transition: transform 0.2s ease; width: 1.45rem; } .brand:hover .brand-icon { transform: rotate(0deg); } .brand-lockup { display: flex; flex-direction: column; gap: 0.1rem; } .threadbare-wordmark { display: block; width: 13rem; } .threadbare-wordmark svg { display: block; height: auto; width: 100%; } .threadbare-wordmark text { fill: var(--fg); } .threadbare-wordmark path { stroke: var(--red); } .by-substandard { align-items: center; color: var(--muted); display: flex; gap: 0.3rem; line-height: 1; } .by-label { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.62rem; letter-spacing: 0.08em; } .substandard-wordmark { display: block; width: 6.2rem; } .substandard-wordmark svg { display: block; height: auto; width: 100%; } .substandard-wordmark text { fill: var(--muted); } .substandard-wordmark path { opacity: 0.8; stroke: var(--red); } .tagline { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.68rem; letter-spacing: 0.14em; } .tabs { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-left: auto; } .tabs a { color: var(--fg); font-size: 0.9rem; padding: 0.18rem 0.3rem; text-decoration: none; } .tabs a:hover { text-decoration: underline wavy var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 3px; } .tabs a.active { background: var(--gold); border: 2px solid var(--fg); border-radius: 0.4rem; box-shadow: 3px 3px 0 var(--shadow); color: #1c1d20; font-weight: 650; padding: 0.18rem 0.55rem; transform: rotate(-0.6deg); } .app { flex: 1; margin: 0 auto; padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 3rem) 3rem; width: min(76rem, 100%); } /* Cards are laid out by eye: each leans its own way, and the solid shadows are misprints rather than blurs. */ .panel { background: var(--card); border: 2px solid var(--line); border-radius: 0.75rem; margin-bottom: 1.75rem; padding: clamp(1rem, 2.5vw, 1.6rem); } .panel:nth-of-type(odd) { box-shadow: 5px 4px 0 var(--shadow); transform: rotate(-0.35deg); } .panel:nth-of-type(even) { box-shadow: -4px 5px 0 var(--shadow); transform: rotate(0.25deg); } h1, h2, h3 { line-height: 1.2; margin: 0 0 0.75rem; } h1 { font-size: clamp(1.6rem, 3vw, 2.15rem); letter-spacing: -0.01em; text-decoration: underline wavy var(--red); text-decoration-thickness: 2.5px; text-underline-offset: 8px; width: fit-content; } /* The marker highlight overshoots the text a little, like the site's. */ h2 { background: linear-gradient( 100deg, transparent 0.5%, var(--gold-hl) 3%, var(--gold-hl) 98%, transparent 99.5% ); display: inline-block; font-size: 1.25rem; line-height: 1.3; padding: 0 0.35rem; transform: rotate(-0.4deg); } h3 { font-size: 1rem; } p { margin: 0 0 0.9rem; } p:last-child { margin-bottom: 0; } .hint, .meta { color: var(--muted); font-size: 0.88rem; } .form { align-items: flex-end; display: flex; flex-wrap: wrap; gap: 0.9rem; } .form label { color: var(--muted); display: flex; flex-direction: column; font-size: 0.82rem; gap: 0.3rem; } .form label.grow { flex: 1 1 16rem; } .form label.check { align-items: center; flex-direction: row; gap: 0.45rem; padding-bottom: 0.4rem; } input, select { background: var(--card); border: 2px solid var(--line); border-radius: 0.4rem; color: var(--fg); font: inherit; padding: 0.5rem 0.6rem; } input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; } /* The primary action is a gold sticker somebody slapped on crooked. */ button { background: var(--gold); border: 3px solid var(--fg); border-radius: 0.55rem; box-shadow: 4px 5px 0 var(--shadow); color: #1c1d20; cursor: pointer; font: inherit; font-weight: 650; padding: 0.48rem 0.9rem; transform: rotate(-0.8deg); transition: box-shadow 0.15s ease, transform 0.15s ease; } button:hover { box-shadow: 1px 1px 0 var(--shadow); transform: rotate(-0.8deg) translate(2px, 3px); } button:disabled { cursor: progress; opacity: 0.6; } button.cancel { background: var(--card); border-color: var(--red); color: var(--red); } button[data-delete], button[data-action="delete"] { background: var(--card); border-color: var(--red); color: var(--red); } .status { color: var(--muted); font-size: 0.85rem; margin: 0.9rem 0 0; min-height: 1.3rem; } .empty { color: var(--muted); font-style: italic; } .error { background: color-mix(in srgb, var(--red) 10%, var(--card)); border: 2px solid var(--red); border-radius: 0.6rem; color: var(--red); padding: 0.9rem 1rem; white-space: pre-wrap; } .thread-list { display: flex; flex-direction: column; gap: 0.75rem; } .thread-card { background: var(--card); border: 2px solid var(--line); border-radius: 0.75rem; box-shadow: 4px 4px 0 var(--shadow); cursor: pointer; display: grid; gap: 0.45rem 0.65rem; grid-template-columns: auto auto minmax(0, 1fr) auto; padding: 0.6rem 0.75rem; transform: rotate(-0.12deg); transition: box-shadow 0.15s ease, transform 0.15s ease; } .thread-card:nth-child(even) { box-shadow: -4px 4px 0 var(--shadow); transform: rotate(0.1deg); } .thread-card:hover { box-shadow: 1px 1px 0 var(--shadow); transform: rotate(0deg) translate(1px, 1px); } .thread-spine { align-items: center; display: flex; flex-direction: column; gap: 0.2rem; min-width: 2.35rem; } .thread-index { color: var(--red); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.72rem; font-weight: 700; line-height: 1; } .thread-total { color: var(--muted); font-weight: 400; } .thread-line { background: repeating-linear-gradient( to bottom, var(--red) 0 3px, transparent 3px 6px ); flex: 1; min-height: 1.2rem; width: 2px; } .root-avatar { background: var(--bg); border: 2px solid var(--fg); border-radius: 50%; flex: 0 0 auto; height: 2rem; object-fit: cover; width: 2rem; } .root-monogram { align-items: center; color: var(--red); display: inline-flex; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85rem; font-weight: 700; justify-content: center; } .thread-body { min-width: 0; } .thread-head { align-items: baseline; display: flex; flex-wrap: wrap; gap: 0.15rem 0.5rem; } .root-name { color: var(--fg); font-size: 0.86rem; font-weight: 650; text-decoration: none; } .root-name:hover { text-decoration: underline wavy var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 3px; } .root-handle, .root-date { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.7rem; } .thread-published { background: var(--gold-hl); border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.6rem; letter-spacing: 0.05em; padding: 0.02rem 0.36rem; text-transform: uppercase; } .root-snippet { -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--fg); display: -webkit-box; font-size: 0.88rem; line-height: 1.4; margin: 0.2rem 0 0; overflow: hidden; } .thread-foot { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; font-size: 0.7rem; gap: 0.15rem 0.65rem; margin-top: 0.3rem; } .root-engagement { display: flex; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.68rem; gap: 0.55rem; white-space: nowrap; } .thread-topics { align-items: center; display: flex; flex-wrap: wrap; gap: 0.12rem; } .thread-topics .chip { font-size: 0.66rem; padding: 0.02rem 0.4rem; } .thread-open { font-size: 0.72rem; margin-left: auto; white-space: nowrap; } .thread-thumb { border: 2px solid var(--fg); border-radius: 0.4rem; box-shadow: 3px 3px 0 var(--shadow); height: 4rem; object-fit: cover; width: 4rem; } .thread-view-index { color: var(--red); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.78rem; font-weight: 700; } .topics-label { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.68rem; letter-spacing: 0.08em; margin-right: 0.35rem; text-transform: uppercase; } /* The red pen mark from the identity badges. */ .topics-label::before { background: var(--red); content: ""; display: inline-block; height: 2px; margin-right: 0.4rem; vertical-align: middle; width: 10px; } .chip { background: var(--card); border: 1px solid var(--line); border-radius: 999px; color: var(--muted); display: inline-block; font-size: 0.74rem; margin: 0.1rem 0.22rem 0.1rem 0; padding: 0.07rem 0.5rem; white-space: nowrap; } .thread-topics { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; font-size: 0.8rem; gap: 0.15rem; margin: 0.45rem 0 0; } .plain-list { list-style: none; margin: 0; padding: 0; } .plain-list > li { border-top: 1px solid var(--line); padding: 0.9rem 0; } .plain-list > li:first-child { border-top: 0; } .plain-list h3 { margin-bottom: 0.2rem; } .publication, .document { display: flex; flex-direction: column; gap: 0.15rem; } .draft { align-items: center; display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between; } .actions { display: flex; flex-wrap: wrap; gap: 0.5rem; } .thread-header { border-bottom: 2px solid var(--line); margin-bottom: 1.25rem; padding-bottom: 1rem; } .thread-header h1 { margin-bottom: 0.35rem; text-decoration: none; } .rendered { overflow-wrap: anywhere; } .rendered blockquote { border-left: 3px solid var(--red); color: var(--muted); margin: 1rem 0; padding: 0.15rem 0 0.15rem 1rem; } .rendered blockquote blockquote { margin: 0.75rem 0; } .rendered img { border: 2px solid var(--fg); border-radius: 0.4rem; box-shadow: 4px 4px 0 var(--shadow); display: block; height: auto; margin: 0.75rem 0; max-width: 100%; } .rendered p { margin: 0 0 0.9rem; } .rendered a { overflow-wrap: anywhere; } .site-footer { border-top: 2px solid var(--line); color: var(--muted); font-size: 0.82rem; margin: 0 auto; padding: 1.25rem clamp(1rem, 4vw, 3rem); width: min(76rem, 100%); } .site-footer p { margin: 0; } .thread-branches { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.68rem; white-space: nowrap; } .thread-hidden { background: var(--card); border: 1px solid var(--red); border-radius: 999px; color: var(--red); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.6rem; letter-spacing: 0.05em; padding: 0.02rem 0.36rem; text-transform: uppercase; } .thread-card--hidden { border-style: dashed; } .content-warning { align-items: center; background: color-mix(in srgb, var(--gold-hl) 42%, var(--card)); border: 1px dashed var(--red); border-radius: 0.4rem; color: var(--muted); display: flex; flex-wrap: wrap; font-size: 0.78rem; gap: 0.35rem 0.6rem; padding: 0.35rem 0.5rem; } .content-warning button { border-width: 2px; box-shadow: 2px 2px 0 var(--shadow); font-size: 0.68rem; padding: 0.12rem 0.45rem; transform: none; } .thread-warning { margin-bottom: 0.6rem; } .row-menu { margin-left: auto; position: relative; } .row-menu summary, .score-details summary { color: var(--muted); cursor: pointer; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.7rem; list-style: none; white-space: nowrap; } .row-menu summary::-webkit-details-marker, .score-details summary::-webkit-details-marker { display: none; } .row-menu summary { border: 1px solid var(--line); border-radius: 0.3rem; padding: 0 0.4rem; } .row-menu[open] summary { background: var(--gold); border-color: var(--fg); color: #1c1d20; } .row-menu-panel { background: var(--card); border: 2px solid var(--fg); border-radius: 0.4rem; box-shadow: 4px 4px 0 var(--shadow); display: flex; flex-direction: column; min-width: 10.5rem; padding: 0.3rem; position: absolute; right: 0; top: calc(100% + 0.3rem); z-index: 30; } .row-menu-panel button, .row-menu-panel a { background: none; border: 0; border-radius: 0.25rem; box-shadow: none; color: var(--fg); font: inherit; font-size: 0.76rem; font-weight: 500; padding: 0.32rem 0.45rem; text-align: left; text-decoration: none; transform: none; white-space: nowrap; } .row-menu-panel button:hover, .row-menu-panel a:hover { background: var(--gold-hl); } .score-details { margin-top: 0.35rem; } .score-details summary::before { color: var(--red); content: "▸ "; } .score-details[open] summary::before { content: "▾ "; } .score-panel { background: var(--bg); border: 1px solid var(--line); border-radius: 0.4rem; color: var(--muted); font-size: 0.7rem; margin-top: 0.3rem; padding: 0.45rem 0.55rem; } .score-formula { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.66rem; margin: 0 0 0.3rem; } .score-panel dl { display: grid; gap: 0.15rem; margin: 0; } .score-panel dl > div { display: grid; gap: 0.5rem; grid-template-columns: 6.2rem minmax(0, 1fr); } .score-panel dt { color: var(--muted); } .score-panel dd { color: var(--fg); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.66rem; margin: 0; overflow-wrap: anywhere; } .branch-panel { border-top: 1px solid var(--line); margin-top: 0.6rem; padding-top: 0.5rem; } .fork { margin-top: 0.35rem; } .fork-parent { color: var(--muted); display: block; font-size: 0.74rem; margin-bottom: 0.15rem; } .fork ul { list-style: none; margin: 0; padding: 0; } .fork li { border-left: 2px dashed var(--line); padding: 0.15rem 0 0.15rem 0.5rem; } .fork li.chosen { border-left-color: var(--red); } .fork a { font-size: 0.74rem; } .show-more, .show-hidden { display: block; font-size: 0.76rem; margin: 0.8rem auto 0; } .show-hidden { background: var(--card); border-color: var(--red); color: var(--red); } .toast { background: var(--fg); border-radius: 0.4rem; bottom: 1.25rem; color: var(--bg); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.76rem; left: 50%; opacity: 0; padding: 0.5rem 0.75rem; pointer-events: none; position: fixed; transform: translateX(-50%) translateY(0.5rem); transition: opacity 0.15s ease, transform 0.15s ease; z-index: 50; } .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); } .thread-card:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .thread-card, .thread-card:hover, .panel { transform: none !important; } } @media (max-width: 720px) { .site-header { align-items: flex-start; } .threadbare-wordmark { width: 10rem; } .brand-icon { height: 1.2rem; width: 1.2rem; } .substandard-wordmark { width: 5rem; } .tagline { display: none; } .tabs { margin-left: 0; width: 100%; } .form { align-items: stretch; flex-direction: column; } .form label { width: 100%; } .panel { transform: none; } .thread-header .actions button { flex: 1 1 auto; } }