/* domains4brands.com — public-facing pages only (PublicHome, PublicPackage).
   Deliberately a distinct visual identity from the internal DPM admin tool
   (which stays Tailwind gray/blue) — this is the storefront a branding
   agency actually sees. Concept: a type-foundry specimen sheet. A domain
   family's root name is treated like a typeface family; each TLD is a "cut"
   of that family, shown the way a specimen book shows weights/styles.
   Ledger/registry-green ink on paper, monospace for anything that's
   literally a technical string (TLD, price, domain name itself). */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,340;9..144,440;9..144,560;9..144,650&family=Instrument+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --pub-bg: #f4f5f0;
  --pub-bg-card: #ffffff;
  --pub-ink: #16211b;
  --pub-ink-dim: #55645a;
  --pub-accent: #1f5c3f;
  --pub-accent-strong: #163f2b;
  --pub-accent-ink: #ffffff;
  --pub-line: rgba(22, 33, 27, 0.14);
  --pub-line-strong: rgba(22, 33, 27, 0.28);
}

@media (prefers-color-scheme: dark) {
  :root {
    --pub-bg: #101613;
    --pub-bg-card: #171e1a;
    --pub-ink: #e6ece7;
    --pub-ink-dim: #92a196;
    --pub-accent: #52d19d;
    --pub-accent-strong: #7ee6b8;
    --pub-accent-ink: #0c1310;
    --pub-line: rgba(230, 236, 231, 0.14);
    --pub-line-strong: rgba(230, 236, 231, 0.26);
  }
}

:root[data-theme='dark'] {
  --pub-bg: #101613;
  --pub-bg-card: #171e1a;
  --pub-ink: #e6ece7;
  --pub-ink-dim: #92a196;
  --pub-accent: #52d19d;
  --pub-accent-strong: #7ee6b8;
  --pub-accent-ink: #0c1310;
  --pub-line: rgba(230, 236, 231, 0.14);
  --pub-line-strong: rgba(230, 236, 231, 0.26);
}

:root[data-theme='light'] {
  --pub-bg: #f4f5f0;
  --pub-bg-card: #ffffff;
  --pub-ink: #16211b;
  --pub-ink-dim: #55645a;
  --pub-accent: #1f5c3f;
  --pub-accent-strong: #163f2b;
  --pub-accent-ink: #ffffff;
  --pub-line: rgba(22, 33, 27, 0.14);
  --pub-line-strong: rgba(22, 33, 27, 0.28);
}

.pub-page {
  min-height: 100vh;
  background: var(--pub-bg);
  color: var(--pub-ink);
  font-family: 'Instrument Sans', system-ui, sans-serif;
}

.pub-shell {
  max-width: 880px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 6rem;
}

.pub-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pub-accent);
  margin-bottom: 0.9rem;
}

.pub-eyebrow::before {
  content: '// ';
  color: var(--pub-ink-dim);
}

.pub-heading {
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 560;
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-wrap: balance;
  color: var(--pub-ink);
}

.pub-body {
  color: var(--pub-ink-dim);
  line-height: 1.65;
  max-width: 62ch;
}

.pub-rule {
  border: none;
  border-top: 1px solid var(--pub-line);
  margin: 0;
}

.pub-card {
  background: var(--pub-bg-card);
  border: 1px solid var(--pub-line);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.pub-card:hover {
  border-color: var(--pub-line-strong);
}

.pub-chip {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--pub-ink-dim);
  border: 1px solid var(--pub-line);
  padding: 0.15rem 0.5rem;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.pub-mono {
  font-family: 'IBM Plex Mono', monospace;
  font-variant-numeric: tabular-nums;
}

.pub-price {
  font-family: 'IBM Plex Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--pub-ink);
}

.pub-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--pub-accent-ink);
  background: var(--pub-accent);
  border: 1px solid var(--pub-accent);
  padding: 0.5rem 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.pub-btn:hover {
  background: var(--pub-accent-strong);
  border-color: var(--pub-accent-strong);
}

.pub-btn-ghost {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--pub-ink);
  background: transparent;
  border: 1px solid var(--pub-line-strong);
  padding: 0.5rem 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: border-color 0.15s ease, background 0.15s ease;
  cursor: pointer;
}

.pub-btn-ghost:hover {
  border-color: var(--pub-accent);
  background: color-mix(in srgb, var(--pub-accent) 8%, transparent);
}

.pub-input {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-size: 0.9rem;
  background: var(--pub-bg-card);
  border: 1px solid var(--pub-line-strong);
  color: var(--pub-ink);
  padding: 0.55rem 0.7rem;
}

.pub-input:focus {
  outline: 2px solid var(--pub-accent);
  outline-offset: -1px;
}

.pub-input::placeholder {
  color: var(--pub-ink-dim);
}

.pub-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pub-ink-dim);
}

.pub-colophon {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--pub-ink-dim);
}

/* Mobile fix (2026-08-16) — the domain-name/price/button row had no wrap
   behavior at all, so a longer name like carevinea.foundation collided with
   the price and button on narrow viewports. min-width: 0 on the name is the
   actual fix: flex items default to min-width: auto and refuse to shrink
   below their content size without it, which is what was forcing the row to
   overflow instead of wrap. */
.pub-domain-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.pub-domain-name {
  flex: 1 1 12ch;
  min-width: 0;
  overflow-wrap: anywhere;
}

.pub-domain-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
  margin-left: auto;
}

@media (max-width: 480px) {
  .pub-domain-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .pub-domain-actions {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }
  .pub-shell {
    padding: 3rem 1.25rem 4rem;
  }
}

/* .pub-heading is reused at several sizes (page H1s, card titles, smaller
   sub-headings) via a Tailwind text-*xl utility alongside it, so the fix
   can't live on .pub-heading itself without clobbering the smaller ones.
   .pub-h1 is a new, dedicated class for the actual page-title H1s only —
   replaces their fixed text-5xl/6xl Tailwind classes, which overflowed on a
   longer family name like "Happyendinghome" on a narrow phone. */
.pub-h1 {
  font-size: clamp(2.25rem, 8vw, 3.75rem);
}
