:root {
  --bg: #ffffff;
  --fg: #264348;
  --sub: #3e5a5f;
  --muted: #4a6468;
  --line: #a8c5c8;
  --hover: #16292c;
  --btn: #eef4f4;
}

:root[data-theme="dark"] {
  --bg: #264348;
  --fg: #f2f7f7;
  --sub: #a8c5c8;
  --muted: #a8c5c8;
  --line: #a8c5c8;
  --hover: #a8c5c8;
  --btn: #2f5157;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #264348;
    --fg: #f2f7f7;
    --sub: #a8c5c8;
    --muted: #a8c5c8;
    --line: #a8c5c8;
    --hover: #a8c5c8;
    --btn: #2f5157;
  }
}

body {
  margin: 0;
  background: var(--bg);
}

main {
  position: relative;
  box-sizing: border-box;
  min-height: 100vh;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  color: var(--fg);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  transition: background 200ms, color 200ms;
}

.spacer {
  height: 24px;
}

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: 960px;
  text-align: center;
}

h1 {
  margin: 0;
  max-width: 100%;
  line-height: 0;
  font-weight: 400;
}

.logo {
  display: block;
  max-width: 100%;
  height: clamp(48px, 9vw, 112px);
  width: auto;
}

.tagline {
  margin: 0;
  font-size: clamp(13px, 1.6vw, 16px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sub);
}

.rule {
  width: 48px;
  height: 2px;
  background: var(--line);
}

.contact {
  font-size: 17px;
}

a {
  display: inline-block;
  padding: 10px 0;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

a:hover {
  color: var(--hover);
  border-bottom-color: var(--fg);
}

footer {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}

.theme-switch {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--fg);
  cursor: pointer;
}

.theme-switch[hidden],
.theme-switch svg[hidden] {
  display: none;
}

.theme-switch:hover {
  background: var(--btn);
}
