:root {
  color-scheme: light dark;
  --bg: #f7f3ea;
  --card: #fffdf8;
  --ink: #1b2a33;
  --muted: #566670;
  --line: rgb(27 42 51 / 0.14);
  --sea: #1f4e6b;
  --sea-ink: #fff;
  --buoy: #b83a27;
  --ok: #17704a;
  --ok-bg: #e4f3ea;
  --warn-bg: #fbeadf;
  --focus: #1f6fe0;
  font:
    16px / 1.6 ui-serif,
    Georgia,
    "Iowan Old Style",
    "Palatino Linotype",
    serif;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1a20;
    --card: #16252d;
    --ink: #eef1ee;
    --muted: #a3b2ba;
    --line: rgb(238 241 238 / 0.16);
    --sea: #5d93ad;
    --sea-ink: #0b141a;
    --buoy: #f08a74;
    --ok: #6fd2a2;
    --ok-bg: #12301f;
    --warn-bg: #3a2418;
    --focus: #8ab4ff;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
a {
  color: var(--sea);
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--buoy);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}
.skip {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  background: var(--card);
  padding: 0.5rem 0.9rem;
  z-index: 9;
}
.skip:focus {
  top: 0.5rem;
}
header.top {
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.wrap,
main {
  width: min(46rem, 100% - 2rem);
  margin-inline: auto;
}
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
  padding: 0.6rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: auto;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand img {
  width: 26px;
  height: 26px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
  margin-left: -0.6rem;
  font:
    0.9375rem / 1.2 ui-sans-serif,
    system-ui,
    sans-serif;
}
nav a {
  padding: 0.6rem 0.65rem;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
}
nav a:hover,
nav a[aria-current] {
  color: var(--ink);
  background: var(--line);
}
main {
  padding: 1.5rem 0 3rem;
}
h1 {
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}
h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.3;
}
p {
  margin: 0 0 1rem;
  max-width: 40rem;
}
.sans,
.meta,
.tag,
button,
input,
textarea,
select,
label,
.steps,
small {
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.muted,
.meta {
  color: var(--muted);
}
.meta {
  font-size: 0.875rem;
  margin: 0.15rem 0 0.4rem;
}
.hero {
  margin: 0 0 1.25rem;
}
.hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 2;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--line);
}
.lede {
  font-size: 1.1rem;
  color: var(--muted);
}
.posts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.post {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1rem;
}
.post.pinned {
  border-color: var(--buoy);
}
.post h3 a {
  color: var(--ink);
  text-decoration: none;
}
.post h3 a:hover {
  text-decoration: underline;
}
.excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
}
.tag {
  display: inline-block;
  padding: 0.05rem 0.5rem;
  border-radius: 99px;
  font-size: 0.75rem;
  background: var(--line);
  color: var(--ink);
}
.tag.pin {
  background: var(--buoy);
  color: #fff;
}
.more {
  display: inline-block;
  margin-top: 1rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin: 1.25rem 0;
}
.card h2,
.card h3 {
  margin-top: 0;
}
.how ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
}
.how li {
  margin-bottom: 0.3rem;
}
article .body {
  font-size: 1.05rem;
  max-width: 38rem;
}
.preview {
  display: grid;
  gap: 0.3rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  max-width: 32rem;
  font:
    0.9rem / 1.45 ui-sans-serif,
    system-ui,
    sans-serif;
}
.preview img {
  width: 100%;
  max-height: 12rem;
  object-fit: cover;
  border-radius: 6px;
}
.pinned-note {
  background: var(--warn-bg);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  display: inline-block;
  font:
    0.9rem ui-sans-serif,
    system-ui,
    sans-serif;
}
button,
.btn {
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  border: 1px solid var(--sea);
  background: var(--sea);
  color: var(--sea-ink);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
button.ghost {
  background: transparent;
  color: var(--sea);
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
form {
  display: grid;
  gap: 0.9rem;
}
label {
  display: grid;
  gap: 0.25rem;
  font-weight: 600;
  font-size: 0.95rem;
}
label small,
.hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}
input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
}
textarea {
  min-height: 9rem;
  resize: vertical;
}
.two {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .two {
    grid-template-columns: 1fr 1fr;
  }
}
.steps {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
  font-size: 0.95rem;
}
.steps li {
  color: var(--muted);
}
.steps li::before {
  content: "\25CB\00a0";
}
.steps li.now {
  color: var(--ink);
  font-weight: 600;
}
.steps li.now::before {
  content: "\25D4\00a0";
}
.steps li.done {
  color: var(--ok);
}
.steps li.done::before {
  content: "\25CF\00a0";
}
.steps li.fail {
  color: var(--buoy);
  font-weight: 600;
}
.steps li.fail::before {
  content: "\2715\00a0";
}
.notice {
  background: var(--ok-bg);
  color: var(--ink);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  font:
    0.95rem ui-sans-serif,
    system-ui,
    sans-serif;
  margin: 0.75rem 0 0;
}
.notice.err {
  background: var(--warn-bg);
}
table {
  width: 100%;
  border-collapse: collapse;
  font:
    0.9rem ui-sans-serif,
    system-ui,
    sans-serif;
}
th,
td {
  text-align: left;
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
  font:
    0.95rem ui-sans-serif,
    system-ui,
    sans-serif;
}
.list li {
  overflow-wrap: anywhere;
}
.illus {
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.js-only {
  display: none;
}
.js .js-only {
  display: inline-flex;
}
.js .no-js {
  display: none;
}
footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font:
    0.875rem ui-sans-serif,
    system-ui,
    sans-serif;
}
footer .wrap {
  padding: 1rem 0 2rem;
}
footer p {
  margin: 0 0 0.3rem;
}
code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition: background 0.15s;
  }
}
[hidden] {
  display: none;
}
time {
  white-space: nowrap;
}
