/*
 * doug.servicerelay.com — personal contact / links page.
 *
 * Deliberately a focused subset of the Service Relay landing-page stylesheet
 * (service-relay-landing-page/public/styles.css) rather than a copy of it: the
 * token block, font stack, and shared primitives (.sr-wrap, .sr-eyebrow,
 * .sr-display, .sr-mark) are reproduced VERBATIM so the two sites render
 * identically, and the ~3,200 lines of landing-page section CSS this site never
 * uses are left out. If a token changes on the landing page, change it here too
 * — the block below is the sync point.
 */

/* --- Tokens + base (verbatim from landing page .sr-page) ------------------ */
.sr-page {
  --sr-paper: #f4f5f3;
  --sr-panel: #ffffff;
  --sr-ink: #15191a;
  --sr-sub: #5c6569;
  --sr-line: #e4e6e2;
  --sr-faint: #eceee9;
  --sr-accent: #1f5b47;
  --sr-accent-ink: #ffffff;
  --sr-highlight: #6bd4ad;
  --sr-ink-bg: #15191a;
  --sr-on-ink: #f4f5f3;
  --sr-on-ink-sub: #9aa3a1;
  --sr-ink-line: #2a2f30;
  margin: 0;
  background: var(--sr-paper);
  color: var(--sr-ink);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

.sr-page a {
  color: inherit;
}

.sr-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 30px;
  color: var(--sr-accent);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.sr-eyebrow i {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

.sr-display {
  margin: 0;
  color: var(--sr-ink);
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.06;
}

/* Brand mark — verbatim from the landing-page nav. */
.sr-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 2px;
  background: var(--sr-ink);
}

.sr-mark::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 1px;
  background: rgba(244, 245, 243, 0.55);
}

.sr-mark span {
  position: relative;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sr-on-ink);
}

.sr-mark span + span {
  margin-left: 5px;
  background: var(--sr-accent);
}

/* --- Page shell (mobile-first) -------------------------------------------- */
.db-page {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.db-main {
  flex: 1;
  width: min(560px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 40px;
}

/* --- Identity ------------------------------------------------------------- */
.db-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.db-photo {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--sr-line);
  background: var(--sr-panel);
}

.db-name {
  margin: 20px 0 0;
  font-size: clamp(30px, 7.6vw, 38px);
}

.db-role {
  margin: 12px 0 0;
  color: var(--sr-ink);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.db-availability {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 16px 0 0;
  padding: 7px 15px;
  border: 1px solid var(--sr-line);
  border-radius: 999px;
  background: var(--sr-panel);
  color: var(--sr-sub);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
}

.db-availability::before {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sr-accent);
  box-shadow: 0 0 0 3px rgba(31, 91, 71, 0.14);
}

/* One line of proof under the availability pill. Deliberately short: every line
   added here pushes the project links further down the first screen. */
.db-pitch {
  max-width: 330px;
  margin: 14px 0 0;
  color: var(--sr-sub);
  font-size: 14.5px;
  line-height: 1.5;
}

/* --- Contact row ---------------------------------------------------------- */
.db-contact {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 22px 0 0;
}

.db-contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--sr-line);
  border-radius: 50%;
  background: var(--sr-panel);
  color: var(--sr-ink);
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease,
    transform 180ms ease;
}

.db-contact a:hover,
.db-contact a:focus-visible {
  background: var(--sr-ink);
  border-color: var(--sr-ink);
  color: var(--sr-paper);
  transform: translateY(-1px);
}

.db-contact svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

/* --- Project links -------------------------------------------------------- */
.db-links {
  margin: 34px 0 0;
}

.db-links-label {
  margin: 0 0 18px;
  justify-content: center;
}

.db-link-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.db-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--sr-line);
  background: var(--sr-panel);
  color: var(--sr-ink);
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease,
    box-shadow 180ms ease;
}

.db-link:hover,
.db-link:focus-visible {
  border-color: var(--sr-ink);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(21, 25, 26, 0.06);
}

.db-link-body {
  flex: 1;
  min-width: 0;
}

.db-link-name {
  display: block;
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.db-link-note {
  display: block;
  margin-top: 4px;
  color: var(--sr-sub);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
}

.db-link-arrow {
  flex-shrink: 0;
  color: var(--sr-sub);
  font-size: 15px;
  font-weight: 600;
  transition: transform 180ms ease, color 180ms ease;
}

.db-link:hover .db-link-arrow,
.db-link:focus-visible .db-link-arrow {
  color: var(--sr-accent);
  transform: rotate(-45deg);
}

/* --- Background ----------------------------------------------------------- */
/* Sits BELOW the project links on purpose — scrolling is opt-in on a link page,
   so the links keep the first screen and the detail is there for whoever wants
   it. Intentionally lighter chrome than .db-link so it never competes with the
   cards above it. */
.db-background {
  margin: 46px 0 0;
}

.db-bio-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.db-bio {
  position: relative;
  padding-left: 18px;
  color: var(--sr-sub);
  font-size: 15px;
  line-height: 1.6;
}

.db-bio::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sr-accent);
}

/* Inline link inside a bullet — the NANDA reference. Accent-coloured so it reads
   as a link against the muted bullet text, which inherits colour by default. */
.db-bio a {
  color: var(--sr-accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 180ms ease;
}

.db-bio a:hover,
.db-bio a:focus-visible {
  color: var(--sr-ink);
}

.db-bio-term {
  display: block;
  color: var(--sr-ink);
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

/* --- Footer --------------------------------------------------------------- */
.db-foot {
  padding: 34px 0 40px;
  border-top: 1px solid var(--sr-line);
  text-align: center;
}

.db-foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--sr-sub);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease;
}

.db-foot-brand:hover {
  color: var(--sr-ink);
}

/* --- QR page -------------------------------------------------------------- */
.db-qr-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  width: min(560px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0;
  text-align: center;
}

.db-qr-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(340px, 78vw);
  aspect-ratio: 1;
  padding: 22px;
  border: 1px solid var(--sr-line);
  background: var(--sr-panel);
}

.db-qr-frame img {
  width: 100%;
  height: 100%;
}

.db-qr-title {
  font-size: clamp(28px, 7vw, 36px);
}

.db-qr-note {
  max-width: 380px;
  margin: 0;
  color: var(--sr-sub);
  font-size: 15.5px;
  line-height: 1.55;
}

.db-qr-url {
  margin: 0;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--sr-line);
  color: var(--sr-ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
}

.db-qr-url:hover {
  border-bottom-color: var(--sr-ink);
}

@media print {
  .db-foot,
  .db-qr-note {
    display: none;
  }

  .db-qr-frame {
    border-color: #000;
  }
}

/* --- Larger screens ------------------------------------------------------- */
@media (min-width: 600px) {
  .db-main {
    padding: 76px 0 48px;
  }

  .db-link {
    padding: 20px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .db-contact a,
  .db-link,
  .db-link-arrow {
    transition: none;
  }

  .db-contact a:hover,
  .db-link:hover {
    transform: none;
  }
}
