/* Public profile page. Colours come from the theme variables on .p-page. */
@font-face { font-family: "Outfit"; src: url("fonts/outfit-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Outfit"; src: url("fonts/outfit-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Mono"; src: url("fonts/dm-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

.p-page, .p-page * { box-sizing: border-box; }
body.p-page { margin: 0; min-height: 100vh; min-height: 100dvh; }
.p-page {
  background: var(--bg); color: var(--ink);
  font: 400 16px/1.45 "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
.p-page .ic { display: block; flex: none; }

.p-wrap { position: relative; max-width: 592px; margin: 0 auto; padding: 56px 16px 32px; }
.p-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.p-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--card); border: 1px solid var(--line); }
.p-avatar--letter { display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); border-color: transparent; font-size: 40px; font-weight: 600; line-height: 1; }
.p-name { margin: 16px 0 0; font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.p-bio { margin: 8px 0 0; max-width: 44ch; color: var(--muted); font-size: 16px; overflow-wrap: anywhere; }

.p-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 16px 0 0; padding: 0; }
.p-icons a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); border: 1px solid var(--line); background: var(--card);
  transition: transform .15s ease, border-color .15s ease, color .15s ease; }
.p-icons a:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }
.p-icons a:active { transform: translateY(0) scale(.96); }

.p-list { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.p-heading { margin: 16px 0 0; font-size: 14px; line-height: 1.3; font-weight: 500; color: var(--muted); text-align: center; }
.p-heading:first-child { margin-top: 0; }

.p-btn {
  --btn-bg: var(--card); --btn-ink: var(--ink);
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 16px;
  background: var(--btn-bg); color: var(--btn-ink); border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; font-weight: 500; font-size: 16px; text-align: left; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.p-btn:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 8px 24px -14px rgba(0,0,0,.6); }
.p-btn:active { transform: translateY(0) scale(.99); box-shadow: none; }
.p-page :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.p-btn-ic { display: grid; place-items: center; width: 24px; flex: none; }
.p-btn-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.p-btn-label { overflow-wrap: anywhere; }
.p-btn-value { font: 400 13px/1.4 "DM Mono", ui-monospace, Menlo, Consolas, monospace; opacity: .72; overflow-wrap: anywhere; }
.p-btn-end { flex: none; opacity: .5; transition: transform .15s ease, opacity .15s ease; }
.p-btn:hover .p-btn-end { opacity: 1; transform: translateX(2px); }
.p-copy:hover .p-btn-end { transform: none; }

.fill-outline .p-btn { --btn-bg: transparent; border-color: var(--ink); }
.fill-accent .p-btn { --btn-bg: var(--accent); --btn-ink: var(--accent-ink); border-color: transparent; }
.fill-accent .p-btn:hover { border-color: var(--ink); }
.p-btn.is-brand { border-color: var(--line); }
.p-btn.is-brand:hover { border-color: var(--ink); }
/* the highlighted link is filled with the accent; where every button already is, it flips to the text colour */
.p-btn.is-highlight { --btn-bg: var(--accent); --btn-ink: var(--accent-ink); border-color: transparent; font-weight: 600; }
.p-btn.is-highlight:hover { border-color: var(--ink); }
.fill-accent .p-btn.is-highlight { --btn-bg: var(--ink); --btn-ink: var(--bg); }
.fill-accent .p-btn.is-highlight:hover { border-color: var(--accent); }

.p-empty { margin: 32px 0 0; text-align: center; color: var(--muted); }
.p-foot { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 48px; font-size: 13px; }
.p-foot a { color: var(--muted); text-decoration: none; padding: 4px 8px; border-radius: 6px; }
.p-foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.p-made { font-weight: 500; }

.p-share { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); cursor: pointer; transition: transform .15s ease, border-color .15s ease; }
.p-share:hover { transform: translateY(-2px); border-color: var(--accent); }
.p-share:active { transform: scale(.96); }

.p-owner { padding: 10px 16px; text-align: center; font-size: 14px; background: var(--card); border-bottom: 1px solid var(--line); color: var(--muted); }
.p-owner a { color: var(--ink); font-weight: 500; margin-left: 6px; }

.p-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.p-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.is-preview .p-wrap { padding-top: 40px; }

@media (prefers-reduced-motion: reduce) {
  .p-page *, .p-page *::before { transition: none !important; }
}
