/* Rebuild of erolmujak.com. Sizes, colours and breakpoints are measured from the Framer original:
   desktop from 1200px, tablet 810 to 1199px, phone up to 809px. */

@font-face { font-family: "Nohemi Extra Bold"; src: url(fonts/nohemi-extrabold.otf) format("opentype"); font-display: swap; }
@font-face { font-family: "Nohemi Semi Bold"; src: url(fonts/nohemi-semibold.otf) format("opentype"); font-display: swap; }
@font-face { font-family: "Nohemi Medium"; src: url(fonts/nohemi-medium.otf) format("opentype"); font-display: swap; }
@font-face { font-family: "Nohemi Extra Bold Fallback"; src: local("Arial"); ascent-override: 66.15%; descent-override: 16.94%; line-gap-override: 6.7%; size-adjust: 111.86%; }
@font-face { font-family: "Nohemi Semi Bold Fallback"; src: local("Arial"); ascent-override: 67.33%; descent-override: 17.24%; line-gap-override: 6.82%; size-adjust: 109.9%; }
@font-face { font-family: "Nohemi Medium Fallback"; src: local("Arial"); ascent-override: 67.94%; descent-override: 17.4%; line-gap-override: 6.89%; size-adjust: 108.92%; }
@font-face { font-family: "Slackside One"; src: url(fonts/slackside-one-3.woff2) format("woff2"); font-display: block; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: #fff;
  color: #374151;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, p { margin: 0; font-weight: 400; }
img, svg { display: block; }
.sprite { position: absolute; }

a { color: #374151; text-decoration: none; }
a:hover { color: #050505; text-decoration: underline; }

/* ---------- top bar ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: 56px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.logo { position: absolute; left: 24px; top: 16px; }

.nav-links {
  position: absolute;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 32px;
  white-space: pre;
}

.status {
  position: absolute;
  right: 24px;
  top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.status-dot {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(27, 179, 124, 0.2);
}
.status-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: rgb(27, 179, 124);
}

.burger, .menu { display: none; }

/* ---------- hero ---------- */

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 64px;
  padding: 158px 0 128px;
}

.hero-text { position: relative; width: 628px; height: 327px; flex: none; }

h1 {
  font-family: "Nohemi Extra Bold", "Nohemi Extra Bold Fallback", sans-serif;
  font-size: 64px;
  line-height: 72px;
  color: #111827;
}
h1 span { display: block; }

/* the hand-written aside next to the last headline line */
.note {
  position: absolute;
  left: 386px;
  top: 175.58px;
  width: 193px;
  transform: translateY(-50%);
  font-family: "Slackside One", cursive;
  font-size: 22.35px;
  line-height: 18.25px;
  letter-spacing: -0.45px;
  color: #374151;
}

.intro { margin-top: 28px; font-size: 18px; line-height: 28px; }
.intro a { text-decoration: underline; }
.intro a:hover { color: rgb(64, 0, 200); }

.hero-photo { width: 332px; height: 332px; flex: none; object-fit: contain; }

/* ---------- projects ---------- */

.work { display: flex; flex-direction: column; align-items: center; gap: 64px; padding-bottom: 128px; }

/* two projects side by side; the pairs stay grouped when they stack on smaller screens */
.row { display: grid; grid-template-columns: 500px 500px; gap: 24px; }

.project { display: flex; flex-direction: column; gap: 32px; min-width: 0; }

.project > img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; }

.project-body { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.project-head { display: flex; flex-direction: column; gap: 8px; }

h2 {
  font-family: "Nohemi Semi Bold", "Nohemi Semi Bold Fallback", sans-serif;
  font-size: 32px;
  line-height: 36px;
  color: #111827;
}

.project-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

.pill {
  display: block;
  height: 44px;
  padding: 11px 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
  opacity: 0.4;
  font-family: "Nohemi Medium", "Nohemi Medium Fallback", sans-serif;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0.56px;
  color: #000;
  white-space: nowrap;
  cursor: progress;
}

.site-link { white-space: nowrap; }
.site-link .arrow { font-size: 13px; }

/* ---------- footer ---------- */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 112px;
  padding: 0 88px;
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.08);
}

.footer-contact { display: flex; align-items: center; gap: 24px; }
.footer-links { display: flex; gap: 24px; white-space: pre; }

/* ---------- tablet ---------- */

@media (min-width: 810px) and (max-width: 1199px) {
  .hero { flex-direction: column-reverse; }

  .work { align-items: stretch; padding: 0 96px 128px; }
  .row { grid-template-columns: 1fr; }
  .project-head { max-width: 500px; }
}

/* ---------- phone ---------- */

@media (max-width: 809px) {
  .logo { left: 20px; }
  .nav-links { display: none; }
  .status { left: 50%; right: auto; transform: translateX(-50%); }

  .burger {
    display: block;
    position: absolute;
    right: 12px;
    top: 8px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: none;
    cursor: pointer;
  }
  .burger span {
    position: absolute;
    left: 10px;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #000;
    transition: transform 0.2s ease, top 0.2s ease;
  }
  .burger span:nth-child(1) { top: 15px; }
  .burger span:nth-child(2) { top: 23px; }
  .nav.is-open .burger span:nth-child(1) { top: 19px; transform: rotate(45deg); }
  .nav.is-open .burger span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

  .menu {
    position: absolute;
    right: 12px;
    top: 64px;
    width: 200px;
    padding: 8px 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  }
  .menu { display: block; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s 0.4s; }
  .nav.is-open .menu { opacity: 1; visibility: visible; transform: none; transition: opacity 0.4s ease, transform 0.4s ease; }
  .menu a { display: block; padding: 12px 8px; text-align: center; white-space: pre; }
  .menu .arrow { color: rgba(55, 65, 81, 0.5); }

  .hero { flex-direction: column-reverse; gap: 32px; padding: 124px 20px 64px; }
  .hero-text { width: 100%; height: auto; }
  .hero-photo { width: 224px; height: 224px; }

  h1 { font-size: 38px; line-height: 42px; }
  h1 span { display: inline; }
  .note { display: none; }

  .intro { margin-top: 16px; }
  .intro p { display: inline; }

  .work { align-items: stretch; padding: 0 20px 128px; }
  .project-actions { flex-direction: column; align-items: flex-start; }
  .row { grid-template-columns: 1fr; gap: 64px; }

  .footer { flex-direction: column; justify-content: center; gap: 24px; height: auto; padding: 32px 0 64px; }
  .footer-contact { flex-direction: column; }
  .footer-links { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .burger span, .menu, .nav.is-open .menu { transition: none; }
}
