/* Jana H — personal site */

:root {
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255, 255, 255, 0.7);
  --gutter: clamp(16px, 2vw, 40px);
  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-weight: 700; margin: 0; line-height: 1.3; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--fg); color: var(--bg); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px var(--gutter);
  background: var(--bg);
}
.logo { font-size: 24px; font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.nav a { text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: currentColor; }
.nav .icon { border: 0; margin-left: 8px; }
.nav-toggle { display: none; }

.icon svg { width: 16px; height: 16px; fill: currentColor; display: block; }

/* Layout */
main { padding: 0 var(--gutter); }
.narrow { max-width: 900px; margin: 0 auto; }

/* Home */
.intro {
  max-width: 820px;
  margin: 80px auto 0;
  text-align: center;
  font-size: clamp(22px, 2.6vw, 31px);
  line-height: 1.33;
}
.section-label { text-align: center; font-size: 15px; margin: 120px 0 40px; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter);
}
.work-card { position: relative; display: block; text-decoration: none; overflow: hidden; }
.work-card img { width: 100%; aspect-ratio: 1.42; object-fit: cover; transition: opacity 0.3s; }
.work-card h3 {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(22px, 2.6vw, 31px);
  opacity: 0;
  transition: opacity 0.3s;
}
.work-card:hover img, .work-card:focus-visible img { opacity: 0.25; }
.work-card:hover h3, .work-card:focus-visible h3 { opacity: 1; }

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px var(--gutter);
  max-width: 1300px;
  margin: 100px auto 0;
}
.about h3 { font-size: 22px; margin-bottom: 16px; }
.clients { list-style: none; margin: 0; padding: 0; font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; line-height: 1.3; }
.experience { margin: 0; padding-left: 20px; }
.experience li { margin-bottom: 12px; }

/* Text pages */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px calc(var(--gutter) * 3);
  max-width: 1300px;
  margin: 80px auto 0;
}
.split h1, .split h2.page-title { font-size: clamp(36px, 4.5vw, 52px); margin-bottom: 32px; }
.stats p { font-size: 24px; line-height: 1.4; margin: 0 0 16px; }
.body-text { font-size: 18px; line-height: 1.6; }
.body-text p { margin: 0 0 16px; }
.body-text h4 { font-size: 22px; margin: 48px 0 16px; }
.body-text h4:first-child { margin-top: 0; }
.button {
  display: inline-block;
  margin-top: 16px;
  padding: 14px 24px;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  font-size: 14px;
}
.button:hover { opacity: 0.85; }

/* Slideshow */
.slideshow { position: relative; margin: 80px calc(var(--gutter) * -1) 0; }
.slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.slides::-webkit-scrollbar { display: none; }
.slides img {
  flex: 0 0 100%;
  width: 100%;
  height: min(85vh, 60vw);
  object-fit: cover;
  scroll-snap-align: center;
}
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}
.slide-arrow.prev { left: var(--gutter); }
.slide-arrow.next { right: var(--gutter); }
.dots { display: flex; justify-content: center; gap: 8px; padding: 16px 0; }
.dots { position: absolute; left: 0; right: 0; bottom: 0; }
.dots button { width: 8px; height: 8px; padding: 0; border: 1px solid #fff; border-radius: 50%; background: rgba(0, 0, 0, 0.3); cursor: pointer; }
.dots button[aria-current="true"] { background: #fff; }

.video { position: relative; margin: 80px auto 0; max-width: 1300px; aspect-ratio: 16 / 9; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Previous / next project */
.pager {
  display: flex;
  justify-content: space-between;
  padding: 32px 0;
  font-size: 22px;
  font-weight: 700;
}
.pager a { text-decoration: none; }
.pager a:hover { text-decoration: underline; }

/* Blog */
.post-list { max-width: 760px; margin: 80px auto 0; }
.post-list article { margin-bottom: 96px; }
.post-list img { margin-bottom: 24px; }
.meta { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.post-list h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 16px; }
.post-list h2 a { text-decoration: none; }
.post { max-width: 760px; margin: 80px auto 0; }
.post h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 12px; }
.post img { margin: 32px 0; width: 100%; }
.post p, .post li { font-size: 17px; }
.read-more { font-size: 14px; }

/* Contact */
.contact { text-align: center; margin: 160px auto 0; }
.contact p { margin: 0 0 16px; }
.contact h1 { font-size: clamp(36px, 5vw, 56px); }

/* Footer */
.site-footer { text-align: center; padding: 160px var(--gutter) 120px; }
.site-footer p { font-size: 13px; margin: 0 0 12px; }
.site-footer .email { font-size: 30px; font-weight: 700; }
.site-footer .icon {
  display: inline-flex;
  margin-top: 20px;
  padding: 8px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

/* Phone and small tablet */
@media (max-width: 760px) {
  .nav-toggle {
    display: block;
    background: none;
    border: 0;
    color: inherit;
    font: inherit;
    font-size: 15px;
    cursor: pointer;
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 8px var(--gutter) 24px;
    background: var(--bg);
    font-size: 20px;
  }
  .nav.open { display: flex; }
  .nav .icon { margin-left: 0; }
  .intro { margin-top: 40px; }
  .section-label { margin-top: 72px; }
  .work-grid, .about, .split { grid-template-columns: 1fr; }
  .work-card h3 { position: static; opacity: 1; justify-content: flex-start; padding-top: 12px; font-size: 22px; }
  .work-card:hover img { opacity: 1; }
  .split, .post-list, .post { margin-top: 40px; }
  .slideshow { margin-top: 48px; }
  .slides img { height: 75vw; }
  .body-text { font-size: 17px; }
  .slide-arrow { width: 36px; height: 36px; font-size: 18px; }
  .pager { font-size: 18px; }
  .contact { margin-top: 96px; }
  .site-footer { padding: 96px var(--gutter) 72px; }
}
