/* WordPress Twenty Twenty-Four–inspired portfolio theme (static, no WP) */
:root {
  --wp-bg: #f9f9f7;
  --wp-surface: #ffffff;
  --wp-text: #1e1e1e;
  --wp-muted: #757575;
  --wp-accent: #3858e9;
  --wp-accent-hover: #2145e6;
  --wp-border: #e0e0e0;
  --wp-radius: 4px;
  --wp-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --wp-max: 1100px;
  --font-sans: "Libre Franklin", system-ui, sans-serif;
  --font-serif: "Libre Baskerville", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--wp-text);
  background: var(--wp-bg);
}

a {
  color: var(--wp-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--wp-accent-hover);
}

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

/* Header */
.site-header {
  background: var(--wp-surface);
  border-bottom: 1px solid var(--wp-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  max-width: var(--wp-max);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}

.site-title a {
  color: var(--wp-text);
  text-decoration: none;
}

.site-title a:hover {
  color: var(--wp-accent);
}

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

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

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

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--wp-border);
  border-radius: var(--wp-radius);
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  font: inherit;
}

/* Layout */
.site-main {
  max-width: var(--wp-max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

/* Hero */
.hero {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--wp-border);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.hero .lead {
  font-size: 1.2rem;
  color: var(--wp-muted);
  max-width: 42rem;
  margin: 0 0 1.25rem;
}

.hero .tagline {
  font-size: 0.95rem;
  color: var(--wp-muted);
}

/* Sections */
.section {
  margin-bottom: 3rem;
}

.section h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 0 0 0.35rem;
}

.section .section-desc {
  color: var(--wp-muted);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

/* Project cards (block pattern style) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.project-card {
  background: var(--wp-surface);
  border: 1px solid var(--wp-border);
  border-radius: var(--wp-radius);
  box-shadow: var(--wp-shadow);
  padding: 1.35rem 1.35rem 1.1rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.project-card:hover {
  border-color: #c8c8c8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.project-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.project-card h3 a {
  color: inherit;
  text-decoration: none;
}

.project-card h3 a:hover {
  color: var(--wp-accent);
}

.project-card p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--wp-muted);
  flex: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  background: #f0f0f0;
  color: #444;
}

.tag--live {
  background: #d1e7dd;
  color: #0a4d2e;
}

.tag--lab {
  background: #e8eaf6;
  color: #283593;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.btn {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--wp-radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.btn--primary {
  background: var(--wp-accent);
  color: #fff !important;
}

.btn--primary:hover {
  background: var(--wp-accent-hover);
  color: #fff !important;
}

.btn--outline {
  background: transparent;
  border-color: var(--wp-border);
  color: var(--wp-text) !important;
}

.btn--outline:hover {
  border-color: var(--wp-accent);
  color: var(--wp-accent) !important;
}

/* Inner / showcase pages */
.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.5rem;
}

.page-header .meta {
  color: var(--wp-muted);
  font-size: 0.9rem;
}

.content-panel {
  background: var(--wp-surface);
  border: 1px solid var(--wp-border);
  border-radius: var(--wp-radius);
  padding: 1.75rem;
  box-shadow: var(--wp-shadow);
}

.content-panel h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 1.5rem 0 0.75rem;
}

.content-panel h2:first-child {
  margin-top: 0;
}

.content-panel ul {
  padding-left: 1.25rem;
}

.notice {
  background: #fff8e5;
  border-left: 4px solid #dba617;
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  font-size: 0.92rem;
}

.notice--info {
  background: #f0f6fc;
  border-left-color: var(--wp-accent);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--wp-border);
  background: var(--wp-surface);
  padding: 2rem 1.25rem;
  font-size: 0.88rem;
  color: var(--wp-muted);
}

.site-footer__inner {
  max-width: var(--wp-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: 0.75rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-header__inner {
    flex-wrap: wrap;
  }
}
