:root {
  --color-text: #29272A;
  --color-text-secondary: #57515b;
  --color-text-muted: #6c666c;
  --color-caption: #787178;
  --color-accent: #643a85;
  --color-home-heading: #53605e;
  --color-cv-heading: #4e4852;
  --color-paper: #f4e8e1;
  --color-lilac: #e8d7e4;
  --color-rose: #e6d5d4;
  --color-coral: #dda7a4;
  --color-button-text: #5c4b61;
  --color-button-hover: #d7bed8;
  --color-button-ink: #423447;
  --color-button-hover-border: #a88ca9;
  --color-rule: rgba(92,75,97,.24);
  --color-button-border: rgba(92,75,97,.38);
  --highlight: #d8baff;
  --highlight-ink: #311947;
  --font-body: Inter, sans-serif;
  --font-display: "Instrument Sans", sans-serif;
  --type-page: 2rem;
  --type-entry: 1.125rem;
  --type-body: 1.0625rem;
  --type-compact: 1rem;
  --type-secondary: .9375rem;
  --type-meta: .875rem;
  --type-small: .8125rem;
  --type-caption: .75rem;
  color-scheme: only light;
  background-color: var(--color-paper);
  background-repeat: no-repeat, repeat, no-repeat, no-repeat;
  background-size: 100% 100%, 160px 160px, 100% 560px, 100% 100%;
  background-image:
    linear-gradient(to bottom, transparent 84px, var(--color-paper) 560px),
    url("../images/grain.svg"),
    linear-gradient(110deg, var(--color-lilac) 0%, var(--color-rose) 34%, var(--color-paper) 65%, var(--color-coral) 100%),
    linear-gradient(var(--color-paper), var(--color-paper));
}

::selection {
  background: var(--highlight);
  color: var(--highlight-ink);
}

* {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

a:not(.mast):focus-visible {
  color: var(--highlight-ink);
  background-image: linear-gradient(var(--highlight), var(--highlight));
  background-size: 100% 1.22em;
  background-position: center;
  background-repeat: no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

@media (hover: hover) {
  a:not(.mast):hover {
    color: var(--highlight-ink);
    background-image: linear-gradient(var(--highlight), var(--highlight));
    background-size: 100% 1.22em;
    background-position: center;
    background-repeat: no-repeat;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }
}

body {
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--type-body);
  line-height: 1.55;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1160px;
  margin: 0 auto;
  padding-top: clamp(26px,3.5vw,48px);
  padding-bottom: 1.5rem;
  padding-inline: clamp(24px,7vw,84px);
}

main {
  flex: 1;
}

.site-footer {
  margin-top: clamp(5rem, 12vw, 9rem);
  color: var(--color-text-muted);
  font-size: var(--type-caption);
  text-align: center;
}

nav {
  font-family: var(--font-display);
  font-size: var(--type-small);
  font-weight: 500;
  letter-spacing: .015em;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 26px;
}

nav a {
  text-decoration: none;
  padding: 12px 0;
  text-transform: uppercase;
}

nav a:hover,nav a:focus-visible {
  text-decoration: underline;
}

nav a.mast {
  margin-right: auto;
}

nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 6px;
}

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

nav .mast img {
  display: block;
  width: 86px;
  height: auto;
}

@media (max-width: 700px) {
  nav { gap: 14px; }
}

@media(max-width:420px) {
  nav .mast img {
    width: 62px;
  }
  nav {
    gap: 10px;
  }
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -.025em;
}

/* Vector link arrows keep the same appearance on iOS and desktop. */
.link-arrow {
  display: inline-block;
  width: .85em;
  height: .85em;
  vertical-align: -.05em;
  flex-shrink: 0;
}
