:root {
  --bg: #c9f3f8;
  --text: #0c1428;
  --muted: rgba(12, 20, 40, 0.7);
  --border: rgba(12, 20, 40, 0.12);
  --brand: #1e5f8f;

  --maxw: 720px;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 18px 40px;
}

.site-header {
  padding: 6px 0 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  color: inherit;
  text-decoration: none;
}

.brand:hover .logo {
  filter: drop-shadow(0 10px 20px rgba(12, 20, 40, 0.16));
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.site-nav a {
  font-weight: 650;
  color: var(--text);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--brand);
  text-decoration: underline;
}

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

.logo {
  width: min(480px, 92vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(12, 20, 40, 0.12));
}

.title {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0.2px;
}

.page-title {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0.2px;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.content {
  padding: 0;
  display: grid;
  gap: 0;
}

section {
  padding: 22px 0;
  border-top: 1px solid var(--border);
}

.content > section:first-of-type {
  border-top: none;
  padding-top: 4px;
}

section h2 {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: 0.2px;
}

.section-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-lead .page-title {
  margin-bottom: 6px;
}

.portfolio-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 28px 22px;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.portfolio-card:hover .portfolio-title {
  color: var(--brand);
  text-decoration: underline;
}

.portfolio-thumb {
  width: 100%;
  max-width: 280px;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.45);
  line-height: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.portfolio-card:hover .portfolio-thumb {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(12, 20, 40, 0.12);
}

.portfolio-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.portfolio-title {
  font-weight: 650;
  font-size: 16px;
  letter-spacing: 0.2px;
  color: var(--text);
}

p {
  margin: 0;
  line-height: 1.65;
  color: rgba(12, 20, 40, 0.92);
}

ul {
  margin: 8px 0 0 18px;
  padding: 0;
  color: rgba(12, 20, 40, 0.92);
}

li {
  margin: 6px 0;
  line-height: 1.55;
}

.contact {
  display: grid;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  width: fit-content;
}

.site-footer {
  padding: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 22px;
}

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

@media (max-width: 560px) {
  .brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-title {
    font-size: 24px;
  }
}

/* Intentionally no dark-mode background override:
   background stays consistent while scrolling. */

