/* abhigram.com. Hand-set, no framework, no web fonts: the system's own serif and sans. */

:root {
  --paper: #f7f4ee;
  --ink: #1d1b18;
  --muted: #5f5a52;
  --rule: #d9d2c5;
  --accent: #1f5c4a;
  --accent-ink: #ffffff;
  --card: #fffdf9;
  --warn: #8a3b12;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171614;
    --ink: #ece7de;
    --muted: #a59e92;
    --rule: #34312c;
    --accent: #6fbfa4;
    --accent-ink: #10201b;
    --card: #1f1d1a;
    --warn: #e39a6f;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1rem; }

header.top { border-bottom: 1px solid var(--rule); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-weight: 600; }
.brand img { width: 30px; height: 30px; }
nav a { color: var(--muted); text-decoration: none; margin-left: 1.1rem; font-size: .95rem; }
nav a:hover { color: var(--ink); }

h1, h2, h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
}
h1 { font-size: 2.3rem; margin: 3rem 0 1rem; }
h2 { font-size: 1.55rem; margin: 3rem 0 .8rem; }
h3 { font-size: 1.15rem; margin: 1.6rem 0 .4rem; }
p, li { color: var(--ink); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 36rem; }
a { color: var(--accent); }
hr { border: 0; border-top: 1px solid var(--rule); margin: 3rem 0; }
small, .note { color: var(--muted); font-size: .9rem; }

ul.plain { padding-left: 1.1rem; }
ul.plain li { margin: .35rem 0; }

table.plans { width: 100%; border-collapse: collapse; margin: 1rem 0 .5rem; }
table.plans th, table.plans td { text-align: left; padding: .75rem .5rem; border-bottom: 1px solid var(--rule); }
table.plans th { font-size: .85rem; color: var(--muted); font-weight: 500; }
table.plans td.price { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.plans td:last-child { text-align: right; }

button, .button {
  font: inherit;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  padding: .45rem .95rem;
  border-radius: 6px;
  cursor: pointer;
}
button.quiet { background: transparent; color: var(--accent); }
button:disabled { opacity: .55; cursor: default; }

.panel {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.2rem 1.2rem 1.4rem;
  margin: 1.5rem 0;
}
.panel[hidden] { display: none; }
label { display: block; font-size: .9rem; color: var(--muted); margin: .9rem 0 .3rem; }
input {
  font: inherit;
  width: 100%;
  max-width: 22rem;
  padding: .5rem .6rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}
input:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }
.status { margin-top: .9rem; min-height: 1.4em; }
.status.error { color: var(--warn); }

footer { border-top: 1px solid var(--rule); margin-top: 4rem; padding: 1.5rem 0 3rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .9rem; color: var(--muted); }
footer a { color: var(--muted); }

@media (max-width: 34rem) {
  h1 { font-size: 1.85rem; }
  nav a { margin-left: .8rem; }
  table.plans th:nth-child(3), table.plans td:nth-child(3) { display: none; }
}
