/* kulitorum.com: one static page, no scripts, no third-party requests. */

@font-face { font-family: "Plex Serif"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-serif-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  --paper: #f6f4ee;
  --card: #fffdf8;
  --ink: #1a1c20;
  --muted: #565c66;
  --faint: #8a8f98;
  --rule: #dcd8cc;
  --accent: #b83d0c;
  --serif: "Plex Serif", Georgia, "Times New Roman", serif;
  --sans: "Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1216;
    --card: #161a20;
    --ink: #e8e9eb;
    --muted: #a3aab5;
    --faint: #737b87;
    --rule: #272e38;
    --accent: #ff8a52;
  }
}

* { box-sizing: border-box; }

html { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-text-size-adjust: 100%; }

body { margin: 0; }

.wrap { max-width: 54rem; margin: 0 auto; padding: 0 1.5rem; }

a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.skip { position: absolute; left: -999rem; }
.skip:focus { left: 1rem; top: 1rem; background: var(--card); padding: 0.5rem 0.75rem; z-index: 2; }

/* Top bar */
.top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.5rem 0 1.25rem; border-bottom: 1px solid var(--rule); }
.mark { font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.04em; text-decoration: none; }
.mark b { color: var(--accent); font-weight: 400; }
.top nav { display: flex; gap: 1.25rem; font-size: 0.9rem; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--accent); }

/* Hero. The eyebrow, headline and lead are rows of one grid so the portrait can span the first two
   and sit with its lower edge on the last line of the headline. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); padding: 3.5rem 0 3rem; }
.hero.has-photo { grid-template-columns: minmax(0, 1fr) 11rem; column-gap: 2rem; }
.eyebrow { grid-column: 1; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin: 0 0 1rem; }
h1 { grid-column: 1; font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 4.6vw, 2.9rem); line-height: 1.14; letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
.lead { grid-column: 1 / -1; font-size: 1.12rem; color: var(--muted); max-width: 38rem; margin: 1.25rem 0 0; }
/* The portrait is a cut-out on white. On the light page, multiply blending turns that white into
   the paper colour, so there is no box or frame. On the dark page it stays a plain rounded photo. */
.photo { grid-column: 2; grid-row: 1 / span 2; align-self: end; width: 11rem; height: 11rem; object-fit: cover; mix-blend-mode: multiply;
  /* Rest on the text baseline of the headline's last line rather than on the bottom of its line box. */
  margin-bottom: 0.3rem; }
@media (prefers-color-scheme: dark) {
  .photo { mix-blend-mode: normal; border-radius: 0.5rem; }
}

/* Sections: a mono label in the left margin, content on the right */
section { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1.5rem; padding: 2.5rem 0; border-top: 1px solid var(--rule); }
h2 { font-family: var(--mono); font-weight: 400; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin: 0.35rem 0 0; }
section p { margin: 0 0 0.9rem; max-width: 38rem; }
section p:last-child { margin-bottom: 0; }
.approach p:first-child { font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; }

/* Work */
.work { list-style: none; margin: 0; padding: 0; }
.work > li { padding: 1.35rem 0; border-top: 1px solid var(--rule); }
.work > li:first-child { padding-top: 0; border-top: 0; }
.work > li:last-child { padding-bottom: 0; }
h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.25; margin: 0; }
.context { font-family: var(--mono); font-size: 0.78rem; color: var(--faint); margin: 0.3rem 0 0.6rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.8rem 0 0; padding: 0; }
.tags li { font-size: 0.78rem; color: var(--muted); border: 1px solid var(--rule); border-radius: 999px; padding: 0.05rem 0.6rem; background: var(--card); }
.links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; margin: 0.8rem 0 0; font-size: 0.92rem; }
.links a::after { content: " \2197"; color: var(--accent); }

/* The first project is the headline one */
.work > li.lead-project { background: var(--card); border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: 0.4rem; padding: 1.35rem 1.4rem; margin-bottom: 1.35rem; }
.work > li.lead-project + li { border-top: 0; padding-top: 0; }

/* Disciplines */
.disciplines { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2rem; font-size: 0.95rem; }
.disciplines li { break-inside: avoid; padding: 0.22rem 0 0.22rem 1.1rem; position: relative; }
.disciplines li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 0.45rem; height: 1.5px; background: var(--accent); }

/* Contact */
.contact { list-style: none; margin: 0; padding: 0; }
.contact li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: 0.3rem 0; }
.contact span { font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); padding-top: 0.25rem; }

footer { border-top: 1px solid var(--rule); padding: 1.5rem 0 3rem; font-family: var(--mono); font-size: 0.75rem; color: var(--faint); }

@media (max-width: 40rem) {
  html { font-size: 16px; }
  .top nav { gap: 0.9rem; }
  .hero, .hero.has-photo { grid-template-columns: minmax(0, 1fr); padding: 2.25rem 0 2rem; }
  .hero.has-photo .photo { grid-column: 1; grid-row: auto; order: -1; align-self: start; width: 7rem; height: 7rem; margin-bottom: 1.25rem; }
  .lead { grid-column: 1; }
  section { grid-template-columns: 1fr; gap: 0.9rem; padding: 2rem 0; }
  .disciplines { columns: 1; }
  .work > li.lead-project { padding: 1.1rem 1rem; }
}

@media print {
  .top nav, .skip { display: none; }
  html { font-size: 11pt; background: #fff; }
}
