/* Lynk Petkau — static rebuild of the original Elementor site */
@import url("../fonts/inter/inter.css");

:root {
  --bg: #0F363D;
  --bg-deep: #0C2B31;
  --accent: #DAA49C;
  --primary: #FFFFFF;
  --secondary: #6E969E;
  --text: #D7EAE4;
  --muted: #BFBFBF;
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--primary); }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid rgba(215, 234, 228, .08);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 24px;
  min-height: var(--header-h);
  max-width: 1600px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--primary); font-size: 22px; font-weight: 300; white-space: nowrap; }
.brand:hover { color: var(--accent); }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; filter: grayscale(1) contrast(1.1); }

.nav { flex: 1; display: flex; justify-content: center; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a { display: block; padding: 10px 14px; color: var(--text); text-decoration: none; font-size: 16px; }
.nav a:hover, .nav a.active { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

.back-link { flex: 1; display: flex; justify-content: center; }
.back-link a { color: var(--text); text-decoration: none; display: inline-flex; gap: 10px; align-items: center; }
.back-link a:hover { color: var(--accent); }
.back-link .short { display: none; }
.nav .mobile-only { display: none; }

.header-actions { display: flex; align-items: center; gap: 24px; }
.resume-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.resume-link .ico { width: 18px; height: 18px; border: 1px solid var(--accent); border-radius: 50%; display: grid; place-items: center; }
.resume-link .ico svg { width: 8px; height: 8px; }

.btn {
  display: inline-block; padding: 12px 45px; border-radius: 22px;
  background: var(--accent); color: var(--bg); border: 1px solid var(--accent);
  font: inherit; font-weight: 400; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { background: transparent; color: var(--accent); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: var(--bg); }

/* ---------- Sections ---------- */
section.block { padding: clamp(64px, 10vw, 120px) 0; }
section.block:first-of-type { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; }

h1, h2, h3, h4 { color: var(--primary); margin: 0; font-weight: 200; }
.display {
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1.02;
  font-style: italic; font-weight: 200;
  letter-spacing: -.01em;
  margin-bottom: 18px;
}
.rule { width: 260px; max-width: 70%; height: 2px; background: var(--primary); border: 0; margin: 0 0 28px; }
.h-sub { font-size: 24px; line-height: 1.2; font-weight: 200; }
.h-meta { font-size: 16px; font-weight: 400; color: var(--secondary); margin-top: 6px; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.cols.c60 { grid-template-columns: 3fr 2fr; }
.cols.center { align-items: center; }

/* Hero */
.hero .cols { align-items: center; grid-template-columns: 3fr 2fr; }
.hero p { max-width: 60ch; }
.hero-photo { justify-self: end; max-width: 440px; width: 100%; }
.hero-photo img { width: 100%; animation: fade 1s .5s both; }
.learn-more { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; display: inline-block; margin-top: 8px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Portfolio */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 28px; }
.filters button {
  background: transparent; color: var(--text); border: 0; padding: 8px 14px;
  font: inherit; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; border-radius: 3px;
}
.filters button:hover { color: var(--accent); }
.filters button[aria-pressed="true"] { background: var(--bg-deep); color: var(--primary); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-deep); display: block; color: var(--primary); text-decoration: none; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card .overlay {
  position: absolute; inset: 0; padding: 22px;
  background: rgba(12, 43, 49, .9);
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transition: opacity .3s;
}
.card:hover .overlay, .card:focus-visible .overlay { opacity: 1; }
.card:hover img { transform: scale(1.05); }
.card h3 { font-size: 22px; font-weight: 300; margin-bottom: 10px; }
.card .overlay p { font-size: 14px; color: var(--text); margin-bottom: 6px; }
.card .overlay p:last-child { font-size: 12px; letter-spacing: .08em; color: var(--accent); margin: 4px 0 0; }
.card[hidden] { display: none; }
.after-grid { margin-top: 36px; }

/* Skills */
.bars h3.h-sub { margin-bottom: 22px; }
.bar { margin-bottom: 18px; }
.bar span { display: block; font-size: 15px; font-weight: 400; color: var(--primary); margin-bottom: 8px; }
.bar .track { height: 8px; background: var(--secondary); border-radius: 50px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--accent); border-radius: 50px; width: 0; transition: width 1.2s ease; }
.bar.in .fill { width: var(--w); }

/* Timeline */
.timeline { border-left: 1px solid var(--accent); padding-left: 32px; }
.tl-item { position: relative; padding-bottom: 36px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-date { position: relative; color: var(--primary); font-weight: 400; font-size: 15px; margin-bottom: 8px; display: flex; align-items: center; }
.tl-date::before {
  content: ""; position: absolute; left: -39px; width: 13px; height: 13px; border-radius: 50%; background: var(--accent);
}
.tl-item .h-meta { margin: 6px 0 12px; }
.tl-item hr { border: 0; border-top: 1px solid var(--secondary); margin: 0 0 14px; }

.accent-box { list-style: none; margin: 28px 0 0; padding: 6px 22px; background: var(--accent); color: var(--bg); }
.accent-box li { padding: 12px 0; border-bottom: 1px solid var(--bg); }
.accent-box li:last-child { border-bottom: 0; }
.accent-box li:first-child { font-weight: 600; }

/* About */
.traits { background: var(--bg-deep); padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; align-self: stretch; align-content: center; }
.traits ul { list-style: none; margin: 0; padding: 0; }
.traits li { padding: 14px 0; border-bottom: 2px solid var(--secondary); color: var(--primary); font-size: 18px; font-weight: 200; }
.traits li:last-child { border-bottom: 0; }
.details { margin-top: clamp(48px, 7vw, 80px); text-align: center; }
.details h3 { font-size: 24px; margin-bottom: 24px; }
.details dl { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 48px; margin: 0; }
.details dl div { display: flex; gap: 10px; }
.details dt { color: var(--secondary); }
.details dd { margin: 0; color: var(--primary); }
.details a { color: var(--primary); }

/* Contact */
form.contact { display: grid; gap: 14px; }
form.contact label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--text); }
form.contact input, form.contact textarea {
  width: 100%; background: transparent; color: var(--primary);
  border: 1px solid var(--secondary); border-radius: 4px; padding: 12px 14px;
  font: inherit;
}
form.contact input:focus, form.contact textarea:focus { outline: none; border-color: var(--accent); }
form.contact .actions { display: flex; justify-content: flex-end; }
.form-note { font-size: 14px; min-height: 1.4em; margin: 0; }
.hp { position: absolute; left: -9999px; }

/* ---------- Project pages ---------- */
.project { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.project-hero { margin: 0 auto 48px; max-width: 768px; }
.project-hero img { width: 100%; }
.project h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 300; text-transform: uppercase; letter-spacing: .02em; }
.project .tech { font-size: 18px; font-weight: 400; color: var(--secondary); margin: 8px 0 22px; }
.project .body p { color: var(--muted); }
.project .body p:first-child { color: var(--text); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; background: var(--bg-deep); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.04); }
.project .row + .row { margin-top: 48px; }

/* Video playlist */
.playlist { display: grid; grid-template-columns: 2fr 1fr; background: var(--bg-deep); }
.playlist video { width: 100%; height: 100%; max-height: 520px; background: #000; }
.playlist aside { display: flex; flex-direction: column; max-height: 520px; }
.playlist header { padding: 16px 20px; color: var(--primary); display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.08); }
.playlist header small { color: var(--text); }
.playlist ol { list-style: none; margin: 0; padding: 0; overflow-y: auto; }
.playlist button {
  width: 100%; display: flex; justify-content: space-between; gap: 12px; align-items: center;
  background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.05); color: var(--primary);
  padding: 14px 20px; font: inherit; text-align: left; cursor: pointer;
}
.playlist button:hover { background: rgba(255,255,255,.04); }
.playlist button[aria-current="true"] { background: var(--bg); color: var(--accent); }
.playlist button .dur { color: var(--text); font-size: 13px; }
.playlist button.watched .t::after { content: " ✓"; color: var(--secondary); }

.post-nav { display: flex; justify-content: space-between; gap: 24px; margin-top: 64px; padding-top: 28px; border-top: 1px solid rgba(215, 234, 228, .12); }
.post-nav a { text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 4px; max-width: 45%; }
.post-nav a:hover { color: var(--accent); }
.post-nav small { color: var(--secondary); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.post-nav .next { text-align: right; margin-left: auto; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; padding: 48px 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 100%; max-width: 100%; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 34px; cursor: pointer; padding: 10px 16px; line-height: 1; }
.lightbox .close { top: 8px; right: 8px; }
.lightbox .prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 4px; top: 50%; transform: translateY(-50%); }

/* 404 */
.notfound { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; text-align: center; padding: 48px 0; }
.notfound h1 { font-size: clamp(64px, 12vw, 140px); font-weight: 100; margin-bottom: 24px; }
.notfound img { margin: 0 auto 32px; max-width: 420px; width: 100%; }

.site-footer { padding: 28px 0; text-align: center; font-size: 13px; color: var(--secondary); border-top: 1px solid rgba(215, 234, 228, .08); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .cols, .cols.c60 { grid-template-columns: 1fr; }
  .hero-photo { justify-self: center; max-width: 320px; }
  .playlist { grid-template-columns: 1fr; }
  .playlist aside { max-height: 320px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav { flex: 0; order: 3; }
  .nav ul {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; background: var(--bg); border-bottom: 1px solid rgba(215,234,228,.12); padding: 8px 0;
  }
  .nav.open ul { display: flex; }
  .nav .mobile-only { display: block; }
  .nav a { padding: 14px var(--gutter); }
  .site-header .wrap { justify-content: space-between; }
  .header-actions { margin-left: auto; }
  .resume-link { display: none; }
}
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .brand { font-size: 18px; }
  .brand img { width: 40px; height: 40px; }
  .btn { padding: 10px 22px; }
  .grid { grid-template-columns: 1fr; }
  .traits { grid-template-columns: 1fr; }
  .gallery { gap: 12px; }
  .back-link .long { display: none; }
  .back-link .short { display: inline; }
  .header-actions .btn { display: none; }
}
@media (hover: none) {
  .card .overlay { opacity: 1; inset: auto 0 0 0; padding: 12px 16px; background: rgba(12, 43, 49, .88); }
  .card .overlay p { display: none; }
  .card h3 { margin: 0; font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
