@font-face {
  font-family: "Instrument Serif";
  src: url("instrument-serif.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("dm-sans.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ground: #121c18;
  --panel: #1b2a23;
  --ink: #f1e7d3;
  --body: #d2d0bc;
  --brass: #c7a46a;
  --bright: #e0c393;
  --rule: #665b44;
  --fine: #485145;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 28% 17%, #26372c 0%, transparent 51rem), var(--ground);
  color: var(--ink);
  font: 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid #f3c77f; outline-offset: 5px; }
h1, h2, p, figure { margin: 0; }
h1, h2 { font: 400 2.5rem/1.06 var(--serif); }
.width { width: min(74rem, calc(100% - clamp(3rem, 10vw, 9rem))); margin-inline: auto; }
.skip { position: fixed; top: -6rem; left: 1rem; z-index: 5; padding: .7rem 1rem; background: var(--ink); color: var(--ground); }
.skip:focus { top: .6rem; }
::selection { background: #d2ad71; color: #15221b; }

.mast {
  background: #111a16;
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 3px 0 var(--ground), 0 4px 0 #384337;
}
.mast-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5rem; }
.brand { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; }
.monogram {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.8rem;
  border: 1px solid #a88a58;
  border-radius: 45% 45% 36% 36% / 23% 23% 25% 25%;
  background: #26352a;
  box-shadow: inset 0 0 0 3px #1a241c, inset 0 0 0 4px #5b5a43;
  padding-right: .12em;
  color: var(--bright);
  font: 1.45rem/1 var(--serif);
  letter-spacing: -.11em;
}
.wordmark { font: 1.52rem/1 var(--serif); letter-spacing: -.018em; white-space: nowrap; }
nav, .profile-links { display: flex; align-items: center; }
nav { gap: clamp(1.2rem, 2.8vw, 2.6rem); }
.navlink { color: #d6d3bf; text-decoration: none; font-size: .95rem; }
.navlink:hover, .foot a:hover { color: var(--bright); text-decoration: underline; text-underline-offset: .29em; }

.signin, .green-btn, .light-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .68rem;
  min-height: 2.85rem;
  padding: .84rem 1.23rem;
  border: 1px solid var(--brass);
  border-radius: 2px;
  font-size: .96rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.signin { background: #222d25; color: var(--bright); border-color: #88774f; }
.signin:hover { background: #364234; border-color: var(--brass); }
.green-btn, .light-btn { color: #1d2119; background: #d0b37f; border-color: #d9bc88; }
.green-btn:hover, .light-btn:hover { background: #e9cf9d; border-color: #e9cf9d; }
.underlink { color: var(--bright); text-decoration: underline; text-underline-offset: .33em; text-decoration-color: #99815a; font-size: .98rem; }
.underlink:hover { color: #f4dcac; text-decoration-color: currentColor; }
.lock { position: relative; display: inline-block; flex: none; width: .78rem; height: .61rem; margin-top: .24rem; border: 1.5px solid currentColor; border-radius: 2px; }
.lock::before { content: ""; position: absolute; bottom: 100%; left: 50%; width: .43rem; height: .41rem; transform: translateX(-50%); border: 1.5px solid currentColor; border-bottom: 0; border-radius: 5px 5px 0 0; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(2.5rem, 6.5vw, 6rem);
  align-items: center;
  padding-block: clamp(2.4rem, 5.1vw, 4.8rem);
  border-bottom: 3px double var(--rule);
}
.hero::after {
  content: "";
  position: absolute;
  width: .45rem;
  height: .45rem;
  bottom: -.31rem;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  border: 1px solid var(--brass);
  background: var(--ground);
  box-shadow: 0 0 0 5px var(--ground);
}
.location { display: flex; align-items: center; gap: .75rem; color: var(--bright); font-size: .79rem; letter-spacing: .15em; text-transform: uppercase; }
.rule { width: 2.65rem; height: 3px; border-block: 1px solid #ac925f; }
h1 { margin: clamp(1.15rem, 2vw, 1.9rem) 0 1.4rem; font-size: clamp(4.8rem, 8.8vw, 8.25rem); line-height: .89; letter-spacing: -.038em; }
.name-break { display: block; }
.role { color: #e1cd9e; font: 400 clamp(1.35rem, 2.2vw, 1.75rem)/1.25 var(--serif); }
.lead { max-width: 46ch; margin: .92rem 0 1.48rem; color: var(--body); font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 1.68; }
.profile-links { flex-wrap: wrap; gap: .85rem 1.42rem; }

.portrait {
  --moulding: clamp(.8rem, 1.7vw, 1.32rem);
  width: 100%;
  max-width: 31rem;
  aspect-ratio: .95;
  justify-self: end;
  position: relative;
  isolation: isolate;
  padding: var(--moulding);
  background: linear-gradient(145deg, #71563e, #3c3025 17%, #493529 50%, #30251e 82%, #73573b);
  border: 1px solid #a58a5a;
  outline: 1px solid #454335;
  outline-offset: 3px;
  box-shadow: inset 0 0 0 3px #4c3929, inset 0 0 0 4px #ac8b59, inset 0 0 0 6px #35271e, 0 15px 30px #07100d70;
}
.portrait::after { content: ""; pointer-events: none; position: absolute; inset: calc(var(--moulding) - 3px); border: 1px solid #c8ae76; box-shadow: inset 0 0 0 2px #4a3a2b, 0 0 0 1px #2e2119; }
.portrait img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 60% center; }

.life { display: grid; grid-template-columns: 1fr 1fr; margin-block: clamp(2.2rem, 4.3vw, 4rem); }
.life article:first-child { padding-right: clamp(1.8rem, 5vw, 4.6rem); border-right: 1px solid var(--fine); }
.life article + article { padding-left: clamp(1.8rem, 5vw, 4.6rem); }
h2 { font-size: clamp(2.15rem, 3.65vw, 3.25rem); letter-spacing: -.026em; }
.life h2 { display: flex; flex-direction: column; gap: .75rem; }
.life h2::before { content: ""; width: 1.6rem; height: 2px; background: #9e8359; }
.life p { max-width: 52ch; margin: .74rem 0 .92rem; color: var(--body); line-height: 1.7; }

.private {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.8rem, 4vw, 3.5rem);
  background: radial-gradient(ellipse at 0% 50%, #593835 0, #422d2a 50%, #362923 100%);
  border: 1px solid #897254;
  outline: 1px solid #776046;
  outline-offset: -7px;
  scroll-margin-top: 1.1rem;
}
.portal-text { display: flex; align-items: center; gap: 1.5rem; }
.emblem { color: var(--bright); width: 1.13rem; height: .89rem; }
.emblem::before { width: .68rem; height: .6rem; }
.private h2 { font-size: clamp(2.1rem, 3.2vw, 2.85rem); }
.private p { color: #e1d7c3; font-size: 1rem; margin-top: .44rem; }
.light-btn { flex: none; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; padding: 1.55rem 0 2rem; color: #bdbfae; font-size: .86rem; }
.foot a { color: inherit; text-underline-offset: .25rem; text-decoration-color: #717562; }

@media (max-width: 820px) {
  .width { width: calc(100% - 3.4rem); }
  .hero { column-gap: 2.25rem; }
  h1 { font-size: clamp(4.6rem, 10vw, 6.25rem); }
  .profile-links { gap: .8rem 1.1rem; }
  .private { gap: 1.2rem; }
}
@media (max-width: 650px) {
  .width { width: calc(100% - 2.6rem); }
  .mast-inner { min-height: 4.25rem; }
  .monogram { width: 2.05rem; height: 2.29rem; font-size: 1.18rem; }
  .wordmark { font-size: 1.3rem; }
  .brand { gap: .62rem; }
  .navlink { display: none; }
  .signin { padding: .65rem .89rem; }
  .hero { grid-template-columns: 1fr; gap: 1.9rem; padding: 2rem 0 2.25rem; }
  .location { font-size: .75rem; }
  h1 { font-size: clamp(4.4rem, 15.1vw, 6.6rem); margin: 1.1rem 0 1rem; }
  .name-break { display: inline; }
  .lead { margin: .72rem 0 1.2rem; }
  .portrait { max-width: 32rem; justify-self: center; aspect-ratio: 1.23; }
  .life { grid-template-columns: 1fr; gap: 1.65rem; margin-block: 2rem; }
  .life article:first-child { padding: 0; border: 0; }
  .life article + article { padding-left: 0; }
  .life h2 { gap: .5rem; }
  .private { flex-direction: column; align-items: flex-start; padding: 1.65rem; gap: 1rem; }
  .emblem { display: none; }
  .foot { padding-block: 1.25rem; }
}
@media (max-width: 370px) {
  .width { width: calc(100% - 2rem); }
  .profile-links { gap: .9rem; }
  .green-btn { padding-inline: .87rem; }
  .underlink { font-size: .92rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
