:root {
  /* Tell the browser we support dark + light (we default to dark below) */
  color-scheme: dark light;

  /* Typography */
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Theme (dark default) */
  --bg: #0b0f14;
  --surface: #24111179;
  --text: #b6b6b6;
  --muted: #9aa4b2;

  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);

  --link: #7cc4ff;
  --link-hover: #a6d7ff;

  --focus: #8ab4ff;

  /* Layout */
  --radius: 12px;
  --content-max: 72rem;

  /* Form controls */
  --control-bg: rgba(255, 255, 255, 0.06);
  --control-bg-hover: rgba(255, 255, 255, 0.09);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f6f8fa;
  --text: #111827;
  --muted: #4b5563;

  --border: rgba(0, 0, 0, 0.12);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.12);

  --link: #0b5fff;
  --link-hover: #0847c7;

  --focus: #2563eb;

  --control-bg: rgba(0, 0, 0, 0.04);
  --control-bg-hover: rgba(0, 0, 0, 0.07);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background-image: url("../images/background.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--text);
  line-height: 1.5;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

textarea {
  resize: vertical;
}

a {
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(100% - 2rem, var(--content-max));
  margin-inline: auto;
}

.surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

main {
    width: 100%;
    min-height: 100svh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.notice-card {
    background: var(--surface);
    border: 1px solid var(--border);

    border-radius: 1rem;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 0.5rem;

    width: min(92vw, 42rem);
    padding: clamp(1.25rem, 3vw, 2rem);
}

.notice-card h1 {
  text-align: center;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  color: var(--text);
}

.notice-card img {
  width: min(480px, 60vw);
  height: auto;
}

.notice-card p {
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
