:root {
  color-scheme: light;
  --ink: #1a1714;
  --muted: #6b645b;
  --paper: #f3efe6;
  --card: #fffcf7;
  --line: #e3d9c8;
  --wash: #f7f1e6;
  --accent: #9a3412;
  --ok: #1f6b45;
  --danger: #9f1239;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16.5px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

.top {
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}

.bar, main { width: min(42rem, calc(100% - 2rem)); margin: 0 auto; }
body.home .bar, body.home main { width: min(58rem, calc(100% - 2.4rem)); }
body.home main { padding-bottom: 0; }
body.home { overflow-x: hidden; }
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  min-height: 3.6rem;
  width: min(52rem, calc(100% - 2rem));
}
body.home main, body.dash main { width: min(52rem, calc(100% - 2rem)); }
main { padding-bottom: 4.5rem; }

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.badge {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 0.18rem;
  background:
    linear-gradient(135deg, var(--ink) 0 58%, var(--accent) 58% 100%);
}

.account { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 0.85rem; }
.account a.nav, .bar > a.nav { color: var(--ink); text-decoration: none; font-size: 0.92rem; }
.account a.nav:hover, .bar > a.nav:hover { color: var(--accent); }
.handle {
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.82rem;
}

h1, h2, h3 { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-weight: 560; }
h1 { font-size: clamp(2.15rem, 5vw, 3.15rem); line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 0.7rem; font-weight: 500; }
h2 { font-size: 1.45rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.35rem; }
h3 { font-size: 1.05rem; margin: 0 0 0.4rem; }

a { color: var(--accent); }
p { margin: 0.3rem 0 0.85rem; }
.muted { color: var(--muted); }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 38rem; }
.error { color: var(--danger); }

.hero { margin: 0.4rem 0 1.8rem; max-width: 40rem; }
body.home .top { margin-bottom: 0; }
body.home .hero { max-width: 40rem; margin: 2.2rem 0 0; }
body.home h1 {
  font-size: clamp(3.05rem, 8vw, 4.7rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  max-width: 11ch;
}
body.home .lede {
  margin-top: 1.15rem;
  font-size: 1.22rem;
  line-height: 1.45;
  max-width: 34rem;
  color: var(--ink);
}
.example {
  margin-top: 1.1rem;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 1rem;
  color: var(--ink);
}
body.home .example {
  display: inline-block;
  margin-top: 1.6rem;
  padding: 0.8rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  font-size: clamp(1.02rem, 2.4vw, 1.35rem);
  letter-spacing: -0.03em;
}
.example span { color: var(--accent); }
.origin {
  margin: 0.85rem 0 0;
  max-width: 32rem;
  color: var(--muted);
}
.hero-go { margin: 1.35rem 0 0; }
.hero-go .button { display: inline-block; padding: 0.7rem 1rem; }

.steps {
  list-style: none;
  padding: 0;
  margin: 2.6rem 0 0;
}
.steps li {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 0.2rem 1.1rem;
  align-items: baseline;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .n {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.steps h2 { font-size: clamp(1.55rem, 3vw, 2rem); margin: 0 0 0.3rem; }
.steps p { margin: 0; max-width: 36rem; }
.steps .url {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
}
@media (max-width: 560px) {
  .steps li { grid-template-columns: 1fr; }
}

.offer {
  margin: 3rem 0 0;
  padding: 2.6rem 0 3.2rem;
  background: #e7dfd0;
  border-top: 1px solid var(--line);
  box-shadow: 0 0 0 100vmax #e7dfd0;
  clip-path: inset(0 -100vmax);
  display: grid;
  gap: 0.35rem 3rem;
}
@media (min-width: 860px) {
  .offer { grid-template-columns: 1fr 1fr; }
  .offer .already { grid-column: 2; }
}
.offer h2 {
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0.15rem 0 0.7rem;
}
.offer-copy p:last-child { max-width: 34rem; }
form.hold label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
form.hold input {
  padding: 0.72rem 0.75rem;
  background: var(--card);
}
form.hold button[type="submit"] {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.8rem 1rem;
  font-size: 1.05rem;
}
.hold .hint { margin: 0.55rem 0 0; }
.already {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  align-items: center;
  margin-top: 0.4rem;
}
.already p { margin: 0; color: var(--muted); }

.split { display: grid; gap: 1rem; }
@media (min-width: 800px) {
  .split { grid-template-columns: 1fr 1fr; }
}

.panel, .project {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 1.15rem 1.2rem 1.25rem;
  margin: 0 0 1rem;
}
.section { margin: 1.6rem 0 0.7rem; }

.kicker {
  margin: 0 0 0.15rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

form label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.28rem;
  margin: 0.75rem 0;
  font-size: 0.92rem;
}
label.check { flex-direction: row; align-items: center; gap: 0.45rem; }
.hint { color: var(--muted); font-size: 0.82rem; font-weight: 400; }

input[type="text"],
input[type="email"],
input[type="url"],
input:not([type]),
select,
textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  padding: 0.5rem 0.65rem;
  width: 100%;
}
textarea { min-height: 7rem; resize: vertical; }
select { width: auto; background: var(--card); }

button, .button, .ghost {
  font: inherit;
  border-radius: 0.45rem;
  padding: 0.5rem 0.8rem;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}
button, .button {
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
}
.ghost, button.ghost {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}
button.text, a.text {
  background: none;
  border: 0;
  padding: 0.35rem 0.15rem;
  color: var(--accent);
}
button.danger {
  background: var(--danger);
  border-color: var(--danger);
  color: white;
}
a.danger, button.text.danger { color: var(--danger); }
button:hover, .button:hover { filter: brightness(1.15); }
.ghost:hover, button.ghost:hover { background: var(--wash); filter: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

input[type="checkbox"], input[type="file"], input[type="hidden"] {
  width: auto;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
input[type="file"] { font: inherit; color: var(--muted); }

.hp { position: absolute; left: -10000px; height: 0; overflow: hidden; }

.linkrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin: 0.7rem 0 0.2rem;
  padding: 0.3rem 0.3rem 0.3rem 0.7rem;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
}
.linkrow code {
  flex: 1 1 12rem;
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.82rem;
}
.linkrow .ghost { background: var(--card); }

.identity { display: grid; gap: 0.4rem; }
.identity-top { display: flex; gap: 1rem; align-items: flex-start; }
.fields { margin-top: 0.4rem; }

.avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--wash);
  border: 1px solid var(--line);
  flex: none;
}
.avatar.lg { width: 6.75rem; height: 6.75rem; }
.letter {
  display: grid;
  place-items: center;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 1.5rem;
  color: var(--ink);
}
.avatar.lg.letter { font-size: 2.2rem; }

.project-head, .toolbar, form.inline, .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.8rem;
  align-items: center;
}
.project-head { justify-content: space-between; align-items: flex-start; gap: 0.8rem; flex-wrap: nowrap; }
form.names {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  margin: 0;
}
form.names input {
  font: inherit;
  background: transparent;
  border: 0;
  border-radius: 0.35rem;
  padding: 0.02rem 0.3rem;
  margin-left: -0.3rem;
  width: 100%;
  box-shadow: none;
}
form.names input.title {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.45rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  text-overflow: ellipsis;
}
form.names input.title::placeholder { color: var(--ink); opacity: 1; }
form.names input.slug {
  width: auto;
  max-width: 100%;
  field-sizing: content;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: var(--muted);
}
form.names input:hover,
form.names input:focus { background: var(--wash); }
form.names input.slug:focus { color: var(--ink); }
.project-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex: none;
  padding-top: 0.28rem;
}
.project-actions form { margin: 0; }
button.switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ok);
  padding: 0.16rem 0.55rem 0.16rem 0.28rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}
button.switch .knob {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--ok);
}
button.switch.private { color: var(--accent); }
button.switch.private .knob { background: var(--accent); }
button.switch:hover { filter: none; background: var(--wash); }
a.icon {
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.45rem;
  color: var(--muted);
  text-decoration: none;
}
a.icon.danger { color: var(--danger); }
a.icon:hover { background: var(--wash); }
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.45rem;
  align-items: baseline;
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}
form.inline { margin: 0; }
form.inline label { flex-direction: row; align-items: center; margin: 0; width: auto; }
form.inline input[type="email"] { width: 16rem; max-width: 100%; }

.share { margin-top: 0.3rem; padding-top: 0.7rem; border-top: 1px solid var(--line); }
.chips { list-style: none; padding: 0; margin: 0.3rem 0 0.6rem; }
.chips li {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  padding: 0.25rem 0;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.86rem;
}

.connect ol { margin: 0.5rem 0 0.2rem; padding-left: 1.25rem; }
.connect li { margin: 0.4rem 0; }
.connect summary { cursor: pointer; color: var(--accent); }
.connect .hint { display: block; margin-top: 0.7rem; }

.empty {
  border: 1px dashed var(--line);
  border-radius: 0.8rem;
  padding: 1rem 1.1rem;
  color: var(--muted);
  background: transparent;
}

.who { margin-bottom: 1.6rem; }
.host {
  margin: 0;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92rem;
}
.bio {
  max-width: 38rem;
  margin-top: 1rem;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.5;
  white-space: pre-wrap;
}
.works { list-style: none; padding: 0; margin: 0.4rem 0 0; }
.works a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 1.35rem;
}
.works li:last-child a { border-bottom: 1px solid var(--line); }
.works a span:first-child { min-width: 0; overflow-wrap: anywhere; }
.works a:hover { color: var(--accent); }
.works .go {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
}

.messages { list-style: none; padding: 0; margin: 0 0 1rem; }
.messages li {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ok);
  border-radius: 0.45rem;
  padding: 0.55rem 0.75rem;
  margin: 0 0 0.45rem;
}
.messages .error { border-left-color: var(--danger); color: var(--danger); }

.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  padding: 0.45rem 0.6rem 0.45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  vertical-align: baseline;
}
th { color: var(--muted); font-weight: 550; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }

.narrow { max-width: 34rem; }
.errorlist { color: var(--danger); padding-left: 1.1rem; }
