/* Art Shllaku — one stylesheet, light only, no framework. */

:root {
  --paper:  #F1F1EC;
  --raised: #FBFBF7;
  --ink:    #1A1D1B;
  --muted:  #666C68;
  --rule:   #DCDCD3;
  --accent: #1C6558;
  --accent-wash: rgba(28, 101, 88, 0.08);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Archivo", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  color-scheme: light only;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 38rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; }
.skip:focus {
  left: 1rem; top: 1rem; z-index: 9;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; text-decoration: none;
}

/* ------------------------------- header ------------------------------- */
.site-head {
  padding-block: 2.2rem 0;
}
.site-head__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--rule);
}
.site-head__name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.site-nav { display: flex; gap: 1.3rem; font-size: 0.96rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* ------------------------------- content ------------------------------ */
main { padding-block: 3rem 1rem; }

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5.4vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1.4rem;
  text-wrap: balance;
}

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 2.6rem 0 0.7rem;
  letter-spacing: -0.01em;
}

h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.02rem;
  margin: 0 0 0.15rem;
}

p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }

.lede { font-size: 1.18rem; line-height: 1.6; color: var(--ink); }

.muted { color: var(--muted); }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.8rem 0;
}

/* --------------------------------- home -------------------------------- */
.intro { display: flex; align-items: flex-start; gap: 1.5rem; margin-bottom: 2.2rem; }
.portrait {
  width: 108px;
  height: 108px;
  flex: none;
  border-radius: 3px;
  object-fit: cover;
  object-position: center 22%;
  background: var(--raised);
  border: 1px solid var(--rule);
}
.intro__text { padding-top: 0.2rem; }
.intro__hello {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 5.4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}
.intro__role { margin: 0; color: var(--muted); }

/* --------------------------------- lists ------------------------------- */
.plain { margin: 0; padding: 0; list-style: none; }
.plain li { margin-bottom: 0.45rem; padding-left: 1.1rem; position: relative; }
.plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 0.5rem;
  height: 1px;
  background: var(--accent);
}
.plain li:last-child { margin-bottom: 0; }

/* --------------------------------- work -------------------------------- */
.job { padding-block: 1.7rem; border-top: 1px solid var(--rule); }
.job:first-of-type { border-top: 0; padding-top: 0.4rem; }
.job__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.2rem 1rem;
}
.job__when { font-size: 0.9rem; color: var(--muted); white-space: nowrap; }
.job__where { color: var(--muted); font-size: 0.97rem; margin: 0 0 0.8rem; }

.tools__label {
  font-size: 0.87rem;
  color: var(--muted);
  margin: 1.3rem 0 0.5rem;
}
h2 + .tools__label { margin-top: 0.4rem; }
.tools { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.tools li {
  font-size: 0.87rem;
  color: var(--muted);
  border: 1px solid var(--rule);
  background: var(--raised);
  border-radius: 3px;
  padding: 0.18rem 0.55rem;
}

/* -------------------------------- enjoy -------------------------------- */
.thing { margin-bottom: 2.2rem; }
.thing:last-child { margin-bottom: 0; }
.thing h2 { margin-top: 0; }

/* -------------------------------- footer ------------------------------- */
.site-foot {
  margin-top: 4rem;
  padding-block: 1.6rem 3rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
  color: var(--muted);
}
.site-foot__links { display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 0 0 0.7rem; }
.site-foot p { margin: 0; }

/* -------------------------------- motion -------------------------------
   Transform only, never opacity. Chrome does not count a transparent element
   as a Largest Contentful Paint candidate, so a fade-in would make the real
   page speed score worse for no reason. */
@media (prefers-reduced-motion: no-preference) {
  body > * { animation: rise 0.45s cubic-bezier(0.22, 0.72, 0.2, 1) both; }
  main { animation-delay: 0.05s; }
  .site-foot { animation-delay: 0.09s; }
  @keyframes rise {
    from { transform: translateY(7px); }
    to { transform: none; }
  }
}

/* ------------------------------ responsive ----------------------------- */
@media (max-width: 30rem) {
  .intro { gap: 1.1rem; }
  .portrait { width: 84px; height: 84px; }
  .site-head__inner { flex-direction: column; align-items: flex-start; }
  .site-nav { gap: 1rem; }
}

@media print {
  .site-nav, .status { display: none; }
  body { background: #fff; }
}
