:root {
  color-scheme: light;

  --brand: #173e32;
  --brand-soft: #b9e6cd;
  --brand-pill: #345a4f;
  --accent: #258a52;

  --text: #111111;
  --muted: #626262;
  --border: #e3e3e3;
  --divider: #ededed;
  --surface: #ffffff;

  --page-max: 1440px;
  --page-padding: 32px;
  --card-gap: 24px;

  --radius-banner: 20px;
  --radius-card: 20px;

  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--surface);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
  border-radius: 3px;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: #ffffff;
  background: var(--brand);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: 100%;
  max-width: var(--page-max);
  min-height: 100vh;
  margin-inline: auto;
  padding: 18px var(--page-padding) 8px;
  border-left: 2px solid #e5e5e5;
}

/* Brand banner */

.brand-banner {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  text-align: center;
  color: #ffffff;
  background: var(--brand);
  border-radius: var(--radius-banner);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 2px;
  color: var(--brand-soft);
  border-radius: 50%;
}

.brand-mark svg {
  width: 42px;
  height: 42px;
  stroke-width: 4;
}

.brand-banner h1 {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.brand-description {
  margin: 14px 0 8px;
  color: #d5e1da;
  font-size: clamp(1rem, 2.2vw, 1.75rem);
  line-height: 1.4;
}

.brand-badge {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  color: #e2e6e4;
  background: var(--brand-pill);
  border-radius: 999px;
  font-size: clamp(0.875rem, 1.8vw, 1.5rem);
  line-height: 1.4;
}

/* Section heading */

.websites {
  padding-top: 24px;
}

.section-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
  text-align: center;
  color: var(--muted);
}

.branch-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
}

.section-intro h2 {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.5;
}

/* Website grid */

.website-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--card-gap);
}

.website-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 24px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-card);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.website-card:hover {
  border-color: #b8d8c4;
  box-shadow: 0 5px 18px rgb(0 0 0 / 4%);
}

.card-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 24px;
  color: var(--accent);
  flex-shrink: 0;
}

.website-card h3 {
  margin: 0 0 24px;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.card-title-link {
  border-radius: 3px;
}

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

.card-domain {
  overflow-wrap: anywhere;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.75rem);
  line-height: 1.4;
}

.website-card hr {
  width: 100%;
  height: 1px;
  flex-shrink: 0;
  margin: auto 0 32px;
  background: var(--divider);
  border: 0;
}

/* Card navigation */

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 7px;
  margin: 0;
  padding: 0;
  font-size: clamp(0.875rem, 1.8vw, 1.75rem);
  line-height: 1.55;
}

.card-links li {
  list-style: none;
}

.card-links li:not(:last-child)::after {
  content: "·";
  margin-left: 7px;
  color: var(--text);
}

.card-links a {
  border-radius: 2px;
}

.card-links a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer {
  padding: 24px 0 8px;
  color: var(--muted);
  text-align: center;
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0;
}

/* Tablet */

@media (max-width: 768px) {
  :root {
    --page-padding: 20px;
    --card-gap: 18px;
  }

  .site-shell {
    padding-top: 16px;
  }

  .brand-banner {
    min-height: 240px;
  }

  .website-card {
    padding: 20px;
  }

  .card-icon {
    margin-bottom: 18px;
  }

  .website-card h3 {
    margin-bottom: 18px;
  }

  .card-domain {
    margin-bottom: 24px;
  }

  .website-card hr {
    margin-bottom: 24px;
  }
}

/* Mobile */

@media (max-width: 560px) {
  :root {
    --page-padding: 14px;
    --card-gap: 16px;
    --radius-card: 16px;
    --radius-banner: 16px;
  }

  .site-shell {
    padding-top: 12px;
    border-left: 0;
  }

  .brand-banner {
    min-height: 220px;
    padding: 28px 16px;
  }

  .brand-mark svg {
    width: 36px;
    height: 36px;
  }

  .brand-description {
    margin-top: 12px;
  }

  .websites {
    padding-top: 24px;
  }

  .section-intro {
    margin-bottom: 20px;
  }

  .website-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .website-card {
    padding: 22px;
  }

  .card-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 16px;
  }

  .website-card h3 {
    margin-bottom: 14px;
    font-size: 1.5rem;
  }

  .card-domain {
    margin-bottom: 24px;
    font-size: 1.125rem;
  }

  .website-card hr {
    margin-bottom: 20px;
  }

  .card-links {
    font-size: 1rem;
  }
}

@media (min-width: 1441px) {
  .site-shell {
    border-right: 2px solid #e5e5e5;
  }
}

/* Accessibility: reduced motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Accessibility: high-contrast / forced colors */

@media (forced-colors: active) {
  .brand-banner,
  .brand-badge,
  .website-card {
    border: 1px solid CanvasText;
  }

  .website-card hr {
    background: CanvasText;
  }
}