/* Change the site's colors and fonts here. */
:root {
  --navy: #14294b;
  --navy-dark: #0d1c35;
  --text: #2b3440;
  --muted: #5d6875;
  --rule: #d5dae1;
  --tint: #f4f5f7;
  --white: #ffffff;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 17px/1.6 var(--sans);
}

a { color: var(--navy); }
a:focus-visible, .button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

h1, h2, h3 { color: var(--navy); font-family: var(--serif); font-weight: 700; line-height: 1.25; }
h2 {
  margin: 0 0 32px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--navy);
  font-size: 30px;
}
h3 { margin: 0; font-size: 20px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

section { padding: 72px 0; }
.alt { background: var(--tint); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--navy);
}
.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { color: var(--white); font: 700 19px var(--serif); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
nav a { color: #dfe4ec; font-size: 15px; text-decoration: none; }
nav a:hover { color: var(--white); text-decoration: underline; }
.site-header a:focus-visible { outline-color: var(--white); }

/* Home */
.hero { padding: 88px 0; border-bottom: 1px solid var(--rule); }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 56px;
}
h1 { margin: 0 0 16px; font-size: 54px; }
.tagline { max-width: 34em; margin: 0 0 28px; color: var(--muted); font-size: 20px; line-height: 1.5; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.download { margin: 14px 0 0; font-size: 15px; }

.button {
  display: inline-block;
  padding: 11px 26px;
  border: 1px solid var(--navy);
  border-radius: 2px;
  background: var(--navy);
  color: var(--white);
  font: 600 16px var(--sans);
  text-decoration: none;
}
.button:hover { background: var(--navy-dark); }
.button-outline { background: var(--white); color: var(--navy); }
.button-outline:hover { background: var(--tint); }

.headshot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 240px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font: 700 64px var(--serif);
}
.headshot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Projects */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  padding: 26px;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--navy);
  background: var(--white);
}
.card p { margin: 0 0 12px; }
.card p:last-child { margin-bottom: 0; }
.date { margin: 4px 0 12px; color: var(--muted); font-size: 15px; }
.card .date { margin: 4px 0 12px; }
.tools { font-size: 15px; }
.links { font-size: 15px; font-weight: 600; }
.card .status, .model .status {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 10px;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Models */
.model {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 16px;
  padding: 26px;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--navy);
  background: var(--white);
}
.model p { margin: 8px 0 0; }
.model .status { margin: 0 0 10px; }
.model .button { flex-shrink: 0; }
.note { margin: 0; color: var(--muted); font-size: 14px; }

/* Model pages */
.wrap.wide { max-width: 1440px; }
.model-intro { padding: 40px 0 8px; }
.model-intro .status {
  display: inline-block;
  margin: 0 0 10px;
  padding: 2px 10px;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.back { margin: 0 0 18px; font-size: 15px; }
.model-title { margin: 0 0 10px; font-size: 36px; }
.jump { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 18px 0 0; font-size: 15px; font-weight: 600; }
.sheet-section { padding: 32px 0; }
.sheet-section h2 { margin-bottom: 16px; }
.sheet-scroll { overflow-x: auto; border: 1px solid var(--rule); }
.sheet-scroll:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.sheet { border-collapse: collapse; font-size: 13px; line-height: 1.35; white-space: nowrap; }
.sheet td { padding: 3px 10px; border-bottom: 1px solid var(--tint); }
.sheet .label {
  position: sticky;
  left: 0;
  min-width: 250px;
  background: var(--white);
  border-right: 1px solid var(--rule);
  white-space: normal;
}
.sheet .num { text-align: right; font-variant-numeric: tabular-nums; }
.sheet .strong { font-weight: 700; }
.sheet .input { color: #1a4fd0; }
.sheet .comment { min-width: 340px; color: var(--muted); white-space: normal; }
.sheet .section td { background: var(--navy); color: var(--white); font-weight: 700; letter-spacing: .03em; }
.sheet .text-row td { color: var(--muted); white-space: normal; }
.sheet .header td { background: var(--tint); font-weight: 700; }
.sheet .header .label { background: var(--tint); }
.sheet .spacer td { height: 10px; padding: 0; border: 0; }

/* Experience */
.job { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.job:first-of-type { padding-top: 0; }
.job:last-child { padding-bottom: 0; border-bottom: 0; }
.job-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 16px; }
.job-head .date { margin: 0; }
.role { margin: 2px 0 10px; font-style: italic; }
ul { margin: 0; padding-left: 20px; }
li { margin-bottom: 5px; }

/* About */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.about-grid h3 { margin-bottom: 12px; }
.about-grid p { margin: 0 0 12px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.contact-grid p { margin: 0; overflow-wrap: anywhere; }

/* Footer */
.site-footer { padding: 24px 0; background: var(--navy); color: #dfe4ec; font-size: 14px; }

/* Tablet and phone */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  section { padding: 52px 0; }
  .hero { padding: 48px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .headshot { grid-row: 1; width: 150px; height: 150px; font-size: 42px; }
  h1 { font-size: 36px; }
  h2 { font-size: 26px; margin-bottom: 24px; }
  .tagline { font-size: 18px; }
  .cards, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { gap: 28px; }
  .card, .model { padding: 20px; }
  .model { flex-direction: column; align-items: flex-start; }
  .model-title { font-size: 26px; }
  .sheet .label { min-width: 140px; max-width: 140px; }
  html { scroll-padding-top: 96px; }
}
