/* =========================================================
   Variables — tweak these to restyle the whole site at once.
   ========================================================= */
:root {
  --color-bg: #fbf9f6;
  --color-surface: #ffffff;
  --color-text: #2b2b2b;
  --color-muted: #6b6b6b;
  --color-accent: #c77b86;
  --color-accent-soft: #f3dde1;
  --color-border: #e8e2da;

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

  --max-width: 760px;
  --radius: 16px;
  --radius-sm: 8px;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
}

/* =========================================================
   Base / reset
   ========================================================= */
* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

/* =========================================================
   Reusable layout classes — reuse these for every new section.
   ========================================================= */
.section {
  padding: var(--space-xl) var(--space-sm);
}

.section:nth-of-type(even) {
  background: var(--color-surface);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 var(--space-md);
  text-align: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  text-align: center;
}

.card-title {
  margin: 0 0 var(--space-xs);
  font-size: 1.1rem;
  font-weight: 600;
}

.card-body {
  margin: 0;
  color: var(--color-muted);
}

/* =========================================================
   Hero
   ========================================================= */
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
}

.photo-frame {
  position: relative;
  width: 290px;
  height: 400px;
  padding: 6px;
  border-radius: 50%;
  border: 1px solid var(--color-accent);
  box-shadow: 0 0 0 6px var(--color-surface), 0 0 0 7px var(--color-border), 0 12px 30px rgba(0,0,0,.08);
}

.photo-placeholder {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent-soft), var(--color-border));
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-placeholder span {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.05em;
}

.photo-img {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 50%;
  border: 4px solid var(--color-surface);
}

.hero-name {
  margin: 0;
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 700;
}

.hero-subtitle {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.1rem;
}

/* =========================================================
   About
   ========================================================= */
.lede {
  text-align: center;
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto;
}

/* =========================================================
   Contact
   ========================================================= */
.email-link {
  font-weight: 500;
}

.email-fallback {
  color: var(--color-muted);
  margin: 0;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  padding: var(--space-md) var(--space-sm);
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* =========================================================
   Small screens
   ========================================================= */
@media (max-width: 480px) {
  .section {
    padding: var(--space-lg) var(--space-sm);
  }

  .photo-frame {
    width: 230px;
    height: 318px;
  }
}
