:root {
  color-scheme: light;
  --paper: #f8f9f5; --white: #fff; --ink: #192e2b; --muted: #546661;
  --line: #c8d3ca; --accent: #15594e; --hover: #0d423a; --tint: #e7eee5;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Baskervville", "Baskerville", Georgia, serif;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--body); }
a, .text-button { color: var(--accent); text-underline-offset: .22em; }
a:hover, .text-button:hover { color: var(--hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.topbar { border-bottom: 1px solid var(--line); background: var(--white); }
.bar, .account, .actions, .heading, .brand { display: flex; align-items: center; gap: 1rem; }
.bar { min-height: 68px; justify-content: space-between; }
.brand { text-decoration: none; color: var(--ink); font-size: 1.15rem; font-weight: 740; gap: .7rem; white-space: nowrap; }
.mark, .sheet { position: relative; display: inline-block; border: 2px solid var(--accent); background: var(--paper); }
.mark { height: 21px; width: 16px; box-shadow: -4px 4px var(--tint), -5px 5px var(--accent); }
.mark::after, .sheet::after { content: ""; position: absolute; top: 35%; left: 20%; right: 20%; height: 2px; background: var(--accent); box-shadow: 0 4px var(--accent); }
.account, small, .hint, .back { font-size: .88rem; }
.account, .hint, small, p { color: var(--muted); }
.text-button { background: none; padding: .4rem 0 .4rem .85rem; border: 0; border-left: 1px solid var(--line); text-decoration: underline; }
input, button, select { font: inherit; }
button, select, .person, input[type="checkbox"] { cursor: pointer; }
.workspace, .entrance { padding-block: clamp(2.5rem, 6vw, 5rem); }
.entrance { max-width: 700px; margin-top: 5vh; }
.narrow { max-width: 640px; }
.heading { justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.04em; line-height: 1.08; margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.6rem, 5.5vw, 4.3rem); }
h2 { font-size: 2rem; }
.lede { margin: .7rem 0 0; max-width: 58ch; }
.entrance .button { margin-top: 1.75rem; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .55rem; min-height: 44px; padding: .65rem 1.15rem; text-decoration: none; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: var(--white); font-weight: 620; line-height: 1.25; }
.button:hover { background: var(--hover); color: var(--white); }
.secondary { color: var(--accent); background: var(--white); border-color: var(--line); }
.secondary:hover { background: var(--tint); color: var(--accent); }
.plus { font-weight: 400; font-size: 1.5em; line-height: .7; }
.empty { margin-top: 2.6rem; border-block: 1px solid var(--line); text-align: center; padding: clamp(3rem, 9vw, 7rem) 1rem; }
.empty p { margin: .6rem auto 0; max-width: 40ch; }
.sheet { height: 40px; width: 31px; margin-bottom: 1.1rem; box-shadow: -5px 5px var(--tint), -6px 6px var(--accent); }
table { border-collapse: collapse; width: 100%; margin-top: 2.5rem; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 1rem .8rem; overflow-wrap: anywhere; }
th:first-child, td:first-child { padding-left: 0; }
th { font-weight: 500; color: var(--muted); border-top: 1px solid var(--line); font-size: .85rem; }
.site-link { font-weight: 650; }
small { display: block; margin-top: .1rem; }
.back { display: inline-block; margin-bottom: 1.3rem; }
.editor, .permalink { display: grid; gap: .55rem; margin-top: 1.8rem; }
label, legend { font-weight: 620; }
input:not([type="checkbox"]), select { display: block; width: 100%; min-width: 0; min-height: 44px; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 5px; padding: .6rem .7rem; }
input[type="file"] { border-style: dashed; padding: 1rem; }
input::file-selector-button { margin-right: .7rem; }
input[type="checkbox"] { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); flex: none; }
.hint { font-weight: 400; margin: 0 0 .6rem; }
.actions { margin: 1rem 0; }
fieldset { min-width: 0; margin: 0; border: 0; padding: 0; }
legend { padding: 0 0 .65rem; }
.person { display: flex; align-items: center; gap: .65rem; padding: .65rem .2rem; border-top: 1px solid var(--line); font-weight: 500; overflow-wrap: anywhere; }
.person small { font-weight: 400; }
.person[hidden] { display: none; }
#people-filter { margin-bottom: .8rem; }
#people-search { margin-top: .3rem; }
#people-list { max-height: 24rem; overflow-y: auto; }
.permalink { padding-top: 1.4rem; border-top: 1px solid var(--line); }
.viewer h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
iframe { display: block; width: 100%; height: 72vh; min-height: 320px; margin-top: 1.7rem; border: 1px solid var(--line); background: var(--white); }
.sites-entry #sites-workspace { position: fixed; inset: 0; height: 100%; min-height: 0; margin: 0; border: 0; }
@media (max-width: 650px) {
  .wrap { width: calc(100% - 32px); }
  .bar { min-height: 58px; }
  .account { gap: .4rem; }
  .account > span { max-width: 24vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  th:last-child, td:last-child { display: none; }
  th, td { padding: .75rem .35rem; }
}
