/* SandHome branding: https://code.tkinternal.uk/tom/sandhome_branding */
:root {
  --orange: #ff8c00;
  --orange-hover: #ffa31a;
  --dark-grey: #2b2f36;
  --light-grey: #a0a4ab;
  --bg: #121417;
  --text: #f1f2f4;
  --error: #ff6b6b;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.card {
  width: 100%;
  max-width: 440px;
  padding: 32px 24px;
  background: var(--dark-grey);
  border-top: 3px solid var(--orange);
  border-radius: 12px;
  text-align: center;
}

h1 {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--light-grey);
}

.ip {
  margin: 0 0 24px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: clamp(1.5rem, 7vw, 2.25rem);
  font-weight: 600;
  color: var(--orange);
  overflow-wrap: anywhere;
}

.ip.error { color: var(--error); font-size: 1rem; font-family: inherit; font-weight: 500; }

.note {
  margin: -12px 0 24px;
  font-size: 0.875rem;
  color: var(--light-grey);
  overflow-wrap: anywhere;
}

.note:empty { display: none; }

.actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

button {
  padding: 10px 20px;
  font: inherit;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--orange);
  background: var(--orange);
  color: var(--bg);
  cursor: pointer;
}

button:hover:not(:disabled) { background: var(--orange-hover); border-color: var(--orange-hover); }
button:disabled { opacity: 0.5; cursor: default; }
button:focus-visible { outline: 2px solid var(--orange-hover); outline-offset: 2px; }

button.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--light-grey);
}

button.secondary:hover:not(:disabled) { background: var(--bg); border-color: var(--text); }

.status {
  min-height: 1.25em;
  margin: 16px 0 0;
  font-size: 0.875rem;
  color: var(--light-grey);
}
