.red68-page, .red68-home {
  --red68-ink: #173344;
  --red68-accent: #075f83;
  --red68-line: #d6e4eb;
  --red68-muted: #4c6371;
  --red68-paper: #fff;
  color: var(--red68-ink);
  font-family: "DM Sans", system-ui, sans-serif;
}

.red68-page { margin: 0; background: #f0f5f7; line-height: 1.55; }
.red68-page *, .red68-home * { box-sizing: border-box; }
.red68-page a, .red68-home a { color: var(--red68-accent); text-underline-offset: .16em; }
.red68-page :focus-visible, .red68-home :focus-visible { outline: 2px solid #007da7; outline-offset: 3px; }
.red68-page :is(h1, h2, h3), .red68-home :is(h2, h3) { line-height: 1.13; text-wrap: pretty; }
.red68-page h1 { margin: .2em 0 .6em; font-size: clamp(1.9rem, 4.4vw, 3rem); letter-spacing: -.035em; }
.red68-page h2 { margin: .45em 0 .6em; font-size: 1.24rem; }
.red68-page p, .red68-home p { margin-block: .45em .8em; }
.red68-page img, .red68-home img { display: block; max-width: 100%; height: auto; }
.red68-page [hidden], .red68-home[hidden] { display: none !important; }

.red68-top {
  display: flex; align-items: center; gap: 1rem; min-height: 60px; padding: .45rem max(1rem, calc((100% - 1100px) / 2));
  border-bottom: 1px solid var(--red68-line); background: var(--red68-paper); font-weight: 700;
}
.red68-brand { flex: 0 0 108px; }
.red68-brand img { width: 108px; height: 42px; object-fit: contain; }
.red68-work, .red68-archive { max-width: 1120px; margin: 0 auto; padding: clamp(1rem, 4vw, 2.5rem) 1rem 3rem; }
.red68-article { max-width: 1000px; padding: clamp(1rem, 4vw, 3rem); margin: 1.4rem auto; background: var(--red68-paper); border: 1px solid var(--red68-line); border-radius: 16px; }
.red68-article > header, .red68-prose { max-width: 740px; margin-inline: auto; }
.red68-article h1 { margin-block: .15em .4em; font-size: clamp(2rem, 5vw, 3.5rem); }
.red68-article figure { margin: 1.2rem 0; }
.red68-article figure img { width: 100%; border-radius: 9px; background: #e7eff3; }
.red68-article figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .9rem; margin-top: .45rem; font-size: .85rem; color: var(--red68-muted); }
.red68-article figcaption span { margin-left: auto; }
.red68-prose { font-size: 1.08rem; overflow-wrap: anywhere; }
.red68-prose h2 { margin-top: 1.2em; font-size: 1.42rem; }
.red68-standfirst { max-width: 65ch; font-size: clamp(1rem, 2vw, 1.3rem); color: var(--red68-muted); }
.red68-byline { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem .9rem; font-size: .9rem; color: var(--red68-muted); }
.red68-topic { color: var(--red68-accent); font-size: .8rem; font-weight: 750; letter-spacing: .035em; }
.red68-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .75rem; }
.red68-button, .red68-page button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .5rem .8rem; border: 1px solid #abc7d6;
  border-radius: 7px; background: var(--red68-paper); color: var(--red68-accent); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
}
.red68-page button:hover, .red68-button:hover { background: #e8f4f9; }
.red68-page .red68-primary { background: #08668b; color: #fff; border-color: #08668b; }
.red68-page .red68-primary:hover { background: #084d6a; }
.red68-page button:disabled { opacity: .6; cursor: wait; }
.red68-panel, .red68-block { min-inline-size: 0; margin: 0; padding: .9rem 1rem; background: #fff; border: 1px solid var(--red68-line); border-radius: 10px; }
.red68-panel legend, .red68-block legend { padding-inline: .35rem; color: var(--red68-accent); font-size: .9rem; font-weight: 700; }
.red68-form, .red68-form :is(.red68-panel, .red68-block), #red68-blocks { display: grid; gap: .8rem; }
.red68-form { margin-block: 1rem; }
.red68-columns, .red68-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.red68-admin-grid { margin-top: 1.5rem; }
.red68-page label { display: grid; gap: .3rem; min-width: 0; font-size: .92rem; font-weight: 650; }
.red68-page :is(input:not([type=hidden]), select, textarea) {
  width: 100%; max-width: 100%; min-height: 42px; padding: .45rem .6rem; border: 1px solid #abc4d2; border-radius: 6px;
  font: inherit; font-weight: 450; color: var(--red68-ink); background: #fff;
}
.red68-page textarea { resize: vertical; }
.red68-block figure { max-width: 220px; margin: 0; }
.red68-block figure img { border-radius: 6px; }
.red68-block figcaption { font-size: .8rem; }
.red68-block-actions button { min-height: 36px; font-size: .85rem; }
.red68-note { padding: .65rem .85rem; border: 1px solid var(--red68-line); border-radius: 8px; background: #e3f0f7; }
.red68-error { border-color: #cd8e86; background: #fff2ef; color: #702d23; }
.red68-list { margin: 0; padding: 0; list-style: none; background: var(--red68-paper); border: 1px solid var(--red68-line); border-radius: 10px; }
.red68-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; padding: .65rem .8rem; }
.red68-list li + li, .red68-author { border-top: 1px solid var(--red68-line); }
.red68-list span { font-size: .86rem; color: var(--red68-muted); }
.red68-author { padding-top: .6rem; margin-top: .6rem; }

.red68-home { margin: 1rem 0; padding: 1rem; border: 1px solid var(--red68-line); border-radius: 13px; background: #f4f8fa; }
.red68-home > header { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; margin-bottom: .85rem; }
.red68-home h2 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.red68-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin-top: .8rem; }
.red68-home .red68-cards { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.red68-card { min-width: 0; overflow: hidden; border: 1px solid var(--red68-line); border-radius: 10px; background: var(--red68-paper); }
.red68-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #dce9ef; }
.red68-card > div { padding: .85rem; overflow-wrap: anywhere; }
.red68-card h3 { margin: 0; font-size: 1.08rem; }
.red68-card h3 a { color: var(--red68-ink); text-decoration: none; }
.red68-card h3 a:hover { text-decoration: underline; }
.red68-card :is(p:not(.red68-topic), small) { color: var(--red68-muted); }
.red68-home .red68-card:first-child { grid-row: span 2; }
.red68-home .red68-card:first-child h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
.red68-home .red68-card:not(:first-child) { display: grid; grid-template-columns: minmax(95px, 33%) minmax(0, 1fr); }
.red68-home .red68-card:not(:first-child) img { height: 100%; min-height: 110px; }
.red68-home .red68-card:only-child { max-width: 700px; }
.red68-home .red68-cards:has(.red68-card:only-child) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 750px) {
  .red68-cards, .red68-home .red68-cards { grid-template-columns: minmax(0, 1fr); }
  .red68-home .red68-card:first-child { grid-row: auto; }
}
@media (max-width: 500px) {
  .red68-columns, .red68-admin-grid { grid-template-columns: minmax(0, 1fr); }
  .red68-article { margin-inline: .45rem; border-radius: 9px; }
  .red68-work .red68-article { margin-inline: 0; }
}
