/* Gokin — the published site. The app's own palette and typeface, in both appearances. */

:root {
  --bg: #000000;
  --surface: #101318;
  --line: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text2: #9ba1a8;
  --text3: #5c6167;
  --measure: 44rem;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #e2dacb;
    --surface: #ede7db;
    --line: rgba(26, 22, 18, 0.07);
    --text: #1a1612;
    --text2: #554c43;
    --text3: #8a8175;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text2);
  font-family: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- header ------------------------------------------------------------- */

.site-head {
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
  margin-bottom: 3rem;
}

.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
}

.wordmark {
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.9rem;
}

.wordmark .dia {
  color: var(--text2);
  margin-right: 0.5rem;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
}

.site-nav a {
  color: var(--text2);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--text);
}

/* --- type --------------------------------------------------------------- */

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.25;
  font-weight: 700;
  margin: 2.75rem 0 1rem;
}

h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  margin-top: 0;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.35rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p,
ul,
ol,
table {
  margin: 0 0 1.1rem;
}

strong {
  color: var(--text);
  font-weight: 600;
}

a {
  color: var(--text);
  text-underline-offset: 0.2em;
  text-decoration-color: var(--text3);
}

a:hover {
  text-decoration-color: var(--text);
}

code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.88em;
  color: var(--text);
  background: var(--surface);
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
}

ul,
ol {
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.5rem;
}

li::marker {
  color: var(--text3);
}

.lede {
  font-size: 1.1rem;
  color: var(--text2);
}

.updated {
  color: var(--text3);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- tables ------------------------------------------------------------- */

.table-scroll {
  overflow-x: auto;
  margin-bottom: 1.1rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92rem;
  margin-bottom: 0;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.9rem 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

/* --- home --------------------------------------------------------------- */

.hero {
  padding-bottom: 1rem;
}

.hero p {
  font-size: 1.15rem;
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  margin-bottom: 1.5rem;
}

.card {
  background: var(--surface);
  border-radius: 1rem;
  padding: 1.25rem;
}

.card h3 {
  margin-top: 0;
}

.card p:last-child {
  margin-bottom: 0;
}

.plans {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.plan {
  background: var(--surface);
  border-radius: 1rem;
  padding: 1.25rem;
}

.plan .price {
  color: var(--text);
  font-size: 1.6rem;
  font-weight: 700;
  display: block;
  line-height: 1.2;
}

.plan .period,
.plan .trial {
  display: block;
  font-size: 0.9rem;
}

.note {
  color: var(--text3);
  font-size: 0.9rem;
}

/* --- footer ------------------------------------------------------------- */

.site-foot {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  padding: 2rem 0 3rem;
  color: var(--text3);
  font-size: 0.85rem;
}

.site-foot a {
  color: var(--text2);
}

.site-foot p {
  margin-bottom: 0.5rem;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}
