@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --surface: #faf6ee;
  --surface-lowest: #fefcf7;
  --surface-container: #fbe7d4;
  --surface-high: #f9d5bc;
  --ink: #332b25;
  --ink-soft: #6c5e54;
  --ink-faint: #98897d;
  --apricot: #d47a40;
  --apricot-deep: #a95327;
  --line: rgba(51, 43, 37, 0.11);
  --line-soft: rgba(51, 43, 37, 0.065);
  --shadow-soft: 0 1px 2px rgba(87, 54, 32, 0.04), 0 12px 32px -12px rgba(87, 54, 32, 0.18);
  --shadow-float: 0 2px 5px rgba(87, 54, 32, 0.06), 0 22px 54px -20px rgba(87, 54, 32, 0.26);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-accent: "Instrument Serif", Georgia, serif;
  color-scheme: light;
  font-synthesis: none;
}

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

html {
  min-width: 320px;
  background: var(--surface);
  color: var(--ink);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), transparent 42%),
    var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.clipboard-proxy {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer,
.contact-card {
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
}

.preboot-mark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 8px;
}

.preboot-mark img {
  display: block;
  width: 114px;
  height: auto;
}

.share-wrap {
  position: relative;
}

.share-button {
  display: inline-flex;
  min-width: 82px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 15px;
  border: 0;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--line);
  background: rgba(254, 252, 247, 0.72);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  transition: color 220ms ease, background-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.share-spark {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--apricot);
  box-shadow: 0 0 0 5px rgba(212, 122, 64, 0.1);
}

.share-status {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  width: max-content;
  max-width: 180px;
  color: var(--ink-soft);
  font-size: 12px;
}

.ambient {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
}

.ambient-one {
  top: 17%;
  right: -11vw;
  width: 34vw;
  height: 34vw;
  background: radial-gradient(circle, rgba(249, 213, 188, 0.58), rgba(249, 213, 188, 0) 68%);
}

.ambient-two {
  bottom: -15vw;
  left: -12vw;
  width: 38vw;
  height: 38vw;
  background: radial-gradient(circle, rgba(251, 231, 212, 0.82), rgba(251, 231, 212, 0) 68%);
}

.contact-card {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  padding-block: 18px 22px;
}

.portrait-panel {
  display: flex;
  justify-content: center;
}

.portrait-frame {
  position: relative;
  width: min(65vw, 240px);
  aspect-ratio: 521 / 594;
  overflow: hidden;
  border: 1px solid rgba(51, 43, 37, 0.08);
  border-radius: 26px;
  box-shadow: var(--shadow-float);
  background: var(--surface-container);
  isolation: isolate;
  animation: portrait-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.portrait-frame::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  box-shadow: inset 0 -70px 70px -70px rgba(35, 25, 20, 0.62);
  content: "";
  pointer-events: none;
}

.portrait-frame picture,
.portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
}

.portrait-frame img {
  object-fit: cover;
}

.portrait-detail {
  position: absolute;
  right: 14px;
  bottom: 13px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fffaf4;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portrait-detail span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ed995d;
  box-shadow: 0 0 0 4px rgba(237, 153, 93, 0.16);
}

.identity-panel {
  width: min(100%, 560px);
  margin-inline: auto;
  padding-top: 18px;
  animation: content-in 700ms 90ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  color: var(--apricot-deep);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 18px;
  height: 1px;
  background: var(--apricot);
}

h1 {
  max-width: 620px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 9vw, 38px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

h1 span {
  display: block;
}

.role {
  margin: 9px 0 17px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.4;
}

.role span {
  margin-inline: 5px;
  color: var(--apricot);
}

.role a {
  color: var(--ink);
  font-weight: 600;
  text-decoration-color: rgba(212, 122, 64, 0.45);
  text-underline-offset: 3px;
}

.save-contact {
  display: grid;
  min-height: 54px;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  background: var(--ink);
  color: var(--surface);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
}

.save-contact small {
  color: rgba(250, 246, 238, 0.66);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.save-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ed995d;
  box-shadow: 0 0 0 5px rgba(237, 153, 93, 0.13);
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 11px;
}

.action-grid a {
  position: relative;
  display: flex;
  min-height: 66px;
  flex-direction: column;
  justify-content: center;
  padding: 11px 35px 11px 15px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1.25px var(--line);
  background: rgba(254, 252, 247, 0.7);
  text-decoration: none;
  transition: background-color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
}

.action-grid a > span {
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.action-grid small {
  display: block;
  min-width: 0;
  margin-top: 4px;
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-grid b {
  position: absolute;
  top: 14px;
  right: 14px;
  color: var(--apricot);
  font-size: 15px;
  font-weight: 400;
  transition: transform 250ms ease;
}

.contact-note {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 12px 2px 0;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-faint);
  font-size: 12px;
}

.contact-note a {
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
}

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 47px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-faint);
  font-size: 10px;
}

.site-footer a {
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid rgba(212, 122, 64, 0.58);
  outline-offset: 3px;
}

@media (hover: hover) {
  .share-button:hover {
    background: var(--surface-lowest);
    box-shadow: inset 0 0 0 1.5px rgba(212, 122, 64, 0.35), var(--shadow-soft);
    transform: translateY(-1px);
  }

  .save-contact:hover {
    background: #412f26;
    box-shadow: var(--shadow-float);
    transform: translateY(-2px);
  }

  .action-grid a:hover {
    box-shadow: inset 0 0 0 1.25px rgba(212, 122, 64, 0.3), var(--shadow-soft);
    background: var(--surface-lowest);
    transform: translateY(-2px);
  }

  .action-grid a:hover b {
    transform: translate(2px, -2px);
  }
}

@media (min-width: 768px) {
  .site-header,
  .site-footer,
  .contact-card {
    width: min(100% - 64px, 1180px);
  }

  .site-header {
    min-height: 72px;
  }

  .preboot-mark img {
    width: 128px;
  }

  .contact-card {
    min-height: calc(100svh - 126px);
    grid-template-columns: minmax(260px, 0.9fr) minmax(340px, 1.1fr);
    gap: clamp(30px, 6vw, 116px);
    padding-block: 38px;
  }

  .portrait-frame {
    width: min(100%, 430px);
    border-radius: 38px;
  }

  .portrait-detail {
    right: 22px;
    bottom: 20px;
    font-size: 11px;
  }

  .identity-panel {
    padding-top: 0;
  }

  .eyebrow {
    margin-bottom: 15px;
    font-size: 11px;
  }

  h1 {
    font-size: clamp(48px, 6.2vw, 72px);
    line-height: 0.94;
    letter-spacing: -0.045em;
  }

  .role {
    margin: 16px 0 28px;
    font-size: 21px;
  }

  .save-contact {
    min-height: 58px;
    padding-inline: 22px;
  }

  .action-grid {
    gap: 11px;
    margin-top: 13px;
  }

  .action-grid a {
    min-height: 78px;
    padding: 14px 40px 14px 18px;
    border-radius: 20px;
  }

  .action-grid a > span {
    font-size: 15px;
  }

  .action-grid small {
    font-size: 11px;
  }

  .contact-note {
    display: flex;
  }

  .site-footer {
    min-height: 54px;
    font-size: 11px;
  }
}

@media (min-width: 1200px) {
  .contact-card::before {
    position: absolute;
    top: 11%;
    right: -8%;
    z-index: -1;
    width: 260px;
    height: 138px;
    border: 1px solid rgba(212, 122, 64, 0.14);
    border-radius: 28px;
    background: rgba(254, 252, 247, 0.2);
    box-shadow: var(--shadow-soft);
    content: "";
    transform: rotate(5deg);
  }
}

@media (max-width: 359px) {
  .site-header,
  .site-footer,
  .contact-card {
    width: calc(100% - 28px);
  }

  .site-header {
    min-height: 58px;
  }

  .preboot-mark img {
    width: 104px;
  }

  .share-button {
    min-width: 76px;
    padding-inline: 13px;
  }

  .contact-card {
    padding-top: 13px;
  }

  .portrait-frame {
    width: min(65vw, 208px);
    border-radius: 23px;
  }

  .identity-panel {
    padding-top: 14px;
  }

  h1 {
    font-size: 30px;
  }

  .role {
    margin-bottom: 14px;
    font-size: 15px;
  }

  .action-grid a {
    min-height: 62px;
    padding-left: 13px;
  }

  .site-footer {
    font-size: 9px;
  }
}

@keyframes portrait-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
}

@keyframes content-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Utility pages */

.utility-page {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
}

.utility-header,
.utility-footer,
.error-shell {
  position: relative;
  z-index: 2;
  width: min(100% - 40px, 1080px);
  margin-inline: auto;
}

.utility-header {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
}

.utility-header img {
  display: block;
  width: 114px;
  height: auto;
}

.utility-header a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.utility-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 21px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.utility-button {
  box-shadow: var(--shadow-soft);
  background: var(--ink);
  color: var(--surface);
}

.utility-footer {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-faint);
  font-size: 10px;
}

.utility-footer a {
  font-weight: 600;
  text-decoration: none;
}

.error-shell {
  display: grid;
  flex: 1;
  place-items: center;
  padding-block: 48px;
  text-align: center;
}

.error-code {
  margin: 0 0 12px;
  color: var(--apricot);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.error-shell h1 {
  margin-inline: auto;
  font-size: clamp(48px, 13vw, 78px);
}

.error-shell p:not(.error-code) {
  max-width: 430px;
  margin: 18px auto 25px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.55;
}

@media (hover: hover) {
  .utility-header a:hover,
  .utility-footer a:hover {
    color: var(--apricot-deep);
  }

  .utility-button:hover {
    background: #412f26;
    box-shadow: var(--shadow-float);
    transform: translateY(-2px);
  }

}

@media (min-width: 760px) {
  .utility-header,
  .utility-footer,
  .error-shell {
    width: min(100% - 64px, 1080px);
  }

  .utility-header {
    min-height: 72px;
  }

  .utility-header img {
    width: 128px;
  }

  .utility-footer {
    font-size: 11px;
  }
}
