@font-face {
  font-family: "DM Sans";
  src: url("portfolio-media/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --shell-width: min(90.4%, 1420px);
  --mast-height: clamp(78px, 6.75vw, 104px);
  color-scheme: light;
  --signal-bg: #f7f8f1;
  --signal-surface: #e8eee8;
  --signal-text: #102f32;
  --signal-muted: #425957;
  --signal-line: #72847f;
  --signal-mint: #175d53;
  --signal-active: #943e17;
  --signal-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --paper: var(--signal-bg);
  --ink: var(--signal-text);
  --muted: var(--signal-muted);
  --line: var(--signal-line);
  --blue: var(--signal-active);
  --sage: var(--signal-surface);
  --sans: "DM Sans", Arial, sans-serif;
}

body {
  background: var(--signal-bg);
  color: var(--signal-text);
  font-family: var(--sans);
}

h1, h2, h3, h4, summary, .brand, button { font-family: var(--sans); }

h1 em, h2 em, h3 em {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

::selection { color: #082b2d; background-color: #d8e6ce; }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--signal-active);
  outline-offset: 4px;
}

.shell {
  width: var(--shell-width);
  margin-inline: auto;
}

.mast {
  position: relative;
  z-index: 10;
  min-height: 78px;
  height: var(--mast-height);
  gap: 22px;
  border: 0;
}

@media screen {
  html { scroll-padding-top: calc(var(--mast-height) + .75rem); }
  .mast.shell {
    --mast-gutter: calc((100% - var(--shell-width)) / 2);
    position: sticky;
    top: 0;
    width: 100%;
    padding-inline: var(--mast-gutter);
    background: var(--signal-bg);
    box-shadow: 0 1px 0 #d9d2c5;
  }
}

.brand {
  display: inline-flex;
  gap: 0;
  align-items: center;
  color: var(--signal-text);
  font-family: var(--sans);
  font-size: clamp(1rem, 1.3vw, 1.17rem);
  font-weight: 530;
  letter-spacing: -.035em;
}

.brand-point { color: inherit; }

.brand .mark {
  display: inline-flex;
  width: auto;
  height: 1.25em;
  margin: 0 .82em 0 0;
  align-items: center;
  padding-right: .74em;
  border-right: 1px solid #72847f;
  color: inherit;
  transform: none;
}

.brand .mark::before {
  content: "UX";
  position: relative;
  left: -.035em;
  font-family: "Times New Roman", Georgia, serif;
  font-size: 1.48em;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -.17em;
}

.brand .mark i { display: none; }

.mast nav {
  display: flex;
  align-items: center;
  gap: clamp(25px, 3.6vw, 54px);
}

.mast nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--signal-text);
  font: 480 clamp(.94rem, 1.1vw, 1.04rem)/1.2 var(--sans);
  letter-spacing: -.017em;
  text-decoration: none;
}

.mast nav a:is(:hover, [aria-current="page"], [aria-current="location"]), .foot a:hover {
  color: var(--signal-active);
  text-decoration: underline;
  text-underline-offset: .32em;
  text-decoration-thickness: 1px;
}

.skip {
  background: var(--signal-text);
  color: var(--signal-bg);
}

.signal-menu-toggle {
  display: none;
  cursor: pointer;
  color: var(--signal-text);
  background: transparent;
  border: 0;
  border-radius: 0;
  width: 44px;
  height: 44px;
  padding: 9px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.signal-menu-toggle span {
  width: 25px;
  height: 1.5px;
  background: currentColor;
  transition: transform 160ms ease;
}

.signal-menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.signal-menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

footer { background: #e8eee8; border-top: 1px solid var(--signal-line); }

.foot {
  min-height: 97px;
  padding-block: 20px;
  gap: 26px;
  justify-content: start;
}
.foot > span { color: var(--signal-muted); }
.foot > a:last-child { text-decoration: underline; text-underline-offset: .32em; }

@media (max-width: 650px) {
  :root { --shell-width: min(90%, 600px); --mast-height: 66px; }
  .mast { min-height: var(--mast-height); gap: 8px; }
  .mast:not(.with-signal-menu) { height: auto; padding-block: 12px 4px; flex-wrap: wrap; }
  .mast:not(.with-signal-menu) nav { gap: 18px; }
  .mast.with-signal-menu .signal-menu-toggle { display: inline-flex; margin-right: -9px; }
  .mast.with-signal-menu nav {
    display: none;
    position: absolute;
    z-index: 20;
    inset: calc(100% - 1px) var(--mast-gutter, 0px) auto;
    max-height: calc(100dvh - var(--mast-height));
    overflow-y: auto;
    border: 1px solid var(--signal-line);
    background: #f7f8f1;
    flex-direction: column;
    align-items: stretch;
    padding: 3px 18px;
    gap: 0;
    box-shadow: 0 12px 25px #17383926;
  }
  .mast.with-signal-menu nav.is-open { display: flex; }
  .mast.with-signal-menu nav a { padding: 6px 2px; min-height: 48px; }
  .mast.with-signal-menu nav a + a { border-top: 1px solid #72847f; }
  .foot { min-height: 82px; gap: 12px; }
  .foot > span { display: none; }
  .foot > a:last-child { font-size: .85rem; }
}
