/* owencope.is-a.dev: this site's own parts. Tokens and the shared parts live in liquix.css. */

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--page); }
h1, h2, h3, p { overflow-wrap: break-word; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; padding: 10px 16px; border-radius: 999px;
  background: var(--capsule); color: #1d1d1f; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.brand img { border-radius: 50%; object-fit: cover; }

/* ---------- Hero: the photo beside the name, the apps underneath ---------- */
.me .me-in { position: relative; height: 100%; width: min(940px, 100%); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 88px);
  padding: 96px clamp(24px, 4vw, 64px) 56px; }
.portrait { justify-self: end; width: min(100%, 240px); height: auto; aspect-ratio: 1; }
.me-copy { color: var(--title-ink); }
.me-copy h1 { margin: 0; font-size: clamp(44px, 5vw, 72px); line-height: 1.05; font-weight: 700; letter-spacing: -.025em; }
.me-copy h1 span { display: block; margin-top: 10px; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2; font-weight: 600; letter-spacing: -.015em; color: var(--soft-ink); }
.me-copy .capsule { margin-top: 32px; }

/* The apps, in a row like the Dock. Each icon opens its card. */
.dockrow { display: flex; gap: clamp(18px, 2.4vw, 30px); margin: 44px 0 0; padding: 0; list-style: none; }
.app { display: flex; flex-direction: column; align-items: center; gap: 8px; border-radius: 26px; color: var(--soft-ink);
  transition: transform .5s var(--hover); }
.app img { width: clamp(76px, 7vw, 100px); height: auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .2)); }
.app span { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.app:hover { transform: scale(1.06); }
.app:active { transform: scale(.94); transition-duration: .15s; }

/* ---------- Intro and gallery ---------- */
.intro h2 { color: var(--ink); }
.slide-copy h3 { display: flex; align-items: center; gap: 14px; }
.slide-copy .mini { width: clamp(40px, 3.6vw, 56px); height: auto; }
.slide > video.mac { height: calc(100% - 250px); width: auto; max-width: 86%; margin: auto auto 120px; 
  object-fit: contain; translate: calc(var(--d, 0) * 40px) 0; }
[data-theme="light"] .slide > video.mac.dark-only, [data-theme="dark"] .slide > video.mac.light-only { display: none; }

/* ---------- Cards ---------- */
.card-media > img.on-wall.screen { object-fit: contain; border-radius: 16px; }
.card-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px !important; }
.card-links .capsule { margin-top: 0; }
.card-body a:not(.capsule) { color: var(--blue); }
.capsule .ico { stroke-width: 2.2; }
.capsule.quiet { background: var(--board); }
[data-theme="dark"] .capsule.quiet { background: rgba(255, 255, 255, .14); color: var(--ink); }
[data-theme="dark"] .capsule.quiet .ico { color: var(--ink); }

/* ---------- About ---------- */
.about { width: min(760px, calc(100% - 48px)); margin: 0 auto; padding: 140px 0 0; text-align: center; }
.about h2 { margin: 8px 0 0; font-size: clamp(40px, 4.4vw, 60px); line-height: 1.1; font-weight: 700; letter-spacing: -.025em; }
.about p:last-child { margin: 22px auto 0; max-width: 34em; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; color: var(--sub); }
.about a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- Footer: contact ---------- */
.foot { padding-top: 120px; }
.foot-me { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.foot-name { margin-top: 18px; }
.maker { min-height: 44px; padding: 7px 16px; }
.maker .ico { width: 20px; height: 20px; }
.maker.copy.copied span::after { content: " copied"; }
.foot .fine { max-width: 46em; line-height: 1.5; }

/* ---------- Phones and narrow windows ---------- */
@media (max-width: 900px) {
  .me .me-in { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 28px; padding-top: 96px; }
  .portrait { width: min(100%, 180px); }
  .me-copy { display: flex; flex-direction: column; align-items: center; }
  .dockrow { justify-content: center; margin-top: 32px; }
}
@media (max-width: 733px) {
  .me-copy h1 { font-size: 44px; }
  .portrait { width: min(100%, 152px); }
  .slide-copy h3 { gap: 10px; }
  .slide > video.mac { height: auto; width: 92%; max-width: none; margin: auto auto 100px; }
  .about { padding-top: 100px; }
  .foot { padding-top: 90px; }
}

/* On the white card body the main capsule is ink, so it still reads as the one action. */
.card-body .capsule:not(.quiet) { background: #1d1d1f; color: #fff; }
.card-body .capsule:not(.quiet) .ico { color: #fff; }
[data-theme="dark"] .card-body .capsule:not(.quiet) { background: var(--capsule); color: #1d1d1f; }
[data-theme="dark"] .card-body .capsule:not(.quiet) .ico { color: #1d1d1f; }

/* Dome: show the sky behind the words, the rocks lower down. Text over a photo gets more solid ink. */
.me > .wall, .gallery > .wall, .card-media > img.wall { object-position: 50% 12%; }
.me .me-copy { color: rgba(0, 0, 0, .82); }
.me .me-copy h1 span, .me .app { color: rgba(0, 0, 0, .74); }
[data-theme="dark"] .me .me-copy { color: rgba(255, 255, 255, .94); }
[data-theme="dark"] .me .me-copy h1 span, [data-theme="dark"] .me .app { color: rgba(255, 255, 255, .86); }
.gallery .slide-copy { color: rgba(0, 0, 0, .8); }
[data-theme="dark"] .gallery .slide-copy { color: rgba(255, 255, 255, .92); }

/* Phones: the name sits up in the sky, the photo under it, then the button and the apps. */
@media (max-width: 900px) {
  .me .me-in { display: flex; flex-direction: column; align-items: center; gap: 0; }
  .me .me-copy { display: contents; }
  .me .me-copy h1 { order: 0; text-align: center; }
  .me .portrait { order: 1; margin-top: 24px; }
  .me .me-copy .capsule { order: 2; margin-top: 24px; }
  .me .dockrow { order: 3; margin-top: 24px; }
  .me .app span { text-shadow: 0 1px 8px rgba(255, 255, 255, .7); }
  [data-theme="dark"] .me .app span { text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
}

/* The Mac takes the room left under the words, with a clear gap above it, so it never touches the text. */
.slide > img, .slide > video.mac { flex: 1 1 0; min-height: 0; height: auto; width: auto; max-width: 86%;
  align-self: center; margin: 44px auto 112px; object-fit: contain; }
@media (max-width: 733px) {
  .slide > img, .slide > video.mac { flex: 0 0 auto; width: 92%; max-width: none; margin: 36px auto 100px; }
}

/* Header: a compact capsule, sized to what's in it. */
.bar { width: min(680px, calc(100% - 28px)); height: 44px; top: 12px; padding: 0 6px 0 10px; gap: 6px; }
.bar::before { border-radius: 22px; }
.brand { font-size: 15px; gap: 8px; }
.brand img { width: 24px; height: 24px; }
.bar nav a { padding: 6px 12px; font-size: 14px; }
.bar .theme { width: 34px; height: 34px; }
.bar .theme .ico { width: 18px; height: 18px; }
@media (max-width: 733px) { .bar .theme { min-width: 34px; min-height: 34px; } }

/* Contact pills: Apple's envelope symbol and the real GitHub and Discord marks, in the text colour. */
.maker .ms { width: 20px; height: 20px; flex: none; }
.maker .ms[style*="envelope"] { width: 21px; height: 15px; }

/* Light mode: the page is white, so the pills get the soft grey fill. */
[data-theme="light"] .maker { background: #f0f0f3; }

/* Header, smaller again: it hugs what's in it. */
.bar { width: fit-content; max-width: calc(100% - 28px); height: 40px; top: 10px; padding: 0 4px 0 8px; gap: 4px; }
.bar::before { border-radius: 20px; }
.bar nav { margin-left: 18px; gap: 0; }
.brand { font-size: 14px; gap: 7px; }
.brand img { width: 22px; height: 22px; }
.bar nav a { padding: 5px 10px; font-size: 13px; }
.bar .theme, .bar .theme:only-of-type { width: 32px; height: 32px; margin-left: 4px; }
.bar .theme .ico { width: 16px; height: 16px; }
@media (max-width: 733px) { .bar .theme { min-width: 32px; min-height: 32px; margin-left: 14px; } }
