/* schlottmann-home.de: shared styles */

:root {
  /* Colours taken from Dagmar's painting on the home page */
  --bg: #e7e3db;          /* linen wall */
  --surface: #f3f1ec;
  --ink: #1c1f28;         /* ink */
  --ink-soft: #55574d;
  --rule: #d2cdc2;
  --magenta: #c0226e;
  --olive: #66644f;
  --ochre: #d6c675;
  --frame: #2b2d2f;
  --shadow: rgba(50, 42, 28, .55);

  --accent: var(--magenta);
  --accent-ink: #a01a5a;
  --olive-ink: #4f4d3b;
  --focus: #c0226e;

  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 3.6vw, 2.625rem);
  --step-4: clamp(2.75rem, 6.4vw, 5.25rem);

  --gutter: clamp(16px, 4vw, 48px);
  --measure: 66ch;
  --max: 1180px;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; }

p { margin: 0 0 1em; max-width: var(--measure); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Michael's pages use olive instead of magenta as accent */
.accent-olive { --accent: var(--olive); --accent-ink: var(--olive-ink); --focus: var(--olive-ink); }

/* ---------- Header ---------- */

.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; min-height: 84px; flex-wrap: wrap; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
/* A round detail of the painting as logo */
.brand .dot { width: 30px; height: 30px; border-radius: 50%; background: url(/assets/img/bild-spritzer.jpg) center / 260% no-repeat; flex: none; }

.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 26px; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; font-weight: 500; color: var(--ink-soft); padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

@media (max-width: 640px) {
  .site-header .wrap { padding-block: 16px; }
  .site-nav ul { gap: 2px 18px; }
  .site-nav a { font-size: var(--step--1); }
}

/* ---------- Sections ---------- */

main { display: block; }
.section { padding-block: clamp(48px, 6vw, 88px); }
.section.follow { padding-top: 0; }

.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); max-width: 44ch; }

/* ---------- Link list (other websites, used on home) ---------- */

.sites { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.sites li { border-bottom: 1px solid var(--rule); }
.sites a {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) minmax(0, 1.4fr) 10rem; gap: 6px 24px; align-items: baseline;
  padding: 24px 0; text-decoration: none; color: inherit;
}
/* Paint dot centred on the first line of the heading, not on the whole row */
.sites .mark { width: 14px; height: 14px; border-radius: 50%; align-self: start; margin-top: 9px; }
.sites h3 { margin: 0; font-size: var(--step-2); }
.sites p { margin: 0; color: var(--ink-soft); }
.sites .host { font-size: var(--step--1); color: var(--ink-soft); text-align: right; }
.sites a:hover h3 { color: var(--accent-ink); }
@media (max-width: 760px) {
  .sites a { grid-template-columns: 22px minmax(0, 1fr); }
  .sites p, .sites .host { grid-column: 2; }
  .sites .host { text-align: left; }
}

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--rule); padding-block: 40px 48px; font-size: var(--step--1); color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin: 0; }

/* ---------- Profile pages ---------- */

.profile-head .wrap { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.profile-head h1 { margin-bottom: .3em; }
.profile-head .role { font-size: var(--step-1); color: var(--ink-soft); margin: 0 0 1.4em; }
.profile-head .role span { display: block; }

/* Head with a framed work on the right (Dagmar's painting): smaller portrait above the name */
.profile-head.has-work .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; }
.profile-head.has-work .portrait { width: clamp(120px, 14vw, 180px); margin-bottom: 32px; }
.profile-head.has-work h1 { font-size: clamp(2.6rem, 5.4vw, 4.75rem); }
.profile-head.has-work .painting { justify-self: end; width: 100%; }
@media (max-width: 860px) {
  .profile-head.has-work .wrap { grid-template-columns: 1fr; }
  .profile-head.has-work .painting { justify-self: start; }
}

/* Portrait: a grey print over an offset colour disc */
.portrait { position: relative; aspect-ratio: 1; }
.portrait::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--accent); transform: translate(7%, -5%);
}
.portrait img {
  position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  filter: grayscale(1) contrast(1.05);
}

.contact { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0; padding: 0; font-weight: 500; }

.facts { border-top: 2px solid var(--ink); }
.fact { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 8px clamp(24px, 5vw, 72px); padding-block: 32px; border-bottom: 1px solid var(--rule); }
.fact h2 { font-size: var(--step-2); margin: 0; }
.fact p:last-child { margin-bottom: 0; }
.fact .claim { font-family: var(--font-display); font-size: var(--step-2); font-weight: 500; line-height: 1.2; letter-spacing: -0.015em; margin-bottom: .7em; max-width: 30ch; }

/* Keyword lists: flowing text, separated by small rhombi. Every item gets a
   leading rhombus; the list is shifted left by one separator and clipped there,
   so no line starts with a rhombus. */
.tags { --sep: 32px; list-style: none; margin: 0 0 0 calc(-1 * var(--sep)); padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; max-width: calc(var(--measure) + var(--sep)); clip-path: inset(-4px -4px -4px var(--sep)); }
.tags li { display: inline-flex; align-items: center; }
.tags li::before {
  content: ""; width: 7px; height: 7px; margin-inline: 12px 13px; background: var(--accent);
  transform: rotate(45deg); flex: none;
}

/* Longer entries (projects) as a list, one per line, rhombus as bullet */
.items { list-style: none; margin: 0; padding: 0; max-width: var(--measure); }
.items li { position: relative; padding-left: 26px; margin-bottom: .45em; }
.items li::before {
  content: ""; position: absolute; left: 1px; top: .62em; width: 7px; height: 7px;
  background: var(--accent); transform: rotate(45deg);
}

@media (max-width: 760px) {
  .profile-head .wrap { grid-template-columns: 1fr; }
  .portrait { max-width: 260px; }
  .fact { grid-template-columns: 1fr; }
}

/* ---------- Framed works (Dagmar's painting, Michael's projects) ---------- */

.work { margin: 0; }
.frame {
  display: block; background: var(--frame); padding: clamp(8px, 1.1vw, 14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 40px 60px -30px var(--shadow), 0 12px 20px -12px var(--shadow);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.work figcaption, .work .caption { display: block; margin-top: 16px; font-size: var(--step--1); color: var(--ink-soft); }
.work figcaption b, .work .caption b { display: block; font-weight: 600; color: var(--ink); font-size: var(--step-0); }

.painting { max-width: 640px; }
.painting img { aspect-ratio: 1; }

/* Projects hung salon-style: the tall comic cover left, two wide pictures stacked right */
.salon { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); gap: clamp(24px, 3vw, 40px); }
.salon .work { display: block; }
.salon .work:first-child { grid-row: span 2; display: flex; flex-direction: column; }
.salon .work:first-child .frame { flex: 1; }
.salon .frame { padding: clamp(6px, .7vw, 9px); }
.salon a { text-decoration: none; color: inherit; }
.salon a:hover b { color: var(--accent-ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (max-width: 560px) {
  .salon { grid-template-columns: 1fr; }
  .salon .work:first-child { grid-row: auto; }
  .salon .work:first-child .frame { max-width: 320px; }
}

/* ---------- Prose (imprint, long text) ---------- */

.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--step-2); margin-top: 1.8em; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .25em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
