@font-face {
  font-family: Baskervville;
  src: url("./baskervville-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Schibsted;
  src: url("./schibsted-var.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #0e2740;
  --petrol: #16344d;
  --ink: #20334a;
  --muted: #526477;
  --paper: #fffdf8;
  --wash: #f7f4ed;
  --canvas: #edf1f4;
  --line: #e6dfd1;
  --gold: #d4af6a;
  --gold-light: #e2c184;
  font-family: Schibsted, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
::selection { background: var(--gold-light); color: var(--navy); }
a { color: inherit; }
button { font: inherit; }
button, a, summary { touch-action: manipulation; }
:focus-visible { outline: 2px solid #90631d; outline-offset: 4px; }
.profile :focus-visible { outline-color: var(--gold-light); }
.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 12px;
  background: var(--paper);
}

.shell {
  width: min(100% - 40px, 1000px);
  margin: clamp(22px, 10vh, 100px) auto 0;
}
.sheet {
  overflow: hidden;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 22px 65px rgb(14 39 64 / 13%);
}
.business-card {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
  min-height: 440px;
}
.profile {
  padding: clamp(28px, 4.5vw, 54px);
  color: var(--paper);
  background: linear-gradient(145deg, var(--petrol), var(--navy) 67%);
  border-top: 2px solid var(--gold);
}
.business-card .profile {
  display: grid;
  align-content: start;
  border-right: 1px solid var(--gold);
}
.profile-top {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  color: var(--paper);
  font-size: .84rem;
  font-weight: 650;
  line-height: 1.23;
  text-decoration: none;
}
.brand img { display: block; width: 56px; height: 42px; filter: brightness(0) invert(1); }
.brand span { border-left: 1px solid rgb(226 193 132 / 55%); padding-left: 11px; }
.identity {
  margin-top: clamp(22px, 4.5vw, 44px);
}
.name {
  margin: 0;
  font-family: Baskervville, Georgia, serif;
  font-size: clamp(2.55rem, 5.8vw, 4.35rem);
  line-height: .99;
  font-weight: 400;
  letter-spacing: -.035em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.role {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 17px 0 0;
  color: var(--gold-light);
  font-size: clamp(.86rem, 2.4vw, 1.05rem);
  line-height: 1.3;
  font-weight: 600;
}
.role::before { content: ""; width: 23px; height: 1px; background: currentColor; }
.intro { margin: 13px 0 0; color: #dbe5ee; font-size: .97rem; line-height: 1.45; text-wrap: pretty; }
.portrait-frame {
  flex: none;
  width: clamp(115px, 17vw, 169px);
  padding: 5px;
  border: 1px solid rgb(226 193 132 / 74%);
  border-radius: 2px 2px 24px 2px;
}
.portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0 0 19px 0;
  background: var(--petrol);
}

.content { padding: clamp(26px, 4.5vw, 49px); }
.business-card .content { align-self: center; }
.content h2 {
  margin: 0 0 21px;
  color: var(--navy);
  font-family: Baskervville, Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -.025em;
}
.action, .tool, .person {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 11px;
  font-weight: 630;
  text-decoration: none;
}
.icon { flex: none; width: 20px; height: 20px; }
.end { width: 16px; height: 16px; margin-left: auto; }
.action { border: 1px solid var(--line); border-radius: 5px; padding: 10px 13px; }
.action--primary {
  min-height: 58px;
  margin-bottom: 10px;
  background: #dfbd80;
  border-color: #c6a369;
  color: var(--navy);
}
.secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 8px;
  margin: 25px 0 0;
  padding: 5px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.qr-item { grid-column: 1 / -1; border-top: 1px solid var(--line); }
.tool {
  width: 100%;
  padding: 8px 6px;
  gap: 8px;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: .91rem;
  cursor: pointer;
}
.tool .icon:first-child { color: var(--petrol); }
.tool[hidden] { display: none; }
.tool::-webkit-details-marker { display: none; }
details[open] .end { transform: rotate(180deg); }
.qr-panel {
  display: grid;
  grid-template-columns: minmax(90px, 128px) 1fr;
  align-items: center;
  gap: 12px;
  padding: 9px;
  background: var(--wash);
}
.qr-panel img { display: block; width: 100%; height: auto; }
.qr-panel p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.qr-panel a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; font-size: .89rem; }
.share-status:empty { display: none; }
.share-status { margin: 10px 0 0; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.copy-url { width: 100%; min-height: 44px; margin-top: 8px; border: 1px solid var(--line); border-radius: 5px; padding: 8px; font: inherit; color: var(--ink); }
.site-footer { padding: 9px 2px; text-align: right; }
.site-footer a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: .9rem;
  text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

.directory { max-width: 760px; margin-inline: auto; }
.directory .name { margin-top: 23px; }
.shell:has(.directory) .site-footer { max-width: 760px; margin-inline: auto; }
.people { padding: 0; margin: 0; list-style: none; }
.people li + li { border-top: 1px solid var(--line); }
.person { min-height: 75px; padding: 10px 4px; gap: 14px; }
.person img { width: 49px; height: 49px; border-radius: 4px; object-fit: cover; background: var(--wash); }
.person span { min-width: 0; overflow-wrap: anywhere; }

@media (hover: hover) {
  .action:hover, .tool:hover, .person:hover { background: var(--wash); }
  .action--primary:hover { background: var(--gold-light); border-color: var(--gold-light); }
  .action--primary:hover .end { transform: translate(2px, -2px); }
}
@media (max-width: 710px) {
  .shell { width: min(100% - 24px, 520px); margin-top: 14px; }
  .business-card { display: block; min-height: auto; }
  .business-card .profile { border-right: 0; border-bottom: 1px solid var(--gold); }
  .profile { padding: 23px 24px 25px; }
  .brand img { width: 48px; height: 36px; }
  .brand { font-size: .77rem; }
  .portrait-frame { width: clamp(102px, 29vw, 135px); }
  .name { font-size: clamp(2.45rem, 10vw, 3.45rem); }
  .content { padding: 22px 21px 18px; }
  .content h2 { margin-bottom: 13px; }
  .tools { margin-top: 16px; }
  .secondary .action { padding-inline: 10px; }
}
@media (prefers-reduced-motion: no-preference) {
  .action, .tool, .person { transition: background-color 150ms, border-color 150ms; }
  .action .end, .tool .end { transition: transform 160ms; }
}
