/* pwarty.com: a quiet, dark, editorial home for the projects. Each project can have its own character; this page stays serious. */
:root {
  --bg: #0a0a0a; --panel: #111112; --line: #242426; --line-2: #333336;
  --text: #ededeb; --muted: #9a9a9e; --faint: #67676b; --accent: #d7f26a;
  --sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --w: 1120px; --gutter: clamp(20px, 5vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #0a0a0a; }
.wrap { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(10, 10, 10, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
.mark i { width: 12px; height: 12px; background: var(--accent); border-radius: 3px; display: block; }
.nav { display: flex; gap: clamp(18px, 4vw, 36px); font-size: 15px; color: var(--muted); }
.nav a { padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); border-color: var(--text); }

/* ---- hero ---- */
.hero { padding-top: clamp(72px, 14vw, 168px); padding-bottom: clamp(56px, 9vw, 112px); }
.hero .mono { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(215, 242, 106, .16); }
h1 { margin: 0; font-weight: 600; font-size: clamp(40px, 8.4vw, 104px); line-height: .98; letter-spacing: -.045em; max-width: 14ch; }
h1 em { font-style: normal; color: var(--muted); }
.lead { margin: 32px 0 0; max-width: 56ch; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.5; color: var(--muted); }
.lead b { color: var(--text); font-weight: 500; }

/* ---- sections ---- */
section { border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 88px) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: clamp(28px, 4vw, 48px); }
h2 { margin: 0; font-weight: 600; font-size: clamp(26px, 3.6vw, 40px); letter-spacing: -.035em; line-height: 1.1; }

/* ---- project list ---- */
.projects { list-style: none; margin: 0; padding: 0; }
.project { border-top: 1px solid var(--line); }
.project:last-child { border-bottom: 1px solid var(--line); }
.project a { display: grid; grid-template-columns: 48px 1fr minmax(0, 46%); gap: clamp(16px, 3vw, 40px); align-items: center; padding: clamp(24px, 3.4vw, 40px) 0; transition: background .25s; }
.project a:hover { background: linear-gradient(90deg, rgba(255, 255, 255, .025), transparent); }
.num { font-family: var(--mono); font-size: 13px; color: var(--faint); align-self: start; padding-top: 10px; }
.p-name { display: flex; align-items: center; gap: 14px; margin: 0; font-weight: 600; font-size: clamp(30px, 4.6vw, 52px); letter-spacing: -.04em; line-height: 1.05; }
.arrow { display: inline-block; font-weight: 400; color: var(--muted); transition: transform .3s cubic-bezier(.2, .8, .2, 1), color .2s; }
.project a:hover .arrow { transform: translate(6px, -6px); color: var(--accent); }
.p-desc { margin: 14px 0 0; color: var(--muted); max-width: 46ch; }
.p-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); border-radius: 99px; padding: 4px 11px; }
.tag.live { color: var(--accent); border-color: rgba(215, 242, 106, .35); }
.shot { aspect-ratio: 16 / 10; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--panel); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.project a:hover .shot img { transform: scale(1.035); }
.more { margin: 28px 0 0; color: var(--faint); font-size: 15px; }

/* ---- character note + about teaser ---- */
.two { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 6vw, 96px); }
.prose p { margin: 0 0 1.1em; color: var(--muted); max-width: 62ch; }
.prose p:first-child { color: var(--text); font-size: clamp(19px, 2.3vw, 24px); line-height: 1.45; letter-spacing: -.015em; }
.link { display: inline-flex; gap: 8px; color: var(--text); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .2s, gap .2s; }
.link:hover { border-color: var(--accent); gap: 12px; }

/* ---- about page ---- */
.page { padding-top: clamp(56px, 10vw, 128px); padding-bottom: clamp(40px, 6vw, 80px); }
.page h1 { font-size: clamp(40px, 7vw, 84px); max-width: 16ch; }
.facts { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.facts li span:first-child { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding-top: 4px; }
.facts a { color: var(--text); border-bottom: 1px solid var(--line-2); }
.facts a:hover { border-color: var(--accent); }

/* ---- footer ---- */
footer { border-top: 1px solid var(--line); padding: 36px 0 56px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer a:hover { color: var(--text); }

/* ---- small screens ---- */
@media (max-width: 820px) {
  .project a { grid-template-columns: 1fr; gap: 20px; }
  .num { padding: 0; }
  .shot { order: -1; }
  .two { grid-template-columns: 1fr; }
  .facts li { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
@media (prefers-reduced-motion: no-preference) {
  .hero .mono, h1, .lead { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; } h1 { animation-delay: .08s; } .lead { animation-delay: .18s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
