/* ====== Base / theme + sharper variables ====== */
:root{
  /* Theme */
  --bg: #fbfaf8;            /* soft ivory */
  --surface: rgba(15,23,42,0.04);
  --surface-2: rgba(15,23,42,0.06);
  --text: rgba(15,23,42,0.92);   /* ink */
  --muted: rgba(15,23,42,0.62);

  /* Slightly stronger border for a sharper look */
  --border: rgba(15,23,42,0.16);

  /* Accent */
  --brand: #0f766e;         /* deep teal/sage */
  --brand-2: #0f766e;       /* single-accent look */

  /* Tighter shadow */
  --shadow: 0 8px 18px rgba(15,23,42,0.06);

  /* Sharper / more squared corners */
  --radius-lg: 10px;
  --radius-md: 8px;
  --radius-sm: 6px;
}

* { 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);

  /* Crisp text rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  background:
    radial-gradient(900px 600px at 20% 0%, rgba(15,118,110,0.08), transparent 55%),
    var(--bg);
}

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

/* ====== Layout ====== */
.container{
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
}

header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.72); /* match light theme */
  border-bottom: 1px solid var(--border);
}

.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand{
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand strong{ font-size: 16px; letter-spacing: -0.2px; }
.brand span{ font-size: 12px; color: var(--muted); }

.nav-links{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.nav-links a{
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--muted);
}
.nav-links a:hover{
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

/* ====== Cards / typography ====== */
main{ padding: 28px 0 60px; }

.hero{
  padding: 22px;
  background: rgba(255,255,255,0.70); /* cleaner + sharper than the old gradient */
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

h1{
  margin: 0 0 8px;
  font-size: clamp(28px, 3.2vw, 42px);
  letter-spacing: -0.6px;
}

.section h2,
h2,
strong{
  letter-spacing: -0.3px;
}

.subtitle{
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.actions{
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}
.btn:hover{
  background: var(--surface-2);
  text-decoration: none;
}

.btn-primary{
  border: none;
  background: var(--brand);
  box-shadow: 0 10px 20px rgba(15,23,42,0.10);
}
.btn-primary:hover{
  filter: brightness(1.03);
}

.section{
  margin-top: 18px;
  padding: 18px;
  background: rgba(255,255,255,0.70);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.section h2{
  margin: 0 0 12px;
  font-size: 18px;
}

.pdf{
  width: 100%;
  height: min(900px, 75vh);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(0,0,0,0.04);
}

/* ====== Footer ====== */
footer{
  margin-top: 26px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* ====== About layout ====== */
.about-grid{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: start;
}

.about-photo img{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.about-text h2{
  margin-top: 0;
}

@media (max-width: 720px){
  .about-grid{
    grid-template-columns: 1fr;
  }
  .about-photo{
    max-width: 280px;
  }
}

.section .pdf{
  margin-top: 14px;
}