:root {
  color-scheme: light dark;
  --navy: #0a2240;
  --navy-soft: #16406a;
  --brass: #d9993f;
  --brass-light: #f7d58b;
  --bg: #ffffff;
  --surface: #f4f6f9;
  --border: #dfe4ec;
  --text: #11253d;
  --text-dim: #5b6b80;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1726;
    --surface: #152235;
    --border: #24364f;
    --text: #eef2f7;
    --text-dim: #9aaabf;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 20px;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding-block: 56px 72px;
}

header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 40px;
}

header img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  flex: none;
}

h1 {
  margin: 0;
  font-size: 1.75rem;
  letter-spacing: -0.01em;
}

.tagline {
  margin: 4px 0 0;
  color: var(--text-dim);
}

h2 {
  margin: 44px 0 14px;
  font-size: 1.15rem;
  letter-spacing: -0.005em;
}

h2::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brass-light), var(--brass));
}

h3 {
  margin: 26px 0 8px;
  font-size: 1rem;
}

p {
  margin: 0 0 14px;
}

a {
  color: var(--navy-soft);
  text-decoration-color: var(--brass);
  text-underline-offset: 2px;
}

@media (prefers-color-scheme: dark) {
  a {
    color: var(--brass-light);
  }
}

ol.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

ol.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 18px 44px;
}

ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--brass-light);
  font-size: 0.85rem;
  font-weight: 600;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 14px;
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  font-weight: 600;
}

kbd {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  font: inherit;
  font-size: 0.85em;
  white-space: nowrap;
}

.table-scroll {
  overflow-x: auto;
}

.faq {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 10px;
  background: var(--surface);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq p:last-child {
  margin-bottom: 0;
}

.faq p:first-of-type {
  margin-top: 12px;
}

.contact {
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--navy-soft), var(--navy));
  color: #eef2f7;
}

.contact a {
  color: var(--brass-light);
}

.contact p:last-child {
  margin-bottom: 0;
}

footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.875rem;
}

footer p {
  margin: 0 0 6px;
}

/* ---------------------------------------------------------------
   Home page
   --------------------------------------------------------------- */

.hero {
  padding-block: 24px 8px;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.15;
}

.hero .role {
  margin: 10px 0 0;
  font-size: 1.05rem;
  color: var(--text-dim);
}

.lead {
  margin-top: 22px;
  font-size: 1.0625rem;
  max-width: 54ch;
}

.monogram {
  width: 72px;
  height: 72px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--navy-soft), var(--navy));
  color: var(--brass-light);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.projects {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.project {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.project__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project__head img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex: none;
}

.project__head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.project__platform {
  margin: 2px 0 0;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.project p {
  margin: 0;
}

.project__links {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.9375rem;
}

.tag {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--brass-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
