/* Kortiva — under-development page styles */

/* ---------- Theme tokens ---------- */
:root,
:root[data-theme="dark"] {
  --bg: #0b0f17;
  --ink: #f1f3f6;
  --ink-2: #98a2b3;
  --rule: #232a37;
  --focus: #35d6ee;
}

:root[data-theme="light"] {
  --bg: #f4f4f1;
  --ink: #0c1422;
  --ink-2: #5c6675;
  --rule: #d5d6d1;
  --focus: #0a7f9c;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { height: 100%; }

body {
  --pad: clamp(16px, 3.4vw, 48px);
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0 var(--pad);
  font-family: "Montserrat", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Show only the pieces that belong to the active theme (dark is the default) */
:root:not([data-theme="light"]) .when-light,
:root[data-theme="light"] .when-dark { display: none; }

/* ---------- Top bar ---------- */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.logo {
  --logo-h: clamp(56px, 7.5vw, 96px);
  display: block;
  height: var(--logo-h);
  width: auto;
  /* the logo files have a little empty space on the left; pull the mark onto the page margin */
  margin-left: calc(var(--logo-h) * -.011);
}

.theme-toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.theme-toggle svg { display: block; }
:root:not([data-theme="light"]) .theme-toggle .when-light,
:root[data-theme="light"] .theme-toggle .when-dark { display: none; }
.theme-toggle:hover { border-color: var(--ink-2); }
.theme-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }

/* ---------- Main ---------- */
main {
  display: grid;
  min-height: 0;
}

.notice {
  align-self: end;
  padding: clamp(32px, 6vw, 72px) 0;
}
.notice .lead {
  margin: 0;
  max-width: 11em;
  font-size: clamp(34px, 7vw, 104px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.notice .sub {
  margin: clamp(16px, 2vw, 28px) 0 0;
  font-size: clamp(15px, 1.5vw, 20px);
  color: var(--ink-2);
}

/* ---------- Footer ---------- */
.foot {
  padding: 16px 0 20px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-2);
}
