:root {
  color-scheme: light;
  --ink: #24221f;
  --muted: #605b54;
  --rule: #e5e1da;
  --gold: #e9cd8c;
  --brand-brown: #401818;
  --on-brown: #fff9f2;
  --paper: #fff;
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 18px; }
body {
  margin: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
  background: var(--paper);
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 3px solid #8b6226; outline-offset: 3px; }
.skip { position: absolute; top: -100px; }
.skip:focus { top: 12px; left: 12px; z-index: 2; padding: 8px; background: white; }
.profile-top { background: var(--brand-brown); color: var(--on-brown); padding-bottom: 24px; }
.profile-top a:focus-visible { outline-color: var(--gold); }
.draft { padding: 8px; text-align: center; font-size: 11px; color: #e4cfc4; }
.profile-width, .footer { width: min(calc(100% - 40px), 480px); margin-inline: auto; }
.hero { text-align: center; margin-bottom: 24px; }
.portrait-frame {
  position: relative;
  width: min(100%, 310px, max(152px, calc(90svh - 166px)));
  margin: 0 auto 12px;
  mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent);
}
.portrait-frame::before,
.portrait-frame::after {
  content: "";
  position: absolute;
  border-radius: 50% 50% 0 0 / 33% 33% 0 0;
  pointer-events: none;
}
.portrait-frame::before {
  inset: 0;
  border: 2px solid #b38b64;
  border-bottom: 0;
}
.portrait-frame::after {
  inset: 7px 7px 0;
  border: 1px solid #785140;
  border-bottom: 0;
}
.portrait {
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: calc(100% - 40px);
  aspect-ratio: 235 / 260;
  margin-inline: auto;
}
.portrait img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  /* Lift the crop while keeping the face centered. */
  transform: translate(7%, -8.5%) scale(1.13);
  transform-origin: 44% top;
}
h1 { font-size: clamp(30px, 7.7vw, 38px); line-height: 1.2; letter-spacing: -.055em; }
.credential { margin-top: 7px; color: #eddad0; font-size: 13px; font-weight: 600; }
.intro { margin-top: 9px; font-size: 15px; }
@media (max-height: 600px) {
  .hero { margin-bottom: 16px; }
  .portrait-frame { margin-bottom: 8px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .hero {
    display: grid;
    grid-template-columns: 40% 1fr;
    align-items: center;
    column-gap: 12px;
  }
  .portrait-frame {
    grid-row: 1 / span 3;
    width: 100%;
    margin-bottom: 0;
  }
  .portrait {
    height: 150px;
    aspect-ratio: auto;
  }
}
.channel-buttons { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.channel-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 4px;
  font-size: 13px;
  font-weight: 650;
}
.channel-mark { width: 23px; height: 23px; object-fit: contain; }
.blog-mark { width: 62px; height: auto; }
.primary { display: grid; gap: 8px; }
.primary a, .resource {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 50px;
}
.primary .button {
  padding: 12px 16px;
  border: 1px solid #936e65;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 650;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}
.primary .iso-cta {
  min-height: 54px;
  color: var(--ink);
  background: var(--gold);
  border-color: transparent;
  font-size: 16px;
  font-weight: 750;
}
.primary .arrow { flex-shrink: 0; font-size: 18px; font-weight: 450; }
.icon-definitions { position: absolute; }
.category-icon {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.category-nav {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  margin-top: 16px;
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.category-nav a {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  min-height: 60px;
  padding: 7px 4px;
  font-size: 13px;
  font-weight: 650;
}
.category-nav a + a { border-left: 1px solid var(--rule); }
.category {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}
.category-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
  letter-spacing: -.035em;
}
.category-subtitle {
  margin: 16px 2px 3px;
  color: var(--muted);
  font-size: 13px;
}
.category-list { list-style: none; padding: 0; margin: 0; }
.resource { padding: 11px 2px; border-bottom: 1px solid var(--rule); }
.resource > span:last-child { flex: none; color: var(--muted); }
.resource small { display: block; margin-bottom: 2px; color: var(--muted); font-size: 12px; }
.resource strong { font-size: 15px; letter-spacing: -.02em; line-height: 1.45; }
.resource-group { margin-top: 16px; }
.resource-group + .resource-group {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.resource-group-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 2px 4px;
  font-size: 14px;
}
.resource-group-title .category-icon { width: 16px; height: 16px; }
.resource-group > .resource,
.resource-group li:last-child .resource { border-bottom: 0; }
.about-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.about-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 5px;
  height: 100%;
  min-height: 100px;
  padding: 12px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-size: 14px;
}
.about-card .category-icon { margin-bottom: 5px; }
.about-card small { color: var(--muted); font-size: 11px; }
.card-arrow { position: absolute; top: 10px; right: 12px; color: var(--muted); }
.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 4px;
}
.contact-actions a {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 48px;
  padding: 8px clamp(6px, 2.5vw, 12px);
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 650;
}
.contact-actions .category-icon { width: 17px; height: 17px; }
.contact-arrow { margin-left: auto; }
details { border-bottom: 1px solid var(--rule); }
summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 2px; cursor: pointer; font-weight: 620; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: #80643a; }
details[open] > summary::after { content: '−'; }
details p { color: var(--muted); font-size: 14px; }
details > p { margin: 0 0 16px; }
.service { margin: 8px 0 12px; }
.service h3 { font-size: 15px; }
.fine { font-size: 12px; }
.footer { border-top: 1px solid var(--rule); margin-top: 32px; padding: 24px 0; color: var(--muted); font-size: 12px; }
.footer nav { display: flex; gap: 16px; }
.footer a { display: inline-flex; align-items: center; min-height: 40px; }
.footer-top strong { color: var(--ink); font-size: 14px; }
.primary .button:active { transform: scale(.985); }
@media (hover: hover) {
  .primary .button:hover { border-color: var(--gold); }
  .primary .iso-cta:hover { background: #e3c477; }
  .category-nav a:hover, .resource:hover strong, .about-card:hover strong,
  .channel-link:hover, .contact-actions a:hover { text-decoration: underline; text-underline-offset: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .primary .button { transition: none; }
  .primary .button:active { transform: none; }
}
