@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #1d1a17;
  --ink-2: #4c463f;
  --ink-3: #6f675e;
  --rule: rgba(29, 26, 23, 0.2);
  --accent: #b3261e;
}

@view-transition { navigation: auto; }

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #ece6db;
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 8.5in;
  margin-inline: auto;
  padding: 16px 16px 14px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.back { text-decoration: none; }
.back:hover { color: var(--accent); }

.download {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 4px;
  background: var(--ink);
  color: #faf6ef;
  text-decoration: none;
}
.download:hover { background: var(--accent); }

.sheet {
  width: 100%;
  max-width: 8.5in;
  margin: 0 auto 40px;
  padding: 0.42in 0.56in;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 18px 48px rgba(60, 40, 20, 0.14);
  font-size: 9pt;
  line-height: 1.3;
}

.head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-bottom: 8pt;
  border-bottom: 1.5pt solid var(--ink);
}

h1 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 25pt;
  font-weight: 450;
  line-height: 1;
  letter-spacing: -0.015em;
}

.title {
  margin: 4pt 0 0;
  font-size: 10pt;
  color: var(--accent);
  font-weight: 600;
}

.subtitle {
  margin: 1pt 0 0;
  font-size: 9pt;
  font-weight: 500;
  color: var(--ink-2);
}

.entry-line strong { color: var(--ink); font-weight: 600; }

.contact {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: right;
  font-size: 8.6pt;
  line-height: 1.32;
  color: var(--ink-2);
}

.contact a { text-decoration: none; }
.contact a:hover { text-decoration: underline; }

.summary {
  margin: 7pt 0 0;
  font-size: 9.2pt;
}

section { margin-top: 7pt; }

h2 {
  margin: 0 0 3.5pt;
  padding-bottom: 2pt;
  border-bottom: 0.5pt solid var(--rule);
  font-size: 8.2pt;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.entry { margin-top: 3.4pt; }

h3 {
  display: flex;
  justify-content: space-between;
  gap: 12pt;
  margin: 0;
  font-size: 9.2pt;
  font-weight: 600;
}

h3 span {
  flex: none;
  font-weight: 400;
  font-size: 8.2pt;
  color: var(--ink-3);
}

.entry p { margin: 1pt 0 0; color: var(--ink-2); }

ul { margin: 1.5pt 0 0; padding-left: 11pt; color: var(--ink-2); }
li { margin-top: 0.8pt; }

.skills { margin: 3pt 0 0; }

.skills div {
  display: grid;
  grid-template-columns: 72pt minmax(0, 1fr);
  gap: 6pt;
  margin-top: 1.2pt;
}

.skills dt { font-weight: 600; }
.skills dd { margin: 0; color: var(--ink-2); }

@page {
  size: Letter;
  margin: 0;
}

@media print {
  body { background: #fff; }
  .toolbar { display: none; }
  .sheet {
    max-width: none;
    margin: 0;
    box-shadow: none;
  }
  a { text-decoration: none; }
}

@media (max-width: 640px) {
  body { background: #fff; }
  .toolbar { padding-inline: 20px; }
  .sheet {
    padding: 8px 20px 40px;
    box-shadow: none;
    font-size: 10.5pt;
    line-height: 1.45;
  }
  .head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .contact { text-align: left; }
  h3 { flex-direction: column; gap: 0; font-size: 10.5pt; }
  .skills div { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 5pt; }
}
