/*
 * showip styles.
 *
 * Tokens, fonts and the .btn treatment are lifted from deasil.works so the two
 * sites read as one brand. Hand-written rather than Tailwind: the whole sheet
 * is a few hundred lines, and a build step would defeat the point of a site
 * that deploys by copying files onto a cPanel host.
 *
 * Dark only, matching deasil.works.
 */

:root {
  --color-bg: #0c1014;
  --color-bg-2: #0f141b;
  --color-surface-1: #141a23;
  --color-border: #242c3d;
  --color-border-2: #34405a;
  --color-text: #eceff6;
  --color-text-2: #b6becf;
  --color-text-mute: #a6a9b2;
  --color-text-mute-2: #4b5468;
  --color-logo-bowl: #6e7790;
  --color-copper: #d4923b;
  --color-copper-2: #c7752a;
  --color-copper-3: #a85f1f;
  --color-copper-soft: #d4923b1a;
  --color-copper-line: #d4923b4d;

  --font-sans: "IBM Plex Sans", -apple-system, system-ui, sans-serif;
  --font-serif: "IBM Plex Serif", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --container-max: 1340px;
}

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

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--color-copper-2);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  line-height: 1.2;
}

dl,
dd,
p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}

.mono {
  font-family: var(--font-mono);
}

.muted {
  color: var(--color-text-mute-2);
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--color-bg);
  background: var(--color-copper);
  border: 1px solid var(--color-copper);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.btn:hover {
  color: var(--color-bg);
  background: var(--color-copper-2);
  border-color: var(--color-copper-2);
}

.btn:disabled {
  cursor: not-allowed;
  color: var(--color-text-mute-2);
  background: transparent;
  border-color: var(--color-border);
}

.btn--outline {
  color: var(--color-text);
  background: none;
  border-color: var(--color-border-2);
}

.btn--outline:hover {
  color: var(--color-copper);
  background: var(--color-copper-soft);
  border-color: var(--color-copper);
}

:focus-visible {
  outline: 2px solid var(--color-copper);
  outline-offset: 2px;
}

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

.header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.logo {
  display: block;
  flex: none;
  width: auto;
  transition: opacity 0.2s;
}

.brand:hover .logo {
  opacity: 0.82;
}

.logo__letter,
.logo__d-stem {
  fill: var(--color-text);
}

.logo__letter {
  stroke: var(--color-text);
  stroke-width: 0.79px;
  stroke-miterlimit: 10;
}

.logo__d-stem {
  fill: var(--color-copper);
}

.logo__d-bowl {
  fill: var(--color-logo-bowl);
}

/* ------------------------------------------------------------------- hero */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-copper);
}

.hero {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, var(--color-bg-2), var(--color-bg));
  border-bottom: 1px solid var(--color-border);
}

.hero__ip {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: clamp(28px, 6.4vw, 64px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-copper);

  /* IPv6 addresses are long; wrap them rather than letting the page scroll. */
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero__ip--empty {
  font-size: clamp(24px, 4vw, 40px);
  color: var(--color-text-2);
}

.hero__meta {
  margin-top: 16px;
  color: var(--color-text-2);
}

.hero__note {
  font-size: 13px;
  color: var(--color-text-mute);
}

.hero__actions {
  margin-top: 28px;
}

.tag {
  display: inline-block;
  padding: 3px 9px;
  margin-inline: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-copper);
  background: var(--color-copper-soft);
  border: 1px solid var(--color-copper-line);
}

/* --------------------------------------------------------------- sections */

.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--color-border);
}

.section__title {
  font-size: clamp(20px, 2.4vw, 26px);
}

.section__lede {
  max-width: 62ch;
  margin-top: 12px;
  color: var(--color-text-2);
}

/* ------------------------------------------------------------------ cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.card {
  padding: 24px;
  background: var(--color-surface-1);
  border: 1px solid var(--color-border);
}

.card__label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-mute);
}

.card__value {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: clamp(16px, 2.2vw, 22px);
  color: var(--color-text);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.card__value--muted {
  color: var(--color-text-mute-2);
}

.card__status {
  margin-top: 10px;
  font-size: 13px;
  color: var(--color-text-mute);
}

.card__status--ok {
  color: var(--color-copper);
}

.notice {
  margin-top: 22px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--color-text-2);
  background: var(--color-bg-2);
  border-left: 2px solid var(--color-copper);
}

/* ---------------------------------------------------------------- details */

.details {
  margin-top: 24px;
  border-top: 1px solid var(--color-border);
}

.details__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.details__row dt {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-mute);
}

.details__row dd {
  font-size: 14px;
  color: var(--color-text);
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 640px) {
  .details__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ------------------------------------------------------------------- send */

.section--send {
  background: var(--color-bg-2);
}

.send {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 820px) {
  .send {
    grid-template-columns: 1fr;
  }
}

.send__form {
  padding: 24px;
  background: var(--color-surface-1);
  border: 1px dashed var(--color-border-2);
}

.badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-mute);
  border: 1px solid var(--color-border-2);
}

.send__note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--color-text-mute-2);
}

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

.footer {
  padding: 40px 0;
  color: var(--color-text-mute);
}

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer__tagline {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--color-text-mute-2);
}

.footer__links {
  display: flex;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
