/*
 * Dumitru theme: a small "device" look. Light grey plates with screws on a
 * grainy desk, orange keys, small upper-case labels printed like silk-screen.
 * Light and dark finishes: [data-theme] on <html>, or the device's setting.
 */

/* ---------- Tokens -------------------------------------------------------- */
:root {
  --dc-body: #e3e2de;
  --dc-paper: #f3f2ef;
  --dc-sheet: #fffefb;
  --dc-ink: #0b0b0c;
  --dc-text: rgb(11 11 12 / 0.86);
  --dc-muted: rgb(11 11 12 / 0.6);
  --dc-faint: rgb(11 11 12 / 0.42);
  --dc-rule: rgb(11 11 12 / 0.12);
  --dc-groove: #d9d8d3;
  --dc-accent: #f45b07;
  --dc-accent-deep: #d24c00;
  --dc-on-accent: #0b0b0c;
  --dc-steel: #8b8b8e;
  --dc-graphite: #3d3d40;
  --dc-contrast: #19191a;
  --dc-on-contrast: #f3f2ef;
  --dc-shadow: 0 1px 0 rgb(255 255 255 / 0.7) inset, 0 1px 2px rgb(0 0 0 / 0.06), 0 6px 18px -8px rgb(0 0 0 / 0.18);
  --dc-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --dc-display: "Zalando Sans Expanded", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --dc-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --dc-radius: 0.625rem;
  --dc-key-radius: 0.25rem;
  --dc-rack: 86rem;
  --dc-reading: 46rem;
  --dc-gutter: clamp(1rem, 3vw, 2rem);
  --dc-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}

:root[data-theme="dark"] {
  --dc-body: #0b0b0c;
  --dc-paper: #19191a;
  --dc-sheet: #222224;
  --dc-ink: #f1f0ed;
  --dc-text: rgb(241 240 237 / 0.86);
  --dc-muted: rgb(241 240 237 / 0.62);
  --dc-faint: rgb(241 240 237 / 0.42);
  --dc-rule: rgb(241 240 237 / 0.12);
  --dc-groove: #2c2c2e;
  --dc-steel: #6e6e71;
  --dc-graphite: #3c3c3f;
  --dc-contrast: #f1f0ed;
  --dc-on-contrast: #19191a;
  --dc-shadow: 0 1px 0 rgb(255 255 255 / 0.05) inset, 0 6px 18px -8px rgb(0 0 0 / 0.6);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --dc-body: #0b0b0c;
    --dc-paper: #19191a;
    --dc-sheet: #222224;
    --dc-ink: #f1f0ed;
    --dc-text: rgb(241 240 237 / 0.86);
    --dc-muted: rgb(241 240 237 / 0.62);
    --dc-faint: rgb(241 240 237 / 0.42);
    --dc-rule: rgb(241 240 237 / 0.12);
    --dc-groove: #2c2c2e;
    --dc-steel: #6e6e71;
    --dc-graphite: #3c3c3f;
    --dc-contrast: #f1f0ed;
    --dc-on-contrast: #19191a;
    --dc-shadow: 0 1px 0 rgb(255 255 255 / 0.05) inset, 0 6px 18px -8px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}

/* ---------- Base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--dc-body);
  color: var(--dc-text);
  font: 400 1rem/1.6 var(--dc-font);
  -webkit-font-smoothing: antialiased;
}
body.grain { background-image: var(--dc-grain); }
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--dc-ink); margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--dc-accent); outline-offset: 2px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.6rem 1rem; background: var(--dc-ink); color: var(--dc-body);
  border-radius: var(--dc-key-radius); text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.rack { width: 100%; max-width: var(--dc-rack); margin: 0 auto; padding: 0 var(--dc-gutter); }

/* Small upper-case "printed" labels. */
.silk {
  font-family: var(--dc-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dc-muted);
}
.silk--strong { color: var(--dc-ink); font-weight: 800; }
.silk--sm { font-size: 0.625rem; }
.figures { font-family: var(--dc-mono); letter-spacing: 0.04em; font-weight: 500; }

.display-1 {
  font-family: var(--dc-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 5.2vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
.display-2 {
  font-family: var(--dc-display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.body-lg { font-size: 1.0625rem; line-height: 1.6; }

/* The orange highlighter behind the name. */
.marker {
  padding: 0 0.12em;
  background: linear-gradient(transparent 30%, var(--dc-accent) 30%, var(--dc-accent) 96%, transparent 96%);
  color: var(--dc-on-accent);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Keys (buttons) ------------------------------------------------------ */
.key,
.search-form .search-submit,
.newsletter button,
.newsletter input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.6rem 1.05rem;
  border: 1.5px solid var(--dc-ink);
  border-radius: var(--dc-key-radius);
  background: var(--dc-paper);
  color: var(--dc-ink);
  box-shadow: 0 2px 0 var(--dc-ink);
  font: 800 0.72rem/1 var(--dc-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.15s ease;
}
.key:hover { background: var(--dc-sheet); }
.key:active,
.newsletter button:active,
.newsletter input[type="submit"]:active { transform: translateY(2px); box-shadow: 0 0 0 var(--dc-ink); }
.key--orange,
.newsletter button,
.newsletter input[type="submit"] { background: var(--dc-accent); color: var(--dc-on-accent); border-color: #0b0b0c; box-shadow: 0 2px 0 #0b0b0c; }
.key--orange:hover,
.newsletter button:hover,
.newsletter input[type="submit"]:hover { background: var(--dc-accent-deep); }
.key--light { background: transparent; }
.key .arrow { width: 0.9rem; height: 0.9rem; }

/* Input fields look sunk into the plate. */
.slot,
.newsletter input[type="email"],
.newsletter input[type="text"],
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-form input[type="search"] {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 0.8rem;
  border: 1.5px solid var(--dc-ink);
  border-radius: var(--dc-key-radius);
  background: var(--dc-sheet);
  color: var(--dc-ink);
  font: 400 1rem/1.4 var(--dc-font);
  box-shadow: inset 0 2px 3px rgb(0 0 0 / 0.08);
}

/* ---------- Plates ---------------------------------------------------------------- */
.plate {
  position: relative;
  margin-bottom: 1rem;
  border-radius: var(--dc-radius);
  background: var(--dc-paper);
  box-shadow: var(--dc-shadow), 0 0 0 1px var(--dc-groove);
  overflow: clip;
}
.plate--sheet { background: var(--dc-sheet); }
.plate--contrast { background: var(--dc-contrast); color: var(--dc-on-contrast); }
.plate--contrast h2 { color: var(--dc-on-contrast); }
.plate--contrast .silk { color: color-mix(in srgb, var(--dc-on-contrast) 60%, transparent); }
/* Four screws in the corners. */
.plate--screwed::before {
  content: "";
  position: absolute;
  inset: 0.7rem;
  pointer-events: none;
  --screw: radial-gradient(circle at 50% 50%, transparent 0 0.28rem, var(--dc-groove) 0.3rem 0.36rem, transparent 0.38rem);
  background:
    var(--screw) top left / 0.8rem 0.8rem no-repeat,
    var(--screw) top right / 0.8rem 0.8rem no-repeat,
    var(--screw) bottom left / 0.8rem 0.8rem no-repeat,
    var(--screw) bottom right / 0.8rem 0.8rem no-repeat;
}
.plate__foot { display: flex; justify-content: center; padding: 1.5rem; border-top: 1px solid var(--dc-rule); }

/* Section header strip: [01] NAME ........ note */
.strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 2.5rem;
  border-bottom: 1px solid var(--dc-rule);
}
.strip__no {
  align-self: stretch;
  display: grid;
  place-items: center;
  min-width: 2.5rem;
  padding: 0 0.6rem;
  background: var(--dc-accent);
  color: var(--dc-on-accent);
  font: 700 0.625rem/1 var(--dc-mono);
}
.strip__name { margin: 0; padding: 0 1rem; font-size: 0.7rem; }
.strip__note { display: flex; align-items: center; gap: 0.4rem; margin: 0; padding: 0 1rem; align-self: stretch; border-left: 1px solid var(--dc-rule); }
.lamp { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--dc-accent); box-shadow: 0 0 6px var(--dc-accent); }

/* ---------- Header ------------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 30; padding: 0.75rem 0; transition: padding 0.2s ease; }
.site-header.is-scrolled { padding: 0.4rem 0; }
.masthead {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0.3rem 0.9rem 0.3rem 0.35rem;
  border-radius: var(--dc-radius);
  background: var(--dc-paper);
  box-shadow: var(--dc-shadow), 0 0 0 1px var(--dc-groove);
}
.masthead__brand { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--dc-ink); font-weight: 800; font-size: 0.9rem; }
.masthead__avatar { width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; object-position: 50% 30%; background: var(--dc-accent); }
.masthead__nav { flex: 1; min-width: 0; }
.tabs { display: flex; gap: 0; margin: 0; padding: 0; list-style: none; }
.tabs a {
  display: grid;
  place-items: center;
  height: 2.2rem;
  padding: 0 1rem;
  background: var(--dc-graphite);
  color: #fff;
  font: 800 0.66rem/1 var(--dc-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}
.tabs li:first-child a { background: var(--dc-accent); color: var(--dc-on-accent); }
.tabs .current-menu-item a, .tabs a:hover { filter: brightness(1.12); }

/* The light/dark switch. */
.switch {
  position: relative;
  flex: none;
  width: 2.6rem;
  height: 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--dc-accent);
  box-shadow: inset 0 1px 3px rgb(0 0 0 / 0.35);
  cursor: pointer;
}
.switch__thumb {
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.4);
  transition: transform 0.2s ease;
}
.switch[aria-pressed="true"] { background: var(--dc-graphite); }
.switch[aria-pressed="true"] .switch__thumb { transform: translateX(1.2rem); }

/* ---------- Hero ----------------------------------------------------------------------- */
.front { padding-top: 0.25rem; }
.hero { padding: clamp(2rem, 5vw, 4.5rem) clamp(1.25rem, 5vw, 4.5rem); overflow: visible; }
/* The portrait stays level with the title however long the intro gets. */
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.hero__intro { max-width: 28rem; margin-top: 1.75rem; }
.hero__intro p { margin-bottom: 1rem; }
.hero__intro a { text-decoration-color: var(--dc-accent); text-underline-offset: 0.2em; }
.hero__stage { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.hero__portrait { position: relative; width: min(100%, 23rem); margin-top: 3rem; }
.hero__hint { margin: 2.25rem 0 0; transition: opacity 0.3s ease; }
.hero__portrait:has(.was-grabbed) ~ .hero__hint { opacity: 0; }
.no-js .hero__hint, html:not(.js) .hero__hint { display: none; }
.hero__follow { display: inline-flex; align-items: center; gap: 0.35rem; text-decoration: none; }
.hero__follow:hover { color: var(--dc-ink); }
.hero__follow .arrow { width: 0.8rem; height: 0.8rem; }

/* The speech bubble on the portrait. */
.pitch {
  position: absolute;
  top: -1rem;
  right: -2.5rem;
  z-index: 10;
  transform: rotate(6deg);
  text-decoration: none;
  transition: transform 0.2s ease;
}
.pitch:hover { transform: rotate(3deg) scale(1.03); }
.pitch__bubble {
  display: block;
  padding: 0.55rem 0.8rem 0.6rem;
  border: 2px solid #0b0b0c;
  border-radius: 0.3rem;
  background: var(--dc-accent);
  color: #0b0b0c;
  box-shadow: 4px 4px 0 #0b0b0c;
}
.pitch__bubble::after {
  content: "";
  position: absolute;
  left: 1.2rem;
  bottom: -0.7rem;
  border: 0.45rem solid transparent;
  border-top-color: #0b0b0c;
  border-left-color: #0b0b0c;
}
.pitch__kicker { display: block; font: 800 0.6rem/1.2 var(--dc-display); letter-spacing: 0.1em; text-transform: uppercase; }
.pitch__hurt { display: none; }
.pitch__line { display: inline-flex; align-items: center; gap: 0.35rem; font: 800 1.05rem/1.15 var(--dc-display); letter-spacing: -0.01em; }
.pitch__line .arrow { width: 0.9rem; height: 0.9rem; }
.hero__portrait:has(.is-grabbed) .pitch__calm { display: none; }
.hero__portrait:has(.is-grabbed) .pitch__hurt { display: inline; }
.hero__portrait:has(.is-grabbed) .pitch { animation: dc-shake 0.35s ease 2; }
@keyframes dc-shake { 25% { transform: rotate(9deg) translateX(-2px); } 75% { transform: rotate(3deg) translateX(2px); } }
@media (prefers-reduced-motion: reduce) { .hero__portrait:has(.is-grabbed) .pitch { animation: none; } }

/* ---------- Press ---------------------------------------------------------------------------- */
.press { display: flex; align-items: center; gap: 1.5rem 2.5rem; flex-wrap: wrap; padding: 1.5rem clamp(1rem, 3vw, 2rem) 2rem; }
.press__label { margin: 0; }
.press__row { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; margin: 0; padding: 0; list-style: none; }
.press__link { font: 800 1.05rem/1 var(--dc-display); color: var(--dc-muted); text-decoration: none; letter-spacing: -0.02em; }
.press__link:hover { color: var(--dc-ink); }

/* ---------- Projects ------------------------------------------------------------------------- */
.catalogue { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.catalogue--1 { grid-template-columns: minmax(0, 1fr); }
.catalogue--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  min-height: 15rem;
  padding: 1.1rem 1.4rem 1.4rem;
  border-right: 1px solid var(--dc-rule);
  border-bottom: 1px solid var(--dc-rule);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.catalogue > .product:nth-child(3n) { border-right: 0; }
a.product:hover { background: var(--dc-sheet); }
.product__top { display: flex; justify-content: space-between; }
.product__mark { display: grid; place-items: center; padding: 1.5rem 0; }
.product__mark img { max-height: 5.5rem; width: auto; object-fit: contain; }
.product__initial {
  display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%;
  border: 2px solid var(--dc-ink); color: var(--dc-ink); font: 900 2rem/1 var(--dc-display);
}
.product__name { font: 800 1.15rem/1.2 var(--dc-display); color: var(--dc-ink); letter-spacing: -0.02em; }
.product__does { font-size: 0.8rem; color: var(--dc-muted); padding-right: 2.5rem; }
.product__go { position: absolute; right: 1.4rem; bottom: 1.4rem; }
.seat {
  display: grid; place-items: center; width: 1.9rem; height: 1.9rem; flex: none;
  border-radius: 50%; background: var(--dc-sheet); color: var(--dc-ink);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.18), 0 0 0 1px var(--dc-rule);
}
.seat .arrow { width: 0.8rem; height: 0.8rem; }
a:hover > .seat, a:hover .product__go { background: var(--dc-accent); color: var(--dc-on-accent); }

.shelf { display: flex; align-items: center; justify-content: center; gap: 1rem 1.5rem; flex-wrap: wrap; padding: 1.25rem; }
.shelf__carousel { display: flex; align-items: center; gap: 0.5rem; min-width: 0; flex: 1 1 32rem; }
.shelf__items {
  display: flex; gap: 2rem; align-items: center; flex: 1; min-width: 0;
  margin: 0; padding: 0.25rem; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.shelf__items::-webkit-scrollbar { display: none; }
.shelf__items li { flex: none; scroll-snap-align: start; }
.shelf__item { display: flex; align-items: center; height: 2.5rem; color: var(--dc-muted); text-decoration: none; opacity: 0.8; transition: opacity 0.15s ease; }
.shelf__item:hover { opacity: 1; color: var(--dc-ink); }
.shelf__item img { max-height: 1.8rem; width: auto; filter: grayscale(1); }
.shelf__name { font: 800 0.95rem/1 var(--dc-display); letter-spacing: -0.01em; }
.shelf__control { flex: none; width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: transparent; color: var(--dc-muted); font-size: 1rem; cursor: pointer; }
.shelf__control:hover:not(:disabled) { color: var(--dc-ink); background: var(--dc-sheet); }
.shelf__control:disabled { opacity: 0.25; cursor: default; }
.shelf__carousel.is-static .shelf__control { display: none; }

/* ---------- About -------------------------------------------------------------------------------- */
.about { display: grid; gap: clamp(2rem, 5vw, 4.5rem); padding: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about--photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.about__title { font: 900 clamp(1.8rem, 3.4vw, 2.6rem)/1.05 var(--dc-display); letter-spacing: -0.03em; margin-bottom: 1.25rem; }
.about__body { max-width: 34rem; }
.points { display: grid; gap: 0.75rem; margin: 1.75rem 0 0; padding: 0; list-style: none; max-width: 34rem; font-size: 0.9rem; }
.points li { display: grid; grid-template-columns: 0.4rem 1fr; gap: 0.75rem; align-items: baseline; }
.pip { width: 0.4rem; height: 0.4rem; background: var(--dc-accent); transform: translateY(-0.1rem); }
.about__picture { margin: 0; }
.about__frame { overflow: hidden; border-radius: 0.2rem; box-shadow: 0 0 0 1px var(--dc-rule); }
.about__frame img { display: block; width: 100%; height: auto; }
.about__picture figcaption { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.6rem; }

/* ---------- Newsletter --------------------------------------------------------------------------- */
.pitch-plate__body { max-width: 34rem; margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) 1.25rem; text-align: center; }
.pitch-plate__title { font: 900 clamp(2rem, 4.4vw, 3.2rem)/1 var(--dc-display); letter-spacing: -0.035em; margin-bottom: 1.5rem; }
.pitch-plate__copy { color: var(--dc-text); }
.newsletter { margin-top: 1.75rem; }
.newsletter form { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: inherit; }
.newsletter form > * { margin: 0; }
.newsletter input[type="email"], .newsletter input[type="text"] { flex: 1 1 13rem; width: auto; }
.newsletter label { font-size: 0.8rem; color: var(--dc-muted); }
.newsletter p { margin: 0; }
.newsletter--pitch form { justify-content: center; }
.closer { padding: 0.5rem 0 1rem; }
.band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center; padding: clamp(2rem, 5vw, 4rem); }
.band__title { font: 900 clamp(1.6rem, 3vw, 2.4rem)/1.05 var(--dc-display); letter-spacing: -0.03em; margin: 0.5rem 0 0.75rem; }
.band__text { color: color-mix(in srgb, var(--dc-on-contrast) 72%, transparent); margin: 0; }
.band .newsletter { margin: 0; }
.band .newsletter input[type="email"], .band .newsletter input[type="text"] { background: transparent; color: var(--dc-on-contrast); border-color: color-mix(in srgb, var(--dc-on-contrast) 50%, transparent); }

/* ---------- Post lists --------------------------------------------------------------------------- */
.post-list { display: grid; }
.post-row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem clamp(1.25rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--dc-rule);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.post-row:hover { background: var(--dc-sheet); }
.post-row__date { display: grid; line-height: 1; gap: 0.3rem; }
.post-row__year { font: 900 1.9rem/1 var(--dc-display); letter-spacing: -0.04em; color: var(--dc-ink); }
.post-row__text { display: grid; gap: 0.2rem; min-width: 0; }
.post-row__title { font: 800 1.02rem/1.3 var(--dc-display); letter-spacing: -0.015em; color: var(--dc-ink); }
.post-row__excerpt { font-size: 0.82rem; color: var(--dc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.listing__head { display: grid; gap: 1rem; padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 3vw, 2.5rem) 2rem; border-bottom: 1px solid var(--dc-rule); }
.listing__lede { max-width: 40rem; color: var(--dc-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex; align-items: center; min-height: 2rem; padding: 0 0.8rem;
  border: 1px solid var(--dc-rule); border-radius: 999px; background: var(--dc-sheet);
  font: 700 0.7rem/1 var(--dc-display); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; color: var(--dc-muted);
}
.chip:hover, .chip.is-current { border-color: var(--dc-ink); color: var(--dc-ink); }
.chip.is-current { background: var(--dc-accent); color: var(--dc-on-accent); border-color: #0b0b0c; }

.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; padding: 1.5rem; }
.pagination .page-numbers {
  display: grid; place-items: center; min-width: 2.5rem; height: 2.5rem; padding: 0 0.7rem;
  border: 1.5px solid var(--dc-ink); border-radius: var(--dc-key-radius); text-decoration: none;
  font: 800 0.75rem/1 var(--dc-display); color: var(--dc-ink); background: var(--dc-paper);
}
.pagination .page-numbers.current { background: var(--dc-accent); color: var(--dc-on-accent); border-color: #0b0b0c; }
.pagination .page-numbers.dots { border: 0; background: none; }

.empty { display: grid; justify-items: start; gap: 1rem; padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 3vw, 2.5rem); }
.empty p { margin: 0; color: var(--dc-muted); }
.empty--404 { padding: clamp(3rem, 8vw, 6rem); }
.empty__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.search-form { display: flex; gap: 0.5rem; width: min(100%, 26rem); }
.search-form label { flex: 1; }

/* ---------- One post ----------------------------------------------------------------------------- */
.article { padding: clamp(1.75rem, 5vw, 4rem) clamp(1.25rem, 5vw, 4rem); }
.article__head { max-width: var(--dc-reading); margin: 0 auto 2rem; display: grid; justify-items: start; gap: 1rem; }
.article__back { text-decoration: none; }
.article__back:hover { color: var(--dc-ink); }
.article__title { font: 900 clamp(2rem, 4.6vw, 3.4rem)/1.04 var(--dc-display); letter-spacing: -0.035em; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0; font-size: 0.85rem; color: var(--dc-muted); }
.article__avatar { width: 2rem; height: 2rem; border-radius: 50%; }
.article__cover { max-width: 64rem; margin: 0 auto 2.5rem; }
.article__cover img { display: block; width: 100%; height: auto; border-radius: 0.3rem; box-shadow: 0 0 0 1px var(--dc-rule); }
.article__cover figcaption { margin-top: 0.5rem; }
.article__foot { max-width: var(--dc-reading); margin: 3rem auto 0; padding-top: 2rem; border-top: 1px solid var(--dc-rule); display: grid; gap: 1.5rem; }
.article__tags a { margin-right: 0.4rem; }
.article__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-navigation a { display: grid; gap: 0.3rem; padding: 1rem; border: 1px solid var(--dc-rule); border-radius: 0.3rem; text-decoration: none; }
.post-navigation a:hover { background: var(--dc-sheet); }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.post-navigation .nav-title { font: 800 0.95rem/1.3 var(--dc-display); color: var(--dc-ink); }

/* Reading typography. */
.prose { max-width: var(--dc-reading); margin: 0 auto; font-size: 1.125rem; line-height: 1.75; color: var(--dc-text); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.25em; }
/* Only the bottom margin: the gap between paragraphs comes from ".prose > * + *",
   which a plain "margin: 0" here used to outrank (text ran together, 1.4.1). */
.prose p { margin-bottom: 0; }
.prose h2 { font: 900 1.75rem/1.15 var(--dc-display); letter-spacing: -0.025em; margin-top: 2.2em; }
.prose h3 { font: 800 1.3rem/1.25 var(--dc-display); letter-spacing: -0.015em; margin-top: 1.8em; }
.prose h4 { font-size: 1.05rem; margin-top: 1.6em; }
.prose a { color: var(--dc-ink); text-decoration-color: var(--dc-accent); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.prose a:hover { background: color-mix(in srgb, var(--dc-accent) 18%, transparent); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--dc-accent); }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 0.2em 0 0.2em 1.2em; border-left: 3px solid var(--dc-accent); color: var(--dc-ink); font-style: italic; }
.prose img, .prose video { border-radius: 0.3rem; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figcaption, .prose .wp-element-caption { margin-top: 0.5rem; font-size: 0.8rem; color: var(--dc-muted); text-align: center; }
.prose code { font: 0.88em var(--dc-mono); padding: 0.1em 0.35em; border-radius: 0.2rem; background: var(--dc-sheet); box-shadow: 0 0 0 1px var(--dc-rule); }
.prose pre { overflow-x: auto; padding: 1rem 1.2rem; border-radius: 0.3rem; background: #111113; color: #eceae5; font: 0.88rem/1.6 var(--dc-mono); }
.prose pre code { padding: 0; background: none; box-shadow: none; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--dc-rule); text-align: left; }
.prose hr { border: 0; border-top: 1px solid var(--dc-rule); margin: 2.5em 0; }
.prose .alignwide { max-width: 60rem; margin-left: 50%; transform: translateX(-50%); width: min(60rem, 92vw); }
.prose .alignfull { width: 100%; }
.page-links { margin-top: 2rem; display: flex; gap: 0.5rem; }

/* Comments. */
.comments-plate { padding: clamp(1.5rem, 4vw, 3rem); }
.comments { max-width: var(--dc-reading); margin: 0 auto; }
.comments__title { font: 900 1.4rem/1.2 var(--dc-display); margin-bottom: 1.25rem; }
.comments__list { list-style: none; padding: 0; margin: 0 0 2rem; }
.comments__list .comment-body { padding: 1rem 0; border-bottom: 1px solid var(--dc-rule); }
.comments__list .children { list-style: none; padding-left: 1.5rem; }
.comment-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.85rem; color: var(--dc-muted); }
.comment-meta .avatar { border-radius: 50%; }
.comment-form { display: grid; gap: 1rem; }
.comment-form label { display: block; font-size: 0.85rem; margin-bottom: 0.3rem; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 0.5rem; align-items: baseline; }
.comment-form .comment-form-cookies-consent label { display: inline; }

/* ---------- Footer ---------------------------------------------------------------------------- */
.site-footer { padding: 0.5rem 0 1.5rem; }
.footer-panel {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem;
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--dc-radius); background: var(--dc-paper); box-shadow: var(--dc-shadow), 0 0 0 1px var(--dc-groove);
}
.footer-email { display: grid; gap: 0.3rem; text-decoration: none; }
.footer-email__address { font: 800 clamp(1.1rem, 2.4vw, 1.5rem)/1.1 var(--dc-display); color: var(--dc-ink); letter-spacing: -0.02em; }
.footer-email:hover .footer-email__address { text-decoration: underline; text-decoration-color: var(--dc-accent); }
.knobs { display: flex; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.knobs li { display: grid; justify-items: center; gap: 0.35rem; }
.knob {
  display: block; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgb(255 255 255 / 0.35), transparent 60%), var(--knob, var(--dc-graphite));
  box-shadow: 0 2px 0 #0b0b0c, inset 0 -3px 4px rgb(0 0 0 / 0.25), 0 0 0 1.5px #0b0b0c;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.knob:active { transform: translateY(2px); box-shadow: 0 0 0 #0b0b0c, inset 0 -3px 4px rgb(0 0 0 / 0.25), 0 0 0 1.5px #0b0b0c; }
.knob--orange { --knob: var(--dc-accent); }
.knob--steel { --knob: #8b8b8e; }
.knob--white { --knob: #f6f5f2; }
.knob--graphite { --knob: #3d3d40; }
.footer-copy { width: 100%; margin: 0; }

/* Elementor full-width pages. */
.full-width { min-height: 40vh; }

/* Home page built with Elementor. The "Dumitru" widgets sit in the page's
   column exactly like the Customizer layout; Elementor's default spacing
   around them is taken out, so the design and light/dark stay the same. */
.front--elementor {
  --kit-widget-spacing: 0px;
  --widgets-spacing: 0px;
  --container-default-padding-top: 0px;
  --container-default-padding-right: 0px;
  --container-default-padding-bottom: 0px;
  --container-default-padding-left: 0px;
}
.front--elementor .e-con:has(> .elementor-widget[data-widget_type^="dumitru-"]),
.front--elementor .e-con:has(> .e-con-inner > .elementor-widget[data-widget_type^="dumitru-"]) {
  --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
  --gap: 0px; --row-gap: 0px; --column-gap: 0px;
  --content-width: 100%;
}
.front--elementor .elementor-column-gap-default > .elementor-column > .elementor-element-populated:has(> .elementor-widget-wrap > .elementor-widget[data-widget_type^="dumitru-"]) { padding: 0; }
.front--elementor .elementor .elementor-widget[data-widget_type^="dumitru-"] { width: 100%; max-width: 100%; margin-block-end: 0; }
.front--elementor .elementor-widget[data-widget_type^="dumitru-"] > .elementor-widget-container {
  width: 100%; max-width: var(--dc-rack); margin: 0 auto; padding: 0 var(--dc-gutter);
}
/* Elementor's own resets for links and images in its content outrank a few
   of the theme's rules; put those back. */
.front--elementor .key { box-shadow: 0 2px 0 var(--dc-ink); }
.front--elementor .key:active { box-shadow: 0 0 0 var(--dc-ink); }
.front--elementor .hero__intro a,
.front--elementor .about__body a { text-decoration: underline; }
.front--elementor .hero__intro a { text-decoration-color: var(--dc-accent); }
.front--elementor .dc-portrait__img { height: 100%; }
/* In Elementor's editor only: where a section is hidden until filled in. */
.dumitru-editor-note {
  margin: 0 0 1rem; padding: 1rem 1.25rem;
  border: 1.5px dashed var(--dc-rule); border-radius: var(--dc-radius);
  color: var(--dc-muted); font: 600 0.875rem/1.4 var(--dc-font);
}

/* ---------- Responsive ---------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .hero__grid, .about--photo, .band { grid-template-columns: minmax(0, 1fr); }
  .hero__stage { order: -1; }
  .hero__portrait { width: min(78vw, 20rem); margin-top: 2.5rem; }
  .hero__hint { margin-top: 1.75rem; }
  .pitch { right: -0.5rem; top: -1.6rem; }
  .catalogue, .catalogue--2 { grid-template-columns: minmax(0, 1fr); }
  .product {
    grid-template-columns: 4rem minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    column-gap: 1rem;
    min-height: 0;
    border-right: 0;
    padding: 0.9rem 1.1rem 1.1rem;
  }
  .product__top { grid-column: 1 / -1; }
  .product__mark { grid-row: 2 / 4; padding: 0.4rem 0 0; place-items: start; }
  .product__mark img { max-height: 3.5rem; }
  .product__initial { width: 3.2rem; height: 3.2rem; font-size: 1.4rem; }
  .product__name { grid-column: 2; align-self: end; }
  .product__does { grid-column: 2; padding-right: 0; }
  .product__go { position: static; grid-column: 3; grid-row: 2 / 4; align-self: center; }
  .post-row { grid-template-columns: minmax(0, 1fr) auto; gap: 0.4rem 1rem; }
  .post-row__date { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 0.5rem; }
  .post-row__year { font-size: 1.3rem; }
  .post-row__excerpt { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .post-navigation .nav-links { grid-template-columns: minmax(0, 1fr); }
  .post-navigation .nav-next { grid-column: 1; }
}
@media (max-width: 480px) {
  .masthead { gap: 0.5rem; padding-right: 0.6rem; }
  .masthead__handle { display: none; }
  .tabs a { padding: 0 0.75rem; }
  .strip__note { display: none; }
  .knobs { gap: 0.9rem; }
}

/* ---------- 1.4.0 ------------------------------------------------------------------------------------ */

/* Own touches (not a copy of the reference): pill section numbers, softer keys,
   cards that lift a little, a dot before the press label. */
.strip__no { border-radius: 999px; margin: 0.45rem 0 0.45rem 0.45rem; min-width: 2.6rem; }
.key, .search-form .search-submit, .newsletter button, .newsletter input[type="submit"] { border-radius: 0.4rem; }
a.product { transition: background-color 0.15s ease, transform 0.15s ease; }
a.product:hover { transform: translateY(-2px); }
.press__label::before { content: ""; display: inline-block; width: 0.4rem; height: 0.4rem; margin-right: 0.5rem; border-radius: 50%; background: var(--dc-accent); vertical-align: 0.1em; }
@media (prefers-reduced-motion: reduce) { a.product:hover { transform: none; } }

/* Press logos (optional; the name in letters otherwise). */
.press__link--logo { display: inline-flex; align-items: center; }
/* Height set in Elementor (As featured in → Logo height); this is the default. */
.press .press__logo { height: 4.5rem; width: auto; max-width: 16rem; object-fit: contain; filter: grayscale(1); opacity: 0.8; transition: opacity 0.15s ease; }
.press__link--logo:hover .press__logo { opacity: 1; }
@media (max-width: 860px) { .press .press__logo { height: 3.5rem; } }
:root[data-theme="dark"] .press__logo { filter: grayscale(1) invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .press__logo { filter: grayscale(1) invert(1); } }

/* A picture that fills the top of a project card. */
.product--photo .product__mark { padding: 0; margin: 0.75rem -1.4rem 1rem; overflow: hidden; }
.product--photo .product__mark img { width: 100%; height: 11rem; max-height: none; object-fit: cover; }

/* "Placeholder" label on projects still to be replaced. */
.tag-placeholder {
  display: inline-block; vertical-align: 0.2em; margin-left: 0.35rem; padding: 0.15rem 0.4rem;
  border: 1px dashed var(--dc-accent); border-radius: 0.3rem; color: var(--dc-accent);
  font: 700 0.6rem/1 var(--dc-display); letter-spacing: 0.08em; text-transform: uppercase;
}

/* The blog key. */
.key--dark { background: var(--dc-ink); color: var(--dc-paper); }
.key--dark:hover { background: var(--dc-graphite); color: #fff; }

/* Footer knobs with their marks. */
.knob { display: grid; place-items: center; color: #0b0b0c; }
.knob--orange { color: #fff; }
.knob--graphite, .knob--steel { color: #f6f5f2; }
.knob__icon { width: 1.05rem; height: 1.05rem; }

/* Language switcher. */
.langs ul { display: flex; gap: 0.15rem; margin: 0; padding: 0; list-style: none; }
.langs a {
  display: grid; place-items: center; min-width: 2rem; height: 1.8rem; padding: 0 0.4rem; border-radius: 0.35rem;
  color: var(--dc-muted); text-decoration: none; font: 800 0.62rem/1 var(--dc-display); letter-spacing: 0.08em;
}
.langs a:hover { color: var(--dc-ink); background: var(--dc-sheet); }
.langs a.is-current { color: var(--dc-ink); box-shadow: inset 0 0 0 1.5px var(--dc-ink); }

/* Projects page. */
.projects-page .catalogue { border-bottom: 1px solid var(--dc-rule); }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; }
.project-grid li { border-right: 1px solid var(--dc-rule); border-bottom: 1px solid var(--dc-rule); }
.project-tile { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: 0.9rem; align-items: center; padding: 1rem 1.2rem; color: inherit; text-decoration: none; height: 100%; }
a.project-tile:hover { background: var(--dc-sheet); }
.project-tile__mark { display: grid; place-items: center; width: 3rem; height: 3rem; }
.project-tile__mark img { max-width: 3rem; max-height: 3rem; object-fit: contain; }
.project-tile__mark .product__initial { width: 2.6rem; height: 2.6rem; font-size: 1.1rem; }
.project-tile__text { display: grid; gap: 0.15rem; min-width: 0; }
.project-tile__name { font: 800 0.95rem/1.25 var(--dc-display); color: var(--dc-ink); letter-spacing: -0.015em; }
.project-tile__does { font-size: 0.8rem; color: var(--dc-muted); }

/* Newsletter band: texts on the left, form on the right. */
.band__form { display: grid; gap: 0.6rem; }
.band__note { margin: 0; font-size: 0.75rem; font-style: italic; color: color-mix(in srgb, var(--dc-on-contrast) 55%, transparent); }
.band__kicker { color: var(--dc-accent) !important; }
.newsletter form { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: stretch; }
.newsletter .tnp-field, .newsletter .tnp-field-email { margin: 0; flex: 1 1 13rem; }
.newsletter .tnp-field-button, .newsletter .tnp-field label:empty { margin: 0; }
.newsletter .tnp-privacy-field, .newsletter .tnp-field-privacy { flex-basis: 100%; margin: 0; font-size: 0.78rem; }
.newsletter .tnp-privacy-field a, .newsletter .tnp-field-privacy a { color: inherit; }
.band .newsletter .tnp-privacy-field, .band .newsletter .tnp-field-privacy { color: color-mix(in srgb, var(--dc-on-contrast) 70%, transparent); }

.footer-copy a { color: inherit; }

@media (max-width: 480px) {
  .langs a { min-width: 1.7rem; padding: 0 0.25rem; }
}

/* The title in two lines, as Daniel asked: "Hello! My name" / "is Dumitru".
   The size follows the column so the first line always fits. */
.hero__copy { container-type: inline-size; }
.hero .display-1 { font-size: clamp(2rem, calc(100cqi / 9), 4.25rem); }
.hello__last { white-space: nowrap; }
/* Newsletter consent line on the dark band. */
.band .newsletter .tnp-privacy-field label, .band .newsletter .tnp-field-privacy label { color: color-mix(in srgb, var(--dc-on-contrast) 75%, transparent); }
.band .newsletter input[type="checkbox"] { accent-color: var(--dc-accent); }
/* Phones: a card's picture goes full width above its name. */
@media (max-width: 860px) {
  .product--photo { grid-template-rows: auto auto auto auto; }
  .product--photo .product__mark { grid-column: 1 / -1; grid-row: 2; margin: 0.6rem -1.1rem 0.8rem; padding: 0; }
  .product--photo .product__mark img { width: 100%; height: 9.5rem; max-height: none; object-fit: cover; }
  .product--photo .product__name { grid-column: 1 / 3; grid-row: 3; }
  .product--photo .product__does { grid-column: 1 / 3; grid-row: 4; }
  .product--photo .product__go { grid-row: 3 / 5; }
}
