/* wicix.com - site styles
   Single stylesheet, no external imports, no web fonts. */

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --surface: #f6f7f9;
  --surface-2: #eef1f4;
  --text: #1b1f24;
  --muted: #5a6570;
  --accent: #2f6f6a;
  --accent-text: #275c58;
  --border: #dfe4e9;
  --shadow: 0 1px 2px rgba(16, 24, 32, 0.06);

  --maxw: 62rem;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171a;
    --surface: #1b1f23;
    --surface-2: #22272c;
    --text: #e6eaee;
    --muted: #a2acb6;
    --accent: #74c2b9;
    --accent-text: #8ed2ca;
    --border: #2c3238;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

a {
  color: var(--accent-text);
}

a:hover {
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  line-height: 1.25;
  font-weight: 650;
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.5rem);
}

h2 {
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.6rem);
}

h3 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.15rem;
}

li {
  margin-bottom: 0.35rem;
}

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}

.brand .mark {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
}

.site-nav li {
  margin: 0;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  font-weight: 600;
}

/* ---------- layout ---------- */

main {
  flex: 1 0 auto;
  padding: 2.5rem 0 3rem;
}

.page-intro {
  max-width: 44rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
}

section {
  margin-top: 2.75rem;
}

section:first-of-type {
  margin-top: 0;
}

.rule {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.75rem 0 0;
}

/* ---------- cards ---------- */

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  margin-top: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
}

.card p:last-child {
  margin-bottom: 0;
}

.card p {
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------- buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 550;
}

@media (prefers-color-scheme: dark) {
  .btn {
    color: #10201e;
  }
}

.btn:hover {
  filter: brightness(1.06);
}

.btn.secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn.secondary:hover {
  background: var(--surface-2);
  filter: none;
}

/* ---------- misc blocks ---------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-top: 1.25rem;
}

.panel > :last-child {
  margin-bottom: 0;
}

.detail-list {
  margin: 1.25rem 0 0;
}

.detail-list dt {
  font-weight: 600;
  margin-top: 1rem;
}

.detail-list dd {
  margin: 0.15rem 0 0;
  color: var(--muted);
}

.contact-line {
  font-family: var(--mono);
  font-size: 0.98rem;
  word-break: break-word;
}

.note {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- footer ---------- */

.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  padding: 1.4rem 0;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
}

.site-footer a {
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

/* ---------- error page ---------- */

.error-page {
  max-width: 36rem;
}

.error-code {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ---------- a11y ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg);
  color: var(--text);
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  z-index: 10;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
