/* Oxford resume — full-screen white + floating download */

:root {
  --ink: #000;
  --paper: #fff;
  --fab-size: 52px;
}

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

html {
  font-size: 11pt;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Times New Roman", Times, "Liberation Serif", Georgia, serif;
  line-height: 1.35;
  color: var(--ink);
  background: var(--paper);
}

/* —— Floating download buttons —— */
.fab-stack {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-family: system-ui, -apple-system, sans-serif;
}

.fab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: var(--fab-size);
  height: var(--fab-size);
  padding: 0;
  color: #fff;
  background: #111;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  background: #333;
}

.fab--docx {
  background: #1e3a5f;
}

.fab--docx:hover {
  background: #2a4f7a;
}

.fab__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 768px) {
  .fab {
    width: auto;
    height: auto;
    min-height: var(--fab-size);
    padding: 0 1rem 0 0.85rem;
    border-radius: 999px;
    gap: 0.45rem;
  }

  .fab__label {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
  }
}

/* —— Resume (full width, white) —— */
.page {
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  min-height: 100vh;
  padding: 2.5rem 1.5rem 5.5rem;
  background: var(--paper);
}

@media (min-width: 768px) {
  .page {
    padding: 3rem 2.5rem 5rem;
  }
}

.resume-header {
  text-align: center;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--ink);
}

.resume-header h1 {
  margin: 0 0 0.35rem;
  font-size: 18pt;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.resume-header .resume-headline {
  margin: 0 0 0.45rem;
  font-size: 11pt;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.resume-header .contact-line {
  margin: 0.15rem 0;
  font-size: 10.5pt;
  font-weight: 400;
}

.resume-header a {
  color: var(--ink);
  text-decoration: none;
}

.resume-header a:hover {
  text-decoration: underline;
}

.ox-section {
  margin-top: 0.85rem;
}

.ox-heading {
  margin: 0 0 0.5rem;
  padding-bottom: 0.2rem;
  font-size: 11pt;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
  border-bottom: 1px solid var(--ink);
}

.ox-rule {
  display: block;
  height: 0;
  border: none;
  border-top: 1px solid var(--ink);
  margin: 0 0 0.5rem;
}

.ox-paragraph {
  margin: 0 0 0.35rem;
  text-align: justify;
}

.ox-subheading {
  margin: 0.65rem 0 0.25rem;
  font-size: 11pt;
}

.entry {
  margin-bottom: 0.55rem;
}

.entry--employer {
  margin-top: 0.35rem;
}

.entry--project {
  margin-bottom: 0.45rem;
}

.entry__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.1rem;
}

.entry__title {
  flex: 1;
  font-size: 11pt;
  line-height: 1.3;
}

.entry__title strong {
  font-weight: 700;
}

.entry__date {
  flex-shrink: 0;
  font-size: 10.5pt;
  white-space: nowrap;
  text-align: right;
}

.entry__links {
  margin: 0.1rem 0 0.15rem;
  font-size: 10pt;
}

.entry__links a,
.resume-body a {
  color: var(--ink);
  text-decoration: underline;
}

.entry__detail {
  margin: 0.1rem 0 0;
  font-size: 10.5pt;
}

.entry__subtitle {
  margin: 0.35rem 0 0.15rem;
  font-weight: 700;
}

.ox-list {
  margin: 0.15rem 0 0.35rem 1.1rem;
  padding: 0;
  list-style-type: disc;
}

.ox-list li {
  margin-bottom: 0.12rem;
  font-size: 10.5pt;
}

.ox-list li::marker {
  color: var(--ink);
}

.ox-skills p {
  margin: 0.2rem 0;
  font-size: 10.5pt;
}

.ox-skills strong {
  font-weight: 700;
}

.resume-body code {
  font-family: "Courier New", monospace;
  font-size: 0.95em;
}

.resume-body hr:not(.ox-rule) {
  display: none;
}

@media print {
  .fab-stack {
    display: none !important;
  }

  .page {
    max-width: none;
    padding: 0;
    min-height: auto;
  }

  a {
    color: #000;
  }
}
