/* Surf: ink, sea glass and warm paper. */
:root { --ink: #172b2c; --sea: #216b61; --sea-dark: #164f47; --paper: #f5f4ee; --white: #fffefa; --muted: #657570; --line: #dce2d8; --danger: #a33f31; --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif; --sans: "Avenir Next", Avenir, "Trebuchet MS", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.6; }
a { color: var(--sea); text-underline-offset: 4px; }
a:hover { color: var(--sea-dark); }
button, input, select, textarea { font: inherit; }
button, input[type=submit] { cursor: pointer; }
:focus-visible { outline: 3px solid #db9d40; outline-offset: 4px; }
h1, h2, p { margin-top: 0; }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.6vw, 50px); line-height: 1.12; letter-spacing: -1.3px; margin-bottom: 16px; }
h2 { font-size: 21px; font-weight: 500; line-height: 1.35; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--white); padding: 8px 15px; }
.skip-link:focus { top: 10px; }
.topbar { height: 84px; padding: 0 38px; display: flex; align-items: center; justify-content: space-between; background: var(--white); border-bottom: 1px solid var(--line); }
.wordmark { font-family: var(--serif); font-weight: bold; font-size: 45px; letter-spacing: -3px; text-decoration: none; color: var(--ink); line-height: 1; }
.brand-dot { color: var(--sea); }
.topbar-right { display: flex; align-items: center; gap: 25px; }
.languages { display: flex; gap: 4px; }
.languages a { font-size: 12px; padding: 6px 10px; text-decoration: none; font-weight: 600; color: var(--muted); }
.languages a[aria-current=page] { color: var(--ink); background: #e6ede3; border-radius: 4px; }
.identity { font-size: 13px; }
.text-button { padding: 0; border: none; background: none; color: var(--sea); text-decoration: underline; text-underline-offset: 4px; font-size: 13px; }
.shell { display: flex; min-height: calc(100svh - 84px); }
.sidebar { width: 230px; flex-shrink: 0; padding: 36px 24px; color: #d8e6db; background: var(--ink); display: flex; flex-direction: column; }
.overline { font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 25px; color: var(--muted); }
.sidebar .overline { color: #a0b4a8; padding-left: 12px; }
.sidebar nav { display: flex; flex-direction: column; gap: 5px; }
.sidebar nav a { display: block; color: #c5d5cd; text-decoration: none; padding: 11px 13px; border-radius: 4px; }
.sidebar nav a:hover, .sidebar nav a.active { background: #2c4441; color: #fff; }
.sidebar nav a.active { box-shadow: inset 3px 0 #adce9b; }
.sidebar-footer { margin-top: auto; padding: 70px 12px 0; font-size: 11px; color: #93ada0; }
.sidebar-footer p { margin: 14px 0 0; }
.sidebar .badge { color: #dcead5; border: 1px solid #496251; background: transparent; }
.main-content { width: 100%; min-width: 0; max-width: 1500px; padding: 48px clamp(22px, 4vw, 64px) 60px; }
.page-heading { max-width: 750px; margin-bottom: 36px; }
.page-heading .overline { margin-bottom: 18px; }
.subtitle { color: var(--muted); max-width: 580px; }
.heading-row { display: flex; justify-content: space-between; gap: 28px; align-items: flex-start; }
.heading-row > .button { margin-top: 32px; flex-shrink: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; background: var(--sea); border: 1px solid var(--sea); color: white; border-radius: 4px; padding: 11px 20px; font-weight: 500; font-size: 13px; text-decoration: none; transition: background .15s; }
.button:hover { background: var(--sea-dark); color: white; }
.button-secondary { background: transparent; color: var(--ink); border-color: #bdc9be; }
.button-secondary:hover { background: #e4ebdf; color: var(--ink); }
.button-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.button-danger:hover { background: var(--danger); }
.button-full { width: 100%; margin-top: 8px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 7px; padding: 28px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 42px; }
.stat { border: 1px solid var(--line); border-radius: 6px; background: var(--white); padding: 21px 25px; }
.stat span { color: var(--muted); font-size: 12px; }
.stat strong { display: block; font-family: var(--serif); font-size: 46px; font-weight: 400; line-height: 1.2; margin-top: 14px; }
.stat:first-child { background: #e4ecda; border-color: #d6e0c9; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 15px; }
.section-heading h2 { margin: 0; }
.section-heading a { font-size: 13px; }
.table-panel { padding: 0; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .7px; font-weight: 500; white-space: nowrap; }
th, td { padding: 18px 23px; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
td { font-size: 13px; }
td strong { font-weight: 500; }
td small { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.table-actions { display: flex; align-items: center; gap: 15px; }
.table-actions form { margin: 0; }
.badge { display: inline-block; color: var(--sea-dark); font-size: 10px; padding: 4px 9px; border-radius: 3px; background: #e9efe4; white-space: nowrap; }
.badge-draft { color: #756134; background: #f4ecd6; }
.danger-text { color: var(--danger); }
.empty-state { text-align: center; padding: 58px 25px; }
.empty-state h2 { font-family: var(--serif); font-size: 28px; }
.empty-state p { max-width: 450px; margin: 0 auto 25px; color: var(--muted); }
.empty-symbol { display: block; font-family: var(--serif); font-size: 62px; color: #6c9280; line-height: 1; margin-bottom: 25px; }
.field { margin-bottom: 22px; }
.field label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; color: var(--ink); background: #fffefa; border: 1px solid #b8c8bf; padding: 11px 13px; min-height: 46px; border-radius: 4px; }
.field textarea { resize: vertical; line-height: 1.65; }
.field small { display: block; color: var(--muted); font-size: 11px; margin-top: 7px; }
.field_with_errors input, .field_with_errors textarea, .field_with_errors select { border-color: var(--danger); }
.form-grid, .translation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; }
.form-panel { max-width: 720px; }
.cms-form > .panel { margin-bottom: 24px; }
.cms-form .translation-grid { margin-bottom: 28px; }
.form-actions { display: flex; align-items: center; gap: 14px; }
.form-row { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 28px; gap: 15px; font-size: 11px; }
.checkbox { display: flex; gap: 8px; align-items: center; }
.checkbox input { accent-color: var(--sea); width: 16px; height: 16px; }
.errors, .flash { border-radius: 4px; padding: 14px 18px; margin-bottom: 26px; font-size: 13px; }
.errors, .flash-alert { color: #7e342a; background: #f8e6df; border: 1px solid #e9c6bb; }
.errors ul { margin: 8px 0 0; padding-left: 20px; }
.flash-notice { color: var(--sea-dark); background: #e0eddb; border: 1px solid #c2d7b9; }
.danger-zone { margin-top: 45px; padding-top: 25px; border-top: 1px solid var(--line); max-width: 720px; }
.danger-zone p { color: var(--muted); }
.auth-story { position: relative; overflow: hidden; width: 47%; min-height: calc(100svh - 84px); padding: clamp(40px, 6vw, 100px); background: #dce7cd; display: flex; flex-direction: column; }
.auth-story .overline { color: #41634c; }
.auth-story h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4.3vw, 69px); letter-spacing: -2px; line-height: 1.08; white-space: pre-line; z-index: 1; }
.auth-story > p:not(.overline) { color: #47644f; max-width: 330px; font-size: 14px; z-index: 1; }
.story-signature { position: relative; margin-top: auto; padding-top: 160px; letter-spacing: 3px; font-size: 9px; color: #486751; }
.wave-art { position: absolute; width: 650px; height: 500px; bottom: -300px; left: -25px; transform: rotate(-20deg); pointer-events: none; }
.wave-art span { position: absolute; width: 650px; height: 500px; border-radius: 45%; border: 1px solid #8fad86; }
.wave-art span:nth-child(2) { transform: translateY(-35px); }
.wave-art span:nth-child(3) { transform: translateY(-70px); }
.auth-content { width: 53%; padding: 60px 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.auth-content > .flash { width: 100%; max-width: 400px; }
.auth-form { width: 100%; max-width: 400px; }
.auth-form h1 { font-size: 40px; }
.auth-form .subtitle { font-size: 13px; margin-bottom: 32px; }
.auth-form .overline { margin-bottom: 18px; }
.auth-footer { text-align: center; margin-top: 28px; font-size: 12px; color: var(--muted); }
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.content-card { background: var(--white); padding: 28px; border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column; }
.card-number { color: var(--muted); font-size: 10px; letter-spacing: 1.5px; margin-bottom: 30px; }
.content-card h2 { font-family: var(--serif); font-size: 28px; }
.content-card h2 a { color: var(--ink); text-decoration: none; }
.content-card p { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.read-link { margin-top: auto; padding-top: 16px; font-size: 12px; }
.profile-prompt { display: flex; justify-content: space-between; align-items: center; margin-top: 35px; padding: 25px 28px; background: #e6ecde; border-radius: 6px; gap: 20px; }
.profile-prompt h2 { margin-bottom: 5px; }
.profile-prompt p { margin: 0; color: var(--muted); font-size: 12px; }
.profile-prompt a { flex-shrink: 0; }
.count { font-size: 11px; border-radius: 50%; background: #e4ebdc; padding: 3px 9px; }
.back-link { display: inline-block; font-size: 12px; margin-bottom: 30px; }
.reading-panel { background: var(--white); border: 1px solid var(--line); max-width: 850px; padding: clamp(25px, 5vw, 64px); border-radius: 6px; }
.reading-date { color: var(--muted); font-size: 12px; margin-bottom: 35px; }
.page-body { font-size: 17px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 1000px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } .sidebar { width: 195px; padding: 28px 16px; } .translation-grid { grid-template-columns: 1fr; } .auth-story { padding: 45px 35px; } .heading-row { flex-wrap: wrap; gap: 0; margin-bottom: 25px; } .heading-row .page-heading { margin-bottom: 15px; } .heading-row > .button { margin-top: 0; } }
@media (max-width: 700px) { .topbar { height: 70px; padding: 0 20px; } .wordmark { font-size: 39px; } .topbar-right { gap: 12px; } .identity { display: none; } .shell { flex-direction: column; min-height: calc(100svh - 70px); } .sidebar { width: 100%; padding: 10px 14px; } .sidebar .overline, .sidebar-footer { display: none; } .sidebar nav { flex-direction: row; flex-wrap: wrap; gap: 3px; } .sidebar nav a { font-size: 11px; padding: 9px 11px; } .main-content { padding: 30px 20px 45px; } .stats-grid { gap: 12px; margin-bottom: 28px; } .stat { padding: 16px; } .stat strong { font-size: 38px; } .content-grid, .form-grid { grid-template-columns: 1fr; } .panel { padding: 22px; } .table-panel { padding: 0; } th, td { padding: 15px 18px; } .auth-story { width: 100%; min-height: auto; padding: 32px 25px; } .auth-story h2 { font-size: 37px; max-width: 420px; margin-bottom: 12px; } .auth-story .overline { margin-bottom: 17px; } .auth-story > p:not(.overline) { margin-bottom: 0; font-size: 12px; } .story-signature, .wave-art { display: none; } .auth-content { width: 100%; padding: 35px 25px; } .auth-form h1 { font-size: 34px; } .profile-prompt { align-items: flex-start; flex-direction: column; } .table-actions { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

.pagination { display: flex; align-items: center; gap: 16px; margin-top: 25px; font-size: 12px; flex-wrap: wrap; }
