
:root {
  color-scheme: light dark;
  --bg-color: #f9fafb;
  --card-bg: #ffffff;
  --text-color: #111111;
  --link-color: #0000ee;
  --code-bg: #f4f4f4;
  --border-color: #e0e0e0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #111111;
    --card-bg: #1a1a1a;
    --text-color: #eeeeee;
    --link-color: #8ab4f8;
    --code-bg: #222222;
    --border-color: #333333;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 2rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  max-width: 800px;
  margin-inline: auto;
}

header {
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 2rem;
  margin: 0;
  font-weight: 700;
}

h2 {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 600;
}

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

a:hover {
  text-decoration: underline;
}

.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.ip-code {
  margin: 0 0 1rem 0;
  font-size: 2.5rem;
  font-weight: bold;
  font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
  background-color: var(--code-bg);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
}

.ip-disclaimer {
  margin-bottom: 0;
  font-style: italic;
  color: #666;
}

@media (prefers-color-scheme: dark) {
  .ip-disclaimer {
    color: #aaa;
  }
}

.details dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 2rem;
  margin: 0;
}

dt {
  font-weight: bold;
}

dd {
  margin: 0;
}

.script-note {
  /* No extra styles needed beyond .card */
}

code {
  font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
  background-color: var(--code-bg);
  padding: 0.2em 0.4em;
  border-radius: 3px;
}

footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  padding: 1rem;
}

@media (prefers-color-scheme: dark) {
  footer {
    color: #aaa;
  }
}

@media (max-width: 600px) {
  body {
    padding: 0;
  }

  h1 {
    padding: 0;
  }

  .card {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .ip-code {
    font-size: 2rem;
  }
}
