Files
twitter-lite/src/styles.css
T
2026-07-31 21:53:43 +09:00

1270 lines
23 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* Hallmark · genre: editorial · macrostructure: Workbench · theme: Garden · enrichment: none
* tone: soft · anchor: leaf-green · nav: N3 · footer: none (app shell)
* contrast: pass (40–41) · slop: pass (42–49) · mobile: pass (34, 49–57)
*/
/* Hallmark · pre-emit critique: P5 H5 E4 S5 R5 V5 */
@import "../tokens.css";
:root {
--canvas: var(--color-canvas);
--surface: var(--color-paper-2);
--paper: var(--color-paper);
--ink: var(--color-ink);
--secondary: var(--color-muted);
--accent: var(--color-accent);
--accent-hover: var(--color-accent-hover);
--border: var(--color-rule);
--control-border: var(--color-control-rule);
--error: var(--color-error);
color: var(--ink);
background: var(--canvas);
color-scheme: light;
font-family: var(--font-body);
font-synthesis: none;
}
* {
box-sizing: border-box;
}
html {
min-width: 320px;
overflow-x: clip;
background: var(--canvas);
}
body {
min-height: 100vh;
margin: 0;
overflow-x: clip;
}
button,
input {
font: inherit;
}
a {
color: var(--accent);
text-underline-offset: 0.18em;
}
a:active {
color: var(--accent-hover);
}
a[aria-disabled="true"] {
cursor: not-allowed;
opacity: 0.55;
pointer-events: none;
}
:focus-visible {
outline: var(--rule-active) solid var(--color-focus);
outline-offset: var(--space-2xs);
}
.app {
width: min(46rem, calc(100% - 2rem));
min-height: calc(100vh - 2rem);
margin: 1rem auto;
overflow: clip;
border: 1px solid var(--border);
border-radius: 1.15rem;
background: var(--surface);
box-shadow: 0 var(--space-lg) var(--space-2xl) var(--color-shadow);
}
.app-header {
display: flex;
align-items: end;
justify-content: space-between;
gap: 1rem;
padding: 1.2rem 1.4rem 0;
border-bottom: 1px solid var(--border);
}
.brand {
margin: 0 0 0.85rem;
color: var(--secondary);
font-size: 0.68rem;
font-weight: 750;
letter-spacing: 0.2em;
line-height: 1;
}
.tabs {
display: flex;
gap: 1.1rem;
}
.tabs a {
display: inline-flex;
min-height: 2.75rem;
align-items: center;
padding: 0.85rem 0.2rem 0.75rem;
border-radius: 0;
color: var(--secondary);
font-size: 0.9rem;
font-weight: 650;
text-decoration: none;
}
.tabs a[aria-current="page"] {
border-bottom: 2px solid var(--accent);
color: var(--accent);
font-weight: 750;
}
.reader {
padding: 2rem 1.4rem 3rem;
}
.reader > h1 {
max-width: 22ch;
margin: 0;
font-size: clamp(1.45rem, 4vw, 2rem);
font-weight: 700;
letter-spacing: -0.03em;
line-height: 1.25;
}
.intro {
margin: 0.45rem 0 1.5rem;
color: var(--secondary);
line-height: 1.7;
}
.list-picker {
margin-bottom: 1rem;
padding: 1rem;
border: 1px solid var(--border);
border-radius: 0.9rem;
background: var(--paper);
}
.list-picker h2 {
margin: 0 0 0.75rem;
font-size: 0.9rem;
letter-spacing: 0.01em;
}
.list-picker-state {
margin: 0;
color: var(--secondary);
font-size: 0.84rem;
}
.list-picker-state p {
margin-top: 0;
}
.list-choices {
display: grid;
max-height: 22rem;
gap: 0.55rem;
margin: 0;
padding: 0;
overflow-y: auto;
list-style: none;
scrollbar-gutter: stable;
}
.list-choices a {
display: grid;
gap: 0.2rem;
padding: 0.75rem;
border: 1px solid var(--border);
border-radius: 0.65rem;
color: var(--ink);
text-decoration: none;
}
.list-choices a[aria-current="page"] {
border-color: var(--accent);
background: color-mix(in oklch, var(--accent) 7%, var(--paper));
box-shadow: inset 3px 0 var(--accent);
}
.list-choices span {
font-weight: 750;
}
.list-choices small {
color: var(--secondary);
font-size: 0.74rem;
}
.list-choices p {
margin: 0.2rem 0 0;
color: var(--secondary);
font-size: 0.78rem;
line-height: 1.5;
}
.intent-form {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 0.85rem;
align-items: end;
padding: 1rem;
border: 1px solid var(--border);
border-radius: 0.9rem;
background: color-mix(in oklch, var(--canvas) 45%, var(--surface));
}
.field {
display: grid;
gap: 0.4rem;
min-width: 0;
color: var(--secondary);
font-size: 0.78rem;
font-weight: 700;
letter-spacing: 0.02em;
}
.field input {
width: 100%;
min-width: 0;
min-height: 2.75rem;
padding: 0.7rem 0.85rem;
border: 1px solid var(--control-border);
border-radius: 0.55rem;
background: var(--paper);
color: var(--ink);
}
.field input::placeholder {
color: var(--secondary);
opacity: 1;
font-weight: 400;
letter-spacing: 0;
}
.field input[aria-invalid="true"] {
border-color: var(--error);
}
.field-error {
color: var(--error);
font-size: 0.76rem;
font-weight: 650;
letter-spacing: 0;
}
.intent-form button,
.list-picker-state button,
.state button {
min-height: 2.75rem;
padding: 0.65rem 1rem;
border: 1px solid var(--accent);
border-radius: 0.55rem;
background: var(--accent);
color: var(--paper);
cursor: pointer;
font-weight: 750;
}
.segmented {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
min-width: 0;
margin: 0;
padding: 0;
border: 0;
}
.segmented legend {
width: 100%;
margin-bottom: 0.4rem;
color: var(--secondary);
font-size: 0.78rem;
font-weight: 700;
letter-spacing: 0.02em;
}
.segmented label {
position: relative;
display: inline-flex;
min-height: 2.75rem;
align-items: center;
padding: 0.55rem 0.75rem;
border: 1px solid var(--control-border);
border-radius: 0.55rem;
background: var(--surface);
cursor: pointer;
font-size: 0.84rem;
font-weight: 650;
}
.segmented input {
position: absolute;
width: 1px;
height: 1px;
opacity: 0;
}
.segmented label:has(input:checked) {
border-color: var(--accent);
background: var(--accent);
color: var(--paper);
}
.segmented label:has(input:focus-visible) {
outline: 3px solid var(--accent);
outline-offset: 3px;
}
.check {
display: flex;
min-height: 2.75rem;
align-items: center;
gap: 0.5rem;
color: var(--ink);
font-size: 0.84rem;
font-weight: 650;
}
.check input {
width: 1.1rem;
height: 1.1rem;
margin: 0;
accent-color: var(--accent);
}
.intent-form:has(.segmented) {
grid-template-columns: minmax(0, 1fr) auto auto;
}
.intent-form:has(.segmented) .field {
grid-column: 1 / -1;
}
.focal-post {
display: grid;
gap: 0.5rem;
margin-top: 1.4rem;
}
.focal-label {
margin: 0;
color: var(--accent);
font-size: 0.72rem;
font-weight: 750;
letter-spacing: 0.08em;
}
.feed {
display: grid;
gap: 0.85rem;
margin-top: 1.4rem;
}
.post {
min-width: 0;
padding: 1rem;
border: 1px solid var(--border);
border-radius: 0.9rem;
background: var(--paper);
}
.current-post {
border-color: var(--accent);
box-shadow: 0 0 0 1px color-mix(in oklch, var(--accent) 25%, transparent);
}
.post-header {
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto;
gap: 0.65rem;
align-items: center;
}
.post-header > div {
min-width: 0;
overflow-wrap: anywhere;
}
.avatar {
border-radius: 50%;
}
.handle,
.post-header time {
display: block;
color: var(--secondary);
font-size: 0.76rem;
font-variant-numeric: tabular-nums;
}
.post-header time {
text-align: right;
}
.post-text {
margin: 0.9rem 0;
overflow-wrap: anywhere;
line-height: 1.75;
white-space: pre-wrap;
}
.post a {
color: var(--accent);
}
.media-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.4rem;
margin-top: 0.8rem;
overflow: hidden;
border-radius: 0.75rem;
background: color-mix(in oklch, var(--canvas) 45%, var(--surface));
}
.media-grid > :only-child {
grid-column: 1 / -1;
}
.media {
display: block;
width: 100%;
max-height: 32rem;
background: color-mix(in oklch, var(--canvas) 45%, var(--surface));
}
img.media {
height: auto;
object-fit: cover;
}
.media-grid > img:only-child {
object-fit: contain;
}
video.media {
aspect-ratio: 16 / 9;
object-fit: contain;
}
.article-card,
.quote {
margin-top: 0.8rem;
padding: 0.85rem;
overflow-wrap: anywhere;
border: 1px solid var(--border);
border-radius: 0.75rem;
background: var(--surface);
}
.article-card p {
margin-bottom: 0;
color: var(--secondary);
line-height: 1.6;
}
.post-footer {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 0.75rem 1rem;
margin-top: 1rem;
color: var(--secondary);
font-size: 0.74rem;
}
.post-footer a {
display: inline-flex;
min-height: 1.5rem;
align-items: center;
font-weight: 650;
}
.counts {
font-variant-numeric: tabular-nums;
}
.state {
margin: 1.4rem 0 0;
padding: 1rem;
color: var(--secondary);
text-align: center;
}
.state p {
margin-top: 0;
}
[role="alert"].state {
color: var(--error);
}
.loading-rail {
position: relative;
padding: 0.8rem;
color: var(--secondary);
font-size: 0.78rem;
text-align: center;
}
.loading-rail::after {
position: absolute;
right: 0;
bottom: 0;
left: 0;
height: 3px;
background: linear-gradient(
90deg,
transparent 0%,
var(--accent) 45%,
transparent 100%
);
content: "";
animation: rail 1.1s var(--ease-in-out) infinite;
}
@keyframes rail {
0%,
100% {
opacity: 0.25;
transform: scaleX(0.35);
}
50% {
opacity: 1;
transform: scaleX(1);
}
}
@media (hover: hover) and (pointer: fine) {
a:hover {
color: var(--accent-hover);
}
.intent-form button:hover,
.list-picker-state button:hover,
.state button:hover {
border-color: var(--accent-hover);
background: var(--accent-hover);
}
.segmented label:hover {
border-color: var(--accent);
}
.segmented label:has(input:checked):hover {
border-color: var(--accent-hover);
background: var(--accent-hover);
}
.list-choices a:hover {
border-color: var(--accent);
color: var(--ink);
}
}
@media (max-width: 42rem) {
.app {
width: 100%;
min-height: 100vh;
margin: 0;
border-right: 0;
border-left: 0;
border-radius: 0;
}
.app-header,
.reader {
padding-right: 1rem;
padding-left: 1rem;
}
.tabs {
gap: 0.7rem;
}
.intent-form,
.intent-form:has(.segmented) {
grid-template-columns: 1fr;
}
.intent-form button {
width: 100%;
}
.post-header {
grid-template-columns: auto minmax(0, 1fr);
}
.post-header time {
grid-column: 2;
text-align: left;
}
.media-grid {
grid-template-columns: minmax(0, 1fr);
}
.post-footer {
align-items: flex-start;
flex-direction: column;
}
}
.quote .post-header time {
display: none;
}
@media (prefers-reduced-motion: reduce) {
.loading-rail::after {
animation: none;
}
}
/* Workbench layout: the routes are tools on a quiet side rail. */
.app {
display: grid;
grid-template-rows: auto minmax(0, 1fr);
width: 100%;
min-height: 100svh;
margin: 0;
overflow: visible;
border: 0;
border-radius: 0;
background: var(--paper);
box-shadow: none;
}
.app-header {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(8rem, 9.5rem);
align-items: start;
gap: var(--space-lg) var(--space-md);
padding: var(--space-lg) var(--space-md) 0;
border-bottom: var(--rule-hairline) solid var(--border);
background: var(--paper);
color: var(--ink);
}
.brand {
margin: 0;
color: var(--ink);
font-family: var(--font-display);
font-size: var(--text-md);
font-style: normal;
font-weight: 700;
letter-spacing: -0.02em;
line-height: 1.2;
}
.reader > .reader-title-long {
font-size: var(--text-display-long);
white-space: nowrap;
}
.tabs {
display: grid;
grid-column: 1 / -1;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 0;
}
.tabs a {
min-height: 2.75rem;
justify-content: center;
padding: var(--space-sm) var(--space-xs);
border-bottom: var(--rule-active) solid transparent;
color: var(--secondary);
font-size: var(--text-sm);
font-weight: 700;
white-space: nowrap;
transition:
color var(--dur-short) var(--ease-out),
background-color var(--dur-short) var(--ease-out);
}
.tabs a[aria-current="page"] {
border-bottom-color: var(--accent);
color: var(--accent);
font-weight: 700;
}
/* Hallmark · component: select · genre: editorial · theme: Garden
* states: default · hover · focus · active · disabled · loading · error · success
* contrast: pass
*/
.profile-switcher {
position: relative;
display: grid;
width: 100%;
min-width: 0;
gap: var(--space-2xs);
}
.profile-switcher label {
color: var(--secondary);
font-size: var(--text-xs);
font-weight: 700;
line-height: 1;
white-space: nowrap;
}
.profile-switcher select {
width: 100%;
min-height: 2.75rem;
padding: var(--space-xs) 1.8rem var(--space-xs) var(--space-sm);
border: var(--rule-hairline) solid var(--control-border);
border-radius: var(--radius-sm);
outline: var(--rule-active) solid transparent;
outline-offset: var(--space-3xs);
background: var(--paper);
color: var(--ink);
cursor: pointer;
font: inherit;
font-size: var(--text-sm);
text-overflow: ellipsis;
}
.profile-switcher select:active {
background: var(--color-paper-3);
}
.profile-switcher select:disabled {
cursor: not-allowed;
opacity: 0.55;
}
.profile-switcher[data-state="error"] select {
border-color: var(--error);
}
.profile-switcher[data-state="success"] select {
border-color: var(--color-success);
}
.profile-switcher-status {
position: absolute;
inset-block-start: 100%;
inset-inline-end: 0;
color: var(--error);
font-size: var(--text-xs);
white-space: nowrap;
}
.profile-switcher[data-state="success"] .profile-switcher-status {
color: var(--color-success);
}
.reader {
width: 100%;
min-width: 0;
padding: var(--space-xl) var(--space-md) var(--space-2xl);
}
.reader > h1 {
max-width: 18ch;
min-width: 0;
margin: 0;
overflow-wrap: anywhere;
color: var(--ink);
font-family: var(--font-display);
font-size: var(--text-display-s);
font-style: normal;
font-weight: 700;
letter-spacing: -0.035em;
line-height: 1.2;
}
.intro {
max-width: 46ch;
margin: var(--space-sm) 0 var(--space-xl);
color: var(--secondary);
font-size: var(--text-base);
line-height: 1.7;
}
.intent-form {
gap: var(--space-md);
align-items: end;
padding: var(--space-lg);
border: 0;
border-block: var(--rule-hairline) solid var(--border);
border-radius: 0;
background: var(--surface);
color: var(--ink);
}
.field {
gap: 0;
grid-template-rows: auto auto minmax(1lh, auto);
color: var(--secondary);
font-size: var(--text-sm);
font-weight: 700;
letter-spacing: 0;
}
.field > span:first-child {
margin-bottom: var(--space-xs);
}
.field input {
min-height: 2.75rem;
padding: var(--space-sm) var(--space-md);
border: var(--rule-hairline) solid var(--control-border);
border-radius: var(--radius-sm);
outline: var(--rule-active) solid transparent;
outline-offset: var(--space-3xs);
background: var(--paper);
color: var(--ink);
transition: background-color var(--dur-short) var(--ease-out);
}
.field input::placeholder {
color: var(--secondary);
}
.field input:focus-visible {
border-color: var(--control-border);
outline-color: var(--color-focus);
}
.field input[aria-invalid="true"] {
border-color: var(--error);
}
.field input:disabled {
border-color: var(--border);
background: var(--color-paper-3);
cursor: not-allowed;
opacity: 0.55;
}
.field-error {
min-height: 1lh;
margin-top: var(--space-2xs);
color: var(--error);
font-size: var(--text-sm);
}
.intent-form button,
.list-picker-state button,
.state button {
min-height: 2.75rem;
padding: var(--space-sm) var(--space-lg);
border: var(--rule-hairline) solid var(--accent);
border-radius: var(--radius-sm);
background: var(--paper);
color: var(--accent);
cursor: pointer;
font-weight: 700;
white-space: nowrap;
transition:
background-color var(--dur-short) var(--ease-out),
color var(--dur-short) var(--ease-out),
transform var(--dur-instant) var(--ease-out);
}
.intent-form button:active,
.list-picker-state button:active,
.state button:active {
transform: translateY(var(--rule-hairline));
}
button:disabled,
button[aria-disabled="true"] {
cursor: not-allowed;
opacity: 0.55;
}
button[aria-busy="true"] {
cursor: progress;
opacity: 0.7;
}
button[data-state="error"] {
border-color: var(--error);
color: var(--error);
}
button[data-state="success"] {
border-color: var(--color-success);
color: var(--color-success);
}
.segmented {
gap: var(--space-xs);
}
.segmented legend {
margin-bottom: var(--space-xs);
color: var(--secondary);
font-size: var(--text-sm);
letter-spacing: 0;
}
.segmented label {
min-height: 2.75rem;
padding: var(--space-sm) var(--space-md);
border: var(--rule-hairline) solid var(--control-border);
border-radius: var(--radius-sm);
background: var(--paper);
color: var(--ink);
font-size: var(--text-sm);
transition:
background-color var(--dur-short) var(--ease-out),
color var(--dur-short) var(--ease-out);
}
.segmented label:has(input:checked) {
border-color: var(--accent);
background: var(--accent);
color: var(--color-accent-ink);
}
.segmented label:has(input:focus-visible) {
outline: var(--rule-active) solid var(--color-focus);
outline-offset: var(--space-3xs);
}
.segmented label:active {
background: var(--color-paper-3);
}
.segmented label:has(input:disabled) {
cursor: not-allowed;
opacity: 0.55;
}
.check {
min-height: 2.75rem;
gap: var(--space-xs);
color: var(--ink);
font-size: var(--text-sm);
white-space: nowrap;
}
.list-picker {
margin-bottom: var(--space-xl);
padding: var(--space-lg);
border: 0;
border-block: var(--rule-hairline) solid var(--border);
border-radius: 0;
background: var(--surface);
color: var(--ink);
}
.list-picker h2 {
margin: 0 0 var(--space-md);
font-family: var(--font-display);
font-size: var(--text-md);
font-style: normal;
letter-spacing: -0.02em;
}
.list-picker-state {
color: var(--secondary);
font-size: var(--text-sm);
}
.list-choices {
gap: 0;
}
.list-choices a {
gap: var(--space-2xs);
padding: var(--space-md) var(--space-sm);
border: 0;
border-bottom: var(--rule-hairline) solid var(--border);
border-radius: 0;
background: transparent;
color: var(--ink);
}
.list-choices li:first-child a {
border-top: var(--rule-hairline) solid var(--border);
}
.list-choices a[aria-current="page"] {
border-color: var(--border);
background: var(--color-paper-3);
box-shadow: inset var(--rule-active) 0 var(--accent);
}
.list-choices small,
.list-choices p {
color: var(--secondary);
font-size: var(--text-sm);
}
.focal-post,
.feed {
gap: 0;
margin-top: var(--space-xl);
}
.focal-label {
margin: 0 0 var(--space-sm);
color: var(--accent);
font-size: var(--text-sm);
letter-spacing: 0;
}
.feed {
border-top: var(--rule-hairline) solid var(--border);
}
.post {
min-width: 0;
padding: var(--space-lg) 0;
border: 0;
border-bottom: var(--rule-hairline) solid var(--border);
border-radius: 0;
background: transparent;
color: var(--ink);
}
.current-post {
padding-inline: var(--space-lg);
border: var(--rule-hairline) solid var(--accent);
background: var(--paper);
box-shadow: none;
}
.post-header {
gap: var(--space-sm);
}
.avatar {
border-radius: 50%;
}
.handle,
.post-header time {
color: var(--secondary);
font-size: var(--text-sm);
}
.post-text {
margin: var(--space-md) 0;
font-size: var(--text-base);
line-height: 1.8;
}
.media-grid {
gap: var(--space-xs);
margin-top: var(--space-md);
border-radius: var(--radius-md);
background: var(--surface);
}
.media {
background: var(--surface);
}
.article-card,
.quote {
margin-top: var(--space-md);
padding: var(--space-md) 0 var(--space-md) var(--space-lg);
border: 0;
border-left: var(--rule-active) solid var(--border);
border-radius: 0;
background: transparent;
color: var(--ink);
}
.article-card p {
color: var(--secondary);
}
.post-footer {
gap: var(--space-sm) var(--space-lg);
margin-top: var(--space-lg);
color: var(--secondary);
font-size: var(--text-sm);
}
.post-footer a {
min-height: 2.75rem;
font-weight: 700;
white-space: nowrap;
}
.post-actions {
display: flex;
width: 100%;
flex-wrap: wrap;
justify-content: flex-end;
gap: var(--space-sm) var(--space-lg);
margin-inline-start: auto;
}
.state {
margin: var(--space-xl) 0 0;
padding: var(--space-lg);
color: var(--secondary);
}
.loading-rail {
padding: var(--space-md);
color: var(--secondary);
font-size: var(--text-sm);
}
.loading-rail::after {
height: var(--rule-active);
background: var(--accent);
}
@media (hover: hover) and (pointer: fine) {
.tabs a:hover {
background: var(--surface);
color: var(--accent-hover);
}
.profile-switcher select:not(:disabled):hover {
background: var(--color-paper-2);
}
.field input:hover {
background: var(--surface);
}
.intent-form button:hover,
.list-picker-state button:hover,
.state button:hover {
border-color: var(--accent-hover);
background: var(--accent);
color: var(--color-accent-ink);
}
.segmented label:hover {
border-color: var(--control-border);
background: var(--surface);
}
.segmented label:has(input:checked):hover {
border-color: var(--accent-hover);
background: var(--accent-hover);
color: var(--color-accent-ink);
}
.list-choices a:hover {
border-color: var(--border);
background: var(--color-paper-3);
color: var(--ink);
}
}
@media (min-width: 40rem) {
.intent-form {
grid-template-columns: minmax(0, 1fr) auto;
}
.intent-form:has(.segmented) {
grid-template-columns: minmax(0, 1fr) auto auto;
}
.intent-form:has(.segmented) .field {
grid-column: 1 / -1;
}
.intent-form:not(:has(.segmented)) > button {
align-self: start;
margin-top: calc(1lh + var(--space-xs));
}
.media-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.post-header {
grid-template-columns: auto minmax(0, 1fr) auto;
}
.post-header time {
grid-column: auto;
text-align: right;
}
.post-footer {
align-items: center;
flex-direction: row;
}
.post-actions {
width: auto;
}
}
@media (min-width: 52rem) {
body {
padding-block: var(--space-lg);
padding-inline: var(--space-xl);
}
.app {
grid-template-rows: auto 1fr;
grid-template-columns: 13.5rem minmax(0, 1fr);
width: min(74rem, 100%);
min-height: calc(100svh - (var(--space-lg) * 2));
margin: 0 auto;
border: var(--rule-hairline) solid var(--border);
border-radius: var(--radius-lg);
box-shadow: 0 var(--space-lg) var(--space-2xl) var(--color-shadow);
}
.app-header {
position: sticky;
top: var(--space-lg);
grid-template-columns: minmax(0, 1fr);
grid-row: 1;
grid-column: 1;
align-self: start;
gap: var(--space-xl);
padding: var(--space-xl) var(--space-lg);
border-right: var(--rule-hairline) solid var(--border);
border-bottom: 0;
border-radius: var(--radius-lg) 0 0 0;
}
.tabs {
grid-column: 1;
grid-template-columns: minmax(0, 1fr);
}
.tabs a {
justify-content: flex-start;
padding-inline: var(--space-md);
border-bottom: 0;
border-left: var(--rule-active) solid transparent;
}
.tabs a[aria-current="page"] {
border-bottom: 0;
border-left-color: var(--accent);
background: var(--surface);
}
.reader {
grid-row: 1 / span 2;
grid-column: 2;
max-width: none;
padding: var(--space-2xl) clamp(var(--space-xl), 6vw, var(--space-2xl))
var(--space-3xl);
}
}
@media (prefers-reduced-motion: reduce) {
.tabs a,
.field input,
.intent-form button,
.list-picker-state button,
.state button,
.segmented label {
transition-duration: var(--dur-instant);
transition-property: opacity;
}
}