:root {
  --bg: #f7f8f6;
  --ink: #1b2129;
  --muted: #5e6873;
  --line: #dde2dc;
  --green: #1e6b4f;
  --green-tint: #e7f1eb;
  --danger: #9c3a2e;
  --sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 1.4rem 1.25rem 0;
}
.wordmark {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wordmark::after { content: "."; color: var(--green); }
.top-right { font-size: 0.85rem; color: var(--muted); display: flex; gap: 0.9rem; align-items: baseline; }
.top-right .email { font-family: var(--mono); font-size: 0.8rem; }

.view {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 2.2rem 1.25rem 3rem;
  flex: 1;
}

.foot {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.25rem 1.6rem;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

h1 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 0.35rem; }
h2 { font-size: 0.95rem; font-weight: 600; margin: 2.2rem 0 0.6rem; }
p { margin: 0.3rem 0 1rem; }
.sub { color: var(--muted); }

button, .btn {
  font: inherit;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
}
button.primary { background: var(--green); border-color: var(--green); color: #fff; font-weight: 500; }
button.quiet { border: 0; background: transparent; color: var(--muted); padding: 0.2rem 0.3rem; }
button.quiet:hover { color: var(--ink); }
button.danger { color: var(--danger); border-color: #e3c8c3; }
button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
button[disabled] { opacity: 0.55; cursor: default; }

input[type="text"], input[type="email"] {
  font: inherit;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  width: 100%;
}
.row-form { display: flex; gap: 0.6rem; }
.row-form input { flex: 1; }

.notice {
  background: var(--green-tint);
  border: 1px solid #cfe3d8;
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  margin: 0 0 1.2rem;
}
.notice.error { background: #f7e9e6; border-color: #e3c8c3; }

/* Apps list: rows, not cards. */
.list { border-top: 1px solid var(--line); margin-top: 1.2rem; }
.list-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.15rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.list-row:hover { background: #fdfefd; }
.list-row .name { font-weight: 500; }
.list-row .slug { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.tag {
  font-size: 0.72rem;
  color: var(--green);
  background: var(--green-tint);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  white-space: nowrap;
}
.tag.open { color: var(--muted); background: #eef0ee; }

/* App detail: the URL is the hero. */
.url-hero {
  font-family: var(--mono);
  font-size: 1.05rem;
  word-break: break-all;
  border-bottom: 2px solid var(--green);
  padding-bottom: 0.6rem;
  margin: 1rem 0 0.4rem;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: baseline;
}
.url-hero a { color: var(--ink); text-decoration: none; }
.url-hero a:hover { color: var(--green); }

.kv-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.kv-line .mono { font-family: var(--mono); font-size: 0.82rem; }
.hint { color: var(--muted); font-size: 0.82rem; margin-top: 0.4rem; }

.center-card { max-width: 26rem; margin: 14vh auto 0; }
.section-danger { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); }

@media (max-width: 480px) {
  .row-form { flex-direction: column; }
  .url-hero { flex-direction: column; }
}
