/* Press-inspired editorial redesign for jminke.com.
 * Keeps the existing semantic, bilingual HTML and privacy-safe content intact.
 */

:root {
  color-scheme: dark light;
  --ink: #171415;
  --ink-raised: #211d1e;
  --paper: #f2e9d9;
  --paper-muted: #655950;
  --light: #fbf3e5;
  --muted: #b9aaa1;
  --rule-dark: #413738;
  --rule-light: #c9baa5;
  --signal: #df4d37;
  --signal-dark: #b93828;
  --focus: #ff755d;
  --rail: 4rem;
  --page-max: 82rem;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
  --font-display: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

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

html,
body {
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-left: var(--rail);
  background: var(--ink);
  color: var(--light);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
figure {
  margin-top: 0;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--signal);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  transform: translateY(-180%);
  padding: 0.7rem 0.9rem;
  background: var(--signal-dark);
  color: var(--light);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

/* The existing header becomes a fixed editorial side rail. */
.site-header {
  position: fixed;
  z-index: 300;
  inset: 0 auto 0 0;
  width: var(--rail);
  border-right: 1px solid var(--rule-dark);
  background: var(--ink);
}

.nav-shell {
  display: flex;
  width: 100%;
  height: 100%;
  padding: 1.25rem 0.65rem;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  gap: 1.2rem;
}

.site-name {
  color: var(--light);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-decoration: none;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
}

.site-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-direction: column;
  gap: 0.95rem;
  list-style: none;
}

.site-nav li {
  display: grid;
  place-items: center;
}

.site-nav li a {
  position: relative;
  display: block;
  width: 0.55rem;
  height: 0.55rem;
  overflow: hidden;
  border: 1px solid #7f706b;
  color: transparent;
  font-size: 0;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.site-nav li a:hover,
.site-nav li a:focus-visible {
  border-color: var(--signal);
  background: var(--signal);
  transform: scale(1.2);
}

.language-link {
  display: inline-flex;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule-dark);
  color: var(--light);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

main {
  overflow: clip;
}

.section {
  padding: var(--section-y) var(--gutter);
  scroll-margin-top: 2rem;
}

.section-shell,
.hero-grid,
.footer-shell {
  width: min(100%, var(--page-max));
  margin-inline: auto;
}

.eyebrow,
.card-number,
.product-status,
.footer-meta,
.error-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 1.25rem;
  color: var(--signal);
}

/* Hero: typography is the primary image; portrait is treated as a proof. */
.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--rule-dark);
  background: var(--ink);
}

.hero-grid {
  display: grid;
  align-items: end;
  gap: clamp(3rem, 7vw, 7rem);
  grid-template-columns: minmax(0, 1.35fr) minmax(14rem, 0.65fr);
}

.hero-copy {
  min-width: 0;
}

.hero-copy::before {
  content: "Product leadership · Zurich, Switzerland";
  display: block;
  max-width: 58ch;
  margin-bottom: clamp(2rem, 5vw, 4rem);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.7;
  text-transform: uppercase;
}

html[lang="de-CH"] .hero-copy::before {
  content: "Produktführung · Zürich, Schweiz";
}

.hero .eyebrow {
  display: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-style: normal;
}

h1 {
  max-width: 8ch;
  margin-bottom: clamp(2.25rem, 6vw, 5rem);
  color: var(--light);
  font-size: clamp(5rem, 13vw, 11rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.78;
  overflow-wrap: anywhere;
}

h1::after {
  content: ".";
  color: var(--signal);
}

.hero-role {
  max-width: 30ch;
  margin-bottom: 1.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule-dark);
  color: var(--light);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 3rem);
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.hero-intro {
  max-width: 59ch;
  margin-bottom: 1rem;
  color: #e1d6ca;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

.hero-current {
  max-width: 60ch;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.hero-actions,
.contact-actions,
.error-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.button-primary {
  border-color: var(--signal);
  background: var(--signal);
  color: var(--light);
}

.button-primary:hover {
  border-color: var(--light);
  background: var(--light);
  color: var(--ink);
}

.button-secondary {
  border-color: var(--rule-dark);
  background: transparent;
  color: var(--light);
}

.text-link {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-visual {
  align-self: end;
  margin: 0 1rem 1rem 0;
}

.portrait-frame {
  width: min(100%, 24rem);
  margin: 0;
  padding: 0;
  border: 1px solid var(--rule-dark);
  border-radius: 0;
  background: var(--ink-raised);
  box-shadow: 1rem 1rem 0 var(--signal);
}

.portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.68) contrast(1.05);
}

/* Warm proof-paper About section. */
.about-section {
  border: 0;
  background: var(--paper);
  color: var(--ink);
}

.about-grid {
  display: grid;
  align-items: start;
  gap: clamp(2.5rem, 6vw, 6rem);
  grid-template-columns: minmax(13rem, 0.55fr) minmax(0, 1.45fr);
}

.section-heading {
  max-width: 55rem;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.section-heading h2 {
  margin-bottom: 1rem;
  font-size: clamp(3rem, 7vw, 6.6rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.about-grid .section-heading {
  margin-bottom: 0;
  padding-top: 0.75rem;
  border-top: 4px solid var(--signal-dark);
}

.about-grid .section-heading h2 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
}

.about-grid .eyebrow,
.products-section .eyebrow {
  color: var(--signal-dark);
}

.prose {
  max-width: 67ch;
  color: var(--paper-muted);
  font-size: clamp(1.12rem, 1.8vw, 1.34rem);
  line-height: 1.65;
}

.prose p + p {
  margin-top: 1.3rem;
}

/* Leadership cards become a ruled editorial ledger. */
#focus {
  background: var(--ink);
  color: var(--light);
}

#focus .section-heading p {
  color: var(--muted);
}

.focus-grid {
  display: block;
  border-top: 1px solid var(--rule-dark);
}

.focus-card,
.focus-card:nth-child(4),
.focus-card:nth-child(5) {
  display: grid;
  min-height: 9rem;
  padding: 1.6rem 0;
  align-items: start;
  gap: 1.5rem 2.5rem;
  border: 0;
  border-bottom: 1px solid var(--rule-dark);
  border-radius: 0;
  background: transparent;
  grid-template-columns: 5rem minmax(15rem, 0.75fr) minmax(0, 1.25fr);
}

.card-number {
  color: var(--signal);
}

.focus-card h3 {
  margin: 0;
  color: var(--light);
  font-size: clamp(1.55rem, 2.5vw, 2.4rem);
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.focus-card p {
  max-width: 55ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

/* Product section uses a proof-sheet index rather than a rounded card. */
.products-section {
  border: 0;
  background: var(--paper);
  color: var(--ink);
}

.products-section .section-heading p,
.product-panel p {
  color: var(--paper-muted);
}

.product-panel {
  display: grid;
  padding: 0;
  align-items: start;
  gap: clamp(3rem, 6vw, 6rem);
  border: 0;
  border-radius: 0;
  background: transparent;
  grid-template-columns: minmax(0, 1fr) minmax(11rem, 0.32fr);
}

.product-panel h3 {
  margin-bottom: 1rem;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.product-pill-list {
  display: block;
  margin: 2.2rem 0 0;
  padding: 0;
  border-top: 1px solid var(--rule-light);
  list-style: none;
}

.product-pill-list li {
  padding: 0.85rem 0;
  border: 0;
  border-bottom: 1px solid var(--rule-light);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 750;
}

.product-status {
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 0.75rem 0 0;
  border: 0;
  border-top: 4px solid var(--signal-dark);
  color: var(--paper-muted);
  line-height: 1.5;
  text-align: left;
}

/* Closing plate. */
.contact-section {
  border-top: 1px solid var(--rule-dark);
  background: var(--ink);
}

.contact-card {
  display: grid;
  padding: 0;
  align-items: end;
  gap: clamp(3rem, 7vw, 7rem);
  border: 0;
  border-radius: 0;
  background: transparent;
  grid-template-columns: minmax(0, 1.35fr) minmax(15rem, 0.65fr);
}

.contact-card h2 {
  max-width: 11ch;
  margin: 0;
  color: var(--light);
  font-size: clamp(3.6rem, 8vw, 7.8rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.84;
}

.contact-card h2::after {
  content: ".";
  color: var(--signal);
}

.contact-card p {
  max-width: 50ch;
  margin-bottom: 0;
  color: var(--muted);
}

.contact-actions {
  max-width: none;
  margin-top: 2rem;
}

.site-footer {
  padding: 0;
  border-top: 1px solid var(--rule-dark);
  background: var(--ink);
  color: var(--muted);
}

.footer-shell {
  display: flex;
  min-height: 6rem;
  padding: 1.5rem var(--gutter);
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-meta {
  margin: 0;
  font-size: 0.68rem;
}

.footer-links {
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

/* Legal and error pages inherit the new system without structural changes. */
.legal-main,
.not-found-main {
  min-height: 100svh;
  display: grid;
  padding: clamp(4rem, 9vw, 8rem) var(--gutter);
  place-items: center;
  background: var(--paper);
  color: var(--ink);
}

.legal-card,
.not-found-card {
  width: min(100%, 56rem);
  margin-inline: auto;
  padding: 0;
  border: 0;
  border-top: 5px solid var(--signal-dark);
  border-radius: 0;
  background: transparent;
}

.legal-card h1,
.not-found-card h1 {
  max-width: none;
  margin: 0.75rem 0 2rem;
  color: var(--ink);
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.92;
}

.legal-card h1::after,
.not-found-card h1::after {
  content: none;
}

.legal-card h2 {
  margin: 2.3rem 0 0.6rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--rule-light);
  font-size: 1.75rem;
}

.legal-card p,
.not-found-card p {
  color: var(--paper-muted);
}

.legal-card a:not(.button),
.not-found-card a:not(.button) {
  color: var(--ink);
}

.legal-lead {
  font-size: 1.25rem;
}

.error-code {
  color: var(--signal-dark) !important;
  font-size: 0.84rem;
}

.not-found-card {
  text-align: left;
}

.not-found-card .hero-actions {
  justify-content: flex-start;
}

.not-found-card .button-secondary {
  border-color: var(--ink);
  color: var(--ink);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .hero-grid,
  .product-panel,
  .contact-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    width: min(72vw, 28rem);
  }

  .focus-card,
  .focus-card:nth-child(4),
  .focus-card:nth-child(5) {
    grid-template-columns: 4rem minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}

@media (max-width: 760px) {
  :root {
    --rail: 0rem;
    --gutter: clamp(1rem, 5vw, 1.5rem);
  }

  body {
    padding-left: 0;
  }

  .site-header {
    position: sticky;
    inset: auto;
    top: 0;
    width: 100%;
    min-height: 4.25rem;
    border-right: 0;
    border-bottom: 1px solid var(--rule-dark);
  }

  .nav-shell {
    width: min(calc(100% - 2rem), var(--page-max));
    min-height: 4.25rem;
    margin-inline: auto;
    padding: 0;
    align-items: center;
    flex-direction: row;
  }

  .site-name {
    writing-mode: initial;
    transform: none;
  }

  .site-nav {
    flex-direction: row;
  }

  .site-nav ul {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    align-items: start;
  }

  h1 {
    max-width: 7ch;
    font-size: clamp(4.5rem, 25vw, 8rem);
  }

  .hero-visual {
    width: min(86vw, 25rem);
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .focus-card,
  .focus-card:nth-child(4),
  .focus-card:nth-child(5) {
    min-height: auto;
    grid-template-columns: 3.5rem minmax(0, 1fr);
  }

  .focus-card p {
    grid-column: 2;
  }

  .contact-card h2 {
    max-width: 13ch;
  }

  .footer-shell {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: clamp(4rem, 24vw, 6.2rem);
  }

  .section-heading h2,
  .about-grid .section-heading h2 {
    max-width: none;
    font-size: clamp(2.35rem, 11vw, 3.8rem);
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .hero-role {
    font-size: clamp(1.5rem, 8vw, 2.25rem);
  }

  .focus-card,
  .focus-card:nth-child(4),
  .focus-card:nth-child(5) {
    grid-template-columns: 2.5rem minmax(0, 1fr);
  }

  .contact-card h2 {
    max-width: none;
    font-size: clamp(2.85rem, 12vw, 4.15rem);
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .contact-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .button,
  .text-link {
    font-size: 0.69rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
