/* Layout follows the p2x.io splash; colours and type follow BattlePlugins (master.scss). */
:root {
  --blue: #2095F2; --blue-light: #95CCF7; --on-blue: #fcfcfc;
  --page: #f7f7f7; --text: rgba(0, 0, 0, .87); --soft: #545454;
  --mark-grey: #e9e9e9;
  --brand-font: "Tenby Five", "Fredoka", Lato, sans-serif;
  --edge: clamp(20px, 6vw, 150px);
  --mark: min(17vw, 40vh);
}
* { box-sizing: border-box; }
html { background: var(--page); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--page); color: var(--text);
  font: 16px/1.55 Lato, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: var(--blue); color: #fff; }

main { flex: 1; position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-start; padding: clamp(24px, 6vh, 64px) var(--edge); }
.intro { max-width: min(62rem, 78vw); }
.hi { display: flex; align-items: center; gap: 28px; }
/* the paragraph starts under the heading: past the avatar (160px) and the gap (28px) */
.intro p { margin: 20px 0 0 188px; font-size: 18px; color: var(--soft); max-width: 68ch; }
.intro a { color: #009fda; font-weight: 700; text-decoration: none; }
.intro a:hover { color: #00b2f3; text-decoration: underline; }
.intro a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
.avatar { display: block; flex: none; width: 160px; height: 160px; border-radius: 50%; object-fit: cover;
  background: #fff; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--blue); }
h1 { margin: 0; font-family: var(--brand-font); font-size: clamp(38px, 4.4vw, 64px); font-weight: 700; line-height: 1.05; color: var(--blue); }

/* big wordmark runs off the right and bottom edges; only ".dev" is lit */
.mark { position: absolute; z-index: -1; right: -.03em; bottom: -.12em; font-family: var(--brand-font); font-size: var(--mark);
  font-weight: 700; line-height: 1; letter-spacing: -.02em; white-space: nowrap; color: var(--mark-grey); user-select: none; pointer-events: none; }
.mark span { position: relative; color: var(--blue); }
.mark span::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 2.2em; height: 2.2em; translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(32, 149, 242, .18), rgba(32, 149, 242, .06) 45%, transparent);
  animation: warm 1.8s ease-out; }
@keyframes warm { from { opacity: .35; } to { opacity: 1; } }

@media (max-width: 760px) and (orientation: portrait) {
  :root { --mark: 22vw; }
  .mark { right: auto; left: 50%; translate: -50% 0; }
  main { align-items: flex-start; padding-block: 44px 30vw; }
  .intro { width: 100%; max-width: none; }
  .hi { justify-content: center; gap: 16px; }
  .intro p { margin: 28px auto 0; text-align: center; font-size: 17px; }
  .avatar { width: 96px; height: 96px; }
  h1 { font-size: clamp(28px, 8.5vw, 38px); }
}
@media (max-height: 460px) { main { padding-block: 24px; } .avatar { width: 110px; height: 110px; } .intro p { margin-left: 138px; } }
@media (prefers-reduced-motion: reduce) { .mark span::before { animation: none; } }
