/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #1f2328;
  background: #f6f1ea;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-wrapper {
  min-height: 100vh;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  display: flex;
  flex-direction: column;
}

/* Header & navigation */

.site-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-radius: 18px;
  padding: 1.5rem 1.5rem 1.25rem;
  background: #ffffff;
  border: 1px solid #e1d6c8;
  box-shadow: 0 10px 30px rgba(32, 24, 15, 0.05);
}

.branding {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f4c86b, #d76a55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #21160e;
}

.branding-text h1 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tagline {
  margin: 0.1rem 0 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #7c7062;
}

.navbar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-radius: 999px;
  padding: 0.25rem;
  background: #f6f1ea;
}

.navbar a {
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  border-radius: 999px;
  color: #54473a;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.navbar a:hover {
  border-color: #d0bda6;
}

.navbar a.active {
  background: #21160e;
  color: #f6f1ea;
  border-color: #21160e;
}

/* Main layout */

main {
  margin-top: 1.75rem;
  flex: 1;
}

/* Intro hero */

.intro-hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 2rem;
  align-items: stretch;
}

.hero-text {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.75rem 1.75rem 1.5rem;
  border: 1px solid #e1d6c8;
}

.small-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #a08f7a;
  margin: 0 0 0.5rem;
}

.hero-text h2 {
  margin: 0 0 0.25rem;
  font-size: 1.6rem;
  line-height: 1.3;
}

.hero-subtitle {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: #7c7062;
}

.hero-text p {
  margin: 0 0 0.85rem;
}

.hero-panel {
  border-radius: 18px;
  padding: 1.5rem 1.5rem 1.25rem;
  border: 1px dashed #cfbca5;
  background: linear-gradient(135deg, #f5e9d9, #f9f4ee);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.portrait-placeholder {
  border-radius: 14px;
  border: 1px solid rgba(33, 22, 14, 0.15);
  background: repeating-linear-gradient(
    135deg,
    rgba(215, 106, 85, 0.06),
    rgba(215, 106, 85, 0.06) 6px,
    rgba(215, 106, 85, 0.0) 6px,
    rgba(215, 106, 85, 0.0) 12px
  );
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-initials {
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #21160e;
}

.meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.meta-list li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.meta-list span {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #887866;
}

.meta-list strong {
  font-size: 0.95rem;
}

/* Generic sections */

.page-section {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.75rem 1.75rem 1.75rem;
  border: 1px solid #e1d6c8;
}

.section-header {
  margin-bottom: 1.25rem;
}

.section-header h2 {
  margin: 0.2rem 0 0;
  font-size: 1.5rem;
}

.section-intro {
  margin: 0 0 1.2rem;
  max-width: 40rem;
}

/* Two-column text */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.75rem;
}

.two-column p {
  margin: 0 0 0.9rem;
}

/* Cards grid */

.grid-cards {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.card {
  border-radius: 14px;
  padding: 1.1rem 1.15rem 1.1rem;
  background: #f9f4ee;
  border: 1px solid #e2d5c4;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.card p {
  margin: 0;
  font-size: 0.92rem;
}

/* Links tiles */

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.link-tile {
  border-radius: 14px;
  padding: 0.9rem 1rem;
  border: 1px solid #e1d6c8;
  background: #f9f4ee;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.link-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(32, 24, 15, 0.08);
  border-color: #cfbca5;
}

.link-title {
  font-weight: 600;
  font-size: 0.96rem;
}

.link-caption {
  font-size: 0.86rem;
  color: #7c7062;
}

/* Notes */

.section-note {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: #7c7062;
  font-style: italic;
}

/* Footer */

.site-footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #7c7062;
}

/* Responsive */

@media (max-width: 880px) {
  .intro-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    order: -1;
  }

  .grid-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .link-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .page-wrapper {
    padding: 1rem 1rem 2rem;
  }

  .site-header {
    padding: 1.25rem 1.1rem 1rem;
  }

  .branding {
    flex-direction: row;
    align-items: center;
  }

  .intro-hero {
    gap: 1.25rem;
  }

  .hero-text,
  .hero-panel,
  .page-section {
    padding: 1.25rem 1.1rem 1.25rem;
  }

  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}
