:root {
  --bg: #faf7f1;
  --surface: #ffffff;
  --text: #24211d;
  --text-2: #6b655c;
  --text-3: #9a9388;
  --line: #e8e2d7;
  --thumb: #ece6da;
  --accent: #a0432a;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 72px 32px 96px;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 64px;
}

.side {
  position: sticky;
  top: 72px;
  align-self: start;
}

.name {
  font: 500 26px/1.2 var(--serif);
  margin: 0 0 8px;
}

.role {
  margin: 0 0 20px;
  color: var(--text-2);
  font-size: 14px;
}

.contact {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.9;
}

.intro {
  font: 400 21px/1.6 var(--serif);
  margin: 0 0 56px;
  max-width: 34em;
}

section + section { margin-top: 48px; }

.label {
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 14px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  /* An opened card grows on its own; the card beside it keeps its size. */
  align-items: start;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}

.card .tag {
  font-size: 12px;
  color: var(--accent);
  margin: 0 0 6px;
}

.card h3 { font: 500 15px/1.35 var(--sans); margin: 0 0 8px; }
.card p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.55; }

/* Closed cards line up: every summary reserves the same four lines. */
.card .summary { color: var(--text); min-height: calc(1.55em * 4); }

.card details { margin-top: 10px; }
.card details p { margin-top: 10px; }

.card summary {
  display: inline-block;
  list-style: none;
  cursor: pointer;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
}
.card summary::-webkit-details-marker { display: none; }
.card summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.card summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.card summary .less,
.card details[open] summary .more { display: none; }
.card details[open] summary .less { display: inline; }

.currently {
  list-style: none;
  margin: 0;
  padding: 0;
}

.currently li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.currently li:last-child { border-bottom: 0; }

.thumb {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--thumb);
  object-fit: cover;
}

.currently p { margin: 0; font-size: 15px; }
.topic { color: var(--text-2); margin-right: 6px; }

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .card .summary { min-height: 0; }
}

@media (max-width: 720px) {
  .page {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 16px 64px;
  }
  .side { position: static; }
  .contact { display: flex; gap: 16px; }
  .intro { font-size: 19px; margin-bottom: 40px; }
}
