:root {
  --bg: #f2f5f4;
  --surface: #ffffff;
  --text: #17302b;
  --muted: #5b726c;
  --accent: #0f766e;
  --accent-text: #ffffff;
  --line: #d5dfdc;
}

:root[data-theme="dark"] {
  --bg: #0e1b19;
  --surface: #152926;
  --text: #e4efec;
  --muted: #94aba5;
  --accent: #5eead4;
  --accent-text: #0e1b19;
  --line: #264540;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

main { width: 100%; max-width: 38rem; }

h1 {
  margin: 0 0 .5rem;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.lead { margin: 0 0 2rem; color: var(--muted); }

.panel {
  margin-bottom: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

dl { margin: 0; }
dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .4rem 0;
  border-bottom: 1px solid var(--line);
}
dl div:last-child { border-bottom: 0; }
dt { color: var(--muted); }
dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; word-break: break-all; }

.panel p { margin: 0 0 1rem; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

button {
  font: inherit;
  padding: .55rem 1.1rem;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-text);
  cursor: pointer;
}
button#btn-theme { background: transparent; color: var(--accent); }
button:hover { filter: brightness(1.08); }
button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
