@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #132033;
  --text: #FFFFFF;
  --sand: #CFC0AB;
  --accent: #E38C57;
  --yellow: #FFDF00;
  --line: rgba(207, 192, 171, 0.25);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: 1.25rem;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.55;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

a:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
}
.brand-logo { width: 28px; height: 28px; }
.bar-link {
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.3em;
  text-decoration-thickness: 2px;
}

/* Hero */
.hero { border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid {
  display: flex;
  flex-direction: column;
  padding-top: 3rem;
}
.hero-text { padding-bottom: 2rem; }
.kicker {
  margin: 0 0 1.25rem;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}
h1 {
  margin: 0 0 1.75rem;
  font-weight: 800;
  font-size: clamp(2.6rem, 12.5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
}
.accent { color: var(--accent); }
.lead {
  margin: 0 0 2rem;
  max-width: 34rem;
  color: var(--sand);
  font-size: 1.125rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  margin: 0;
}
.btn {
  display: inline-block;
  padding: 1rem 1.5rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 0;
}
.btn:hover { background: var(--text); }
.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
.hero-figure {
  height: 300px;
  width: auto;
  max-width: none;
  margin-left: auto;
  margin-right: -0.5rem;
}

/* Sections */
.block {
  padding-top: 4.5rem;
  padding-bottom: 1rem;
}
h2 {
  margin: 0 0 2rem;
  font-weight: 800;
  font-size: clamp(2rem, 9vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
h3 {
  margin: 0;
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.2;
}
.sub { margin: 3rem 0 1rem; color: var(--sand); }

/* Receipt rows */
.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.rows li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.receipt { max-width: 44rem; }
.receipt li { font-size: 1.0625rem; }
.amt {
  font-family: var(--mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.receipt .total {
  color: var(--yellow);
  font-weight: 800;
  font-size: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 0;
  border-top: 0;
}
.receipt .total .amt { font-weight: 700; font-size: 1.75rem; }
.note {
  margin: 1.5rem 0 0;
  color: var(--sand);
  font-size: 0.95rem;
}

/* Missing data, deliberately loud */
.todo {
  display: inline-block;
  padding: 0.1em 0.5em;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.9em;
  white-space: nowrap;
}

/* Timeline */
.timeline { max-width: 52rem; }
.timeline li { justify-content: flex-start; align-items: baseline; gap: 1.25rem; }
.year {
  flex: 0 0 3.5rem;
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Topics */
.topics { max-width: 52rem; }
.topics li {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}
.label {
  color: var(--accent);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

/* Start here */
.reads { max-width: 52rem; }
.reads li { display: block; padding: 1.5rem 0; }
.reads a {
  font-weight: 800;
  font-size: clamp(1.4rem, 5.5vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
.reads li[hidden] { display: none; }

/* Work with me */
.work-grid { display: flex; flex-direction: column; gap: 2.5rem; max-width: 60rem; }
.work-item { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.work-item h3 { margin-bottom: 0.75rem; color: var(--accent); }
.work-item p { margin: 0 0 0.75rem; max-width: 34rem; }
.work-item .strong { font-weight: 800; font-size: 1.375rem; line-height: 1.35; }
.work-item .strong + p { color: var(--sand); }
.contact { margin: 2.5rem 0 0; font-weight: 600; }
.contact a { text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.25em; }

/* Contact form (hidden until activated) */
.contact-form { max-width: 34rem; margin-top: 2.5rem; }
.contact-form[hidden] { display: none; }
.field { margin: 0 0 1.25rem; }
.field label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--sand);
  font-weight: 600;
  font-size: 0.9rem;
}
.field input, .field textarea {
  display: block;
  width: 100%;
  padding: 0.8rem 0.9rem;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 0;
  font: inherit;
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
button.btn { border: 0; cursor: pointer; font-family: inherit; }
button.btn:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }

/* Footer */
.site-footer { margin-top: 5rem; }
.big-logo {
  width: 12rem;
  height: 12rem;
  margin-bottom: 2rem;
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--sand);
  font-size: 0.9rem;
}
.foot-row p { margin: 0; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; padding: 0; }

/* Tablet and up */
@media (min-width: 48rem) {
  :root { --gutter: 2.5rem; }
  body { font-size: 1.125rem; }
  .topics li {
    flex-direction: row;
    align-items: baseline;
    gap: 2rem;
  }
  .label { flex: 0 0 14rem; }
  .timeline li { gap: 2rem; }
  .year { flex-basis: 4rem; }
  .work-grid { flex-direction: row; gap: 3rem; }
  .work-item { flex: 1 1 0; }
  .receipt li { font-size: 1.375rem; }
  .receipt .total { font-size: 1.75rem; }
  .receipt .total .amt { font-size: 2.25rem; }
  .big-logo { width: 18rem; height: 18rem; }
}

/* Desktop */
@media (min-width: 64rem) {
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 3rem;
    padding-top: 5rem;
  }
  .hero-text { padding-bottom: 5rem; }
  h1 { font-size: clamp(4.5rem, 8.2vw, 7.5rem); }
  .hero-figure {
    height: 520px;
    margin-right: 0;
  }
  .block { padding-top: 7rem; }
  .reads a { font-size: 2.5rem; }
}
