/* Styles for the landing page only. work\ and personal\ each carry their own
   copy, so the three pages never share a file and can change independently.
   Kept in its own file, not inline, so the Content-Security-Policy in
   _headers can forbid inline styles and scripts outright. */

:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --text: #1c1c1c;
  --muted: #5f6363;
  --border: #e2e0da;
  --accent: #0f5f5c;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121414;
    --surface: #1b1e1e;
    --text: #ececec;
    --muted: #a0a6a6;
    --border: #2c3131;
    --accent: #4fb8b2;
    color-scheme: dark;
  }
}

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

body {
  margin: 0 auto;
  max-width: 760px;
  padding: 48px 16px 32px;
  background: var(--bg);
  color: var(--text);
  /* Segoe UI carries Arabic on Windows; the rest cover other systems. */
  font-family: system-ui, "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.masthead {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.logo { flex: none; border-radius: 14px; }

h1 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.2;
}

.domain {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.card:hover { border-color: var(--accent); }

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

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
}

.card-desc { color: var(--muted); }

.card-host {
  margin-top: auto;
  padding-top: 10px;
  color: var(--accent);
  font-size: 0.9rem;
  /* Keeps the address on the start side of the card in right-to-left text. */
  align-self: flex-start;
}

.footer {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}
