:root {
  --bg: #f7f7f7;
  --fg: #111111;
  --muted: #717171;
  --accent: #ff385c; /* Airbnb-ish coral */
  --border: #e5e5e5;
  --max-width: 1040px;
  --font-main: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

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

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

a:hover {
  text-decoration: underline;
}

/* ---------- Layout ---------- */

header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  background: #ffffffcc;
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  text-transform: uppercase;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

nav a {
  position: relative;
  padding-bottom: 4px;
  color: #222222;
  text-decoration: none;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.18s ease-out;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 3.5rem;
}

section {
  margin-bottom: 3rem;
}

/* ---------- Typography ---------- */

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0;
}

h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

h2 {
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

p {
  margin-top: 0;
  margin-bottom: 0.7rem;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.85rem;
}

ul {
  padding-left: 1.1rem;
  margin-top: 0.35rem;
  margin-bottom: 0.7rem;
}

li {
  margin-bottom: 0.25rem;
}

/* ---------- Hero ---------- */

.hero {
  padding: 3rem 0 2.5rem;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 36rem;
}

/* ---------- Pills ---------- */

.pill-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  font-size: 0.75rem;
  text-transform: none;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  border: 1px solid #dddddd;
  background: #ffffff;
  color: #222222;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.15s ease-out, transform 0.15s ease-out,
    border-color 0.15s ease-out;
}

.pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border-color: #cccccc;
}

/* ---------- Cards & Grids ---------- */

.card {
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  background: #ffffff;
  padding: 1.8rem 2rem;
  margin-bottom: 1.8rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.04);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

/* ---------- Bio / Portfolio Manager ---------- */

.bio-name {
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.bio-layout {
  display: flex;
  gap: 1.8rem;
  align-items: center;
  flex-wrap: wrap;
}

.bio-photo-wrap {
  flex: 0 0 auto;
}

.bio-text-intro {
  flex: 1 1 260px;
}

.profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  display: block;
}

/* ---------- Letters (password form) ---------- */

.letters-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 260px;
}

.letters-input {
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-family: var(--font-main);
  font-size: 0.9rem;
}

.letters-button {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: #ffffff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.letters-button:hover {
  background: #f0f5f3;
}

/* ---------- Misc ---------- */

.mono {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .two-col {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }

  h1 {
    font-size: 2.0rem;
  }

  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

@media (max-width: 600px) {
  .bio-layout {
    flex-direction: row;
    align-items: center;
  }

  .bio-photo-wrap {
    flex: 0 0 auto;
  }
}
