:root {
  --ink: #23211d;
  --muted: #615d55;
  --quiet: #918a7e;
  --field: #f2eee8;
  --accent: #6f6658;
  --accent-deep: #4a3a2d;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--field);
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.48;
}

body {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 26%, transparent);
  text-decoration-thickness: 0.055em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-deep);
}

.site {
  display: grid;
  grid-template-columns: 188px minmax(0, 780px);
  column-gap: clamp(72px, 10vw, 154px);
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 76px) clamp(26px, 5vw, 68px) 92px;
}

.identity {
  position: fixed;
  top: clamp(34px, 6vw, 76px);
  width: 180px;
  max-width: calc(100vw - 44px);
  min-height: calc(100vh - 116px);
  display: flex;
  flex-direction: column;
  text-align: left;
}

.record {
  grid-column: 2;
}

.domain,
.eyebrow,
address,
time,
.role-entry header p {
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.domain {
  margin: 0 0 clamp(62px, 15vh, 132px);
  color: var(--quiet);
  font-size: 0.74rem;
}

h1,
h2,
p,
ul {
  margin-top: 0;
}

h1 {
  max-width: 8.8ch;
  margin-bottom: 18px;
  font-size: clamp(1.58rem, 2vw, 2.04rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.06;
}

.role {
  max-width: 10rem;
  margin-bottom: auto;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.38;
}

address {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  line-height: 1.32;
}

.email-line {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.copy-email {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--quiet);
  cursor: pointer;
  font: inherit;
  font-size: 0.64rem;
  line-height: 1;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 22%, transparent);
  text-decoration-thickness: 0.055em;
  text-underline-offset: 0.18em;
}

.copy-email:hover {
  color: var(--accent-deep);
}

.plain-link {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 26%, transparent);
  text-decoration-thickness: 0.055em;
  text-underline-offset: 0.18em;
}

.download-cv {
  margin-top: 8px;
}

.intro {
  padding-top: clamp(36px, 9vh, 84px);
  max-width: 620px;
  margin-bottom: 96px;
}

.eyebrow {
  margin-bottom: 20px;
  color: var(--quiet);
  font-size: 0.76rem;
  font-weight: 500;
  text-transform: uppercase;
}

.lead {
  margin-bottom: 22px;
  font-size: clamp(1.42rem, 2.2vw, 1.86rem);
  font-weight: 400;
  line-height: 1.16;
}

.intro p:not(.eyebrow):not(.lead) {
  max-width: 32rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.section {
  margin-bottom: 98px;
}

.independent {
  max-width: 620px;
}

.rhune-logo {
  display: block;
  width: min(55px, 40vw);
  margin: 2px 1px 6px;
  text-decoration: none;
}

.rhune-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.project-line {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 1rem;
}

.project-line a {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
}

.project-line strong {
  font-weight: bold;
  font-size: 0.75rem;
}

.project-line span {
  color: var(--quiet);
}

.independent p:last-child {
  max-width: 38rem;
  margin-bottom: 0;
  color: var(--muted);
}

.focus-section {
  max-width: 660px;
}

.focus-list {
  display: grid;
  gap: 30px;
}

.focus-row {
  max-width: 38rem;
}

.focus-row h2 {
  margin-bottom: 5px;
  font-size: 1rem;
}

.focus-row p {
  max-width: 34rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.inline-logo {
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  /* margin-right: 0.36rem; */
  color: var(--ink);
  vertical-align: -0.28rem;
}

.aws-logo {
  width: 1.15rem;
}

strong {
  font-weight: 700;
}

.signal {
  color: var(--ink);
  font-weight: 600;
}

.role-entry {
  margin-bottom: 64px;
}

.role-entry:last-child {
  margin-bottom: 0;
}

.role-entry header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: baseline;
  margin-bottom: 18px;
}

h2 {
  margin-bottom: 2px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.role-entry h2 a {
  text-decoration-color: transparent;
}

.role-entry h2 a:hover {
  text-decoration-color: color-mix(in srgb, currentColor 34%, transparent);
}

.company-note {
  color: var(--quiet);
  font-size: 0.86em;
  font-weight: 400;
}

.role-entry header p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

time {
  margin-bottom: 0;
  color: var(--quiet);
  font-size: 0.76rem;
  white-space: nowrap;
}

.role-entry > p {
  max-width: 42rem;
  margin-bottom: 18px;
}

ul {
  display: grid;
  gap: 8px;
  max-width: 43rem;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}

li {
  position: relative;
  padding-left: 1.18rem;
}

li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0.08rem;
  width: 0.32rem;
  height: 0.32rem;
  border: 1px solid color-mix(in srgb, var(--quiet) 68%, var(--field));
  border-radius: 50%;
  transform: translateY(-50%);
}

.notes-section {
  max-width: 690px;
}

.note-entry {
  max-width: 42rem;
  margin-bottom: 28px;
}

.note-entry:last-child {
  margin-bottom: 0;
}

.note-entry p {
  margin-bottom: 5px;
  color: var(--muted);
}

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


@media (max-width: 820px) {
  html {
    font-size: 16px;
  }

  .site {
    display: block;
    padding: 34px 22px 58px;
  }

  .identity {
    position: static;
    width: auto;
    max-width: none;
    min-height: 0;
    display: block;
    text-align: right;
    margin-bottom: 56px;
  }

  .identity h1,
  .identity .role {
    margin-left: auto;
  }

  .domain {
    margin-bottom: 42px;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(2.4rem, 12vw, 4.4rem);
    line-height: 0.92;
  }

  .role {
    max-width: 16rem;
    margin-bottom: 28px;
  }

  address {
    justify-items: end;
  }

  .record {
    grid-column: auto;
    padding-top: 0;
  }

  .intro {
    padding-top: 0;
  }

  .intro,
  .section {
    margin-bottom: 58px;
  }

  .role-entry header {
    grid-template-columns: 1fr;
  }

}

@media print {
  html {
    font-size: 11pt;
  }

  .site {
    display: block;
    width: auto;
    padding: 0;
  }

  .identity {
    position: static;
    min-height: 0;
    margin-bottom: 36px;
  }

  .domain,
  .section,
  .intro {
    margin-bottom: 28px;
  }

  a {
    text-decoration: none;
  }
}
