/* ------------------------------------------------------------------ *
 * Apollonia Hirscher 11 — Casa Depner, Brașov
 * Colours are taken from the H×11 logo: the brick brown of the mark and
 * the near-black of the lettering, warmed with the plaster tones of the
 * façade itself.
 * ------------------------------------------------------------------ */

@font-face {
  font-family: 'Plex Serif';
  src: url('../fonts/IBMPlexSerif-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plex Serif';
  src: url('../fonts/IBMPlexSerif-Italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Plex Serif';
  src: url('../fonts/IBMPlexSerif-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plex Sans';
  src: url('../fonts/IBMPlexSans-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plex Sans';
  src: url('../fonts/IBMPlexSans-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plex Sans';
  src: url('../fonts/IBMPlexSans-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  color-scheme: light;

  --brick:      #8d5a41;   /* the logo mark */
  --brick-dark: #6d4330;
  --brick-tint: #f3e7e0;
  --ink:        #231f20;   /* the logo lettering */
  --ink-soft:   #4a4340;
  --muted:      #736760;
  --sand:       #faf6f1;
  --sand-deep:  #f2e9e0;
  --card:       #ffffff;
  --line:       #e4d7cb;
  --line-soft:  #efe6dc;

  --serif: 'Plex Serif', Georgia, 'Times New Roman', serif;
  --sans:  'Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --wrap: 68rem;
  --pad:  clamp(1.25rem, 5vw, 3rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brick-dark); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

.kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 0.9em;
}

.lead { font-family: var(--serif); font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem); line-height: 1.5; color: var(--ink-soft); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 0.7rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------------------------------------------------------------- head */

.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 246, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.site-head > .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.25rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; }
.brand img { width: 4.5rem; }
.brand span {
  font-family: var(--serif); font-size: 0.95rem; line-height: 1.2;
  border-left: 1px solid var(--line); padding-left: 0.75rem; color: var(--ink-soft);
}
@media (max-width: 30rem) { .brand span { display: none; } }

.langs { display: flex; gap: 0.15rem; }
.langs a {
  display: block; padding: 0.35rem 0.55rem; border-radius: 4px;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none; color: var(--muted);
}
.langs a:hover { background: var(--sand-deep); color: var(--ink); }
.langs a[aria-current='true'] { background: var(--brick); color: #fff; }

/* ---------------------------------------------------------------- hero */

.hero { position: relative; background: var(--ink); }
.hero > img {
  width: 100%; height: clamp(20rem, 62vh, 34rem); object-fit: cover;
  object-position: center 58%; opacity: 0.92;
}
.hero-body {
  position: relative; margin-top: -5.5rem; padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
.hero-card {
  background: var(--sand); border-radius: 3px;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  max-width: 44rem;
  box-shadow: 0 1px 2px rgba(35,31,32,.06), 0 12px 32px rgba(35,31,32,.10);
}
.hero-card h1 { margin-bottom: 0.45em; }
.hero-card .lead { margin-bottom: 1.6em; }

.btn {
  display: inline-block; background: var(--brick); color: #fff;
  padding: 0.7rem 1.4rem; border-radius: 3px; text-decoration: none;
  font-weight: 500; font-size: 0.95rem;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--brick-dark); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--brick-dark);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-ghost:hover { background: var(--brick-tint); color: var(--ink); }

/* ------------------------------------------------------------ sections */

.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section--alt { background: var(--sand-deep); }
.section--ink { background: var(--ink); color: #efe7e0; }
.section--ink h2 { color: #fff; }
.section--ink .lead { color: #d6cac1; }
.section--ink small { color: #b3a79f; }
.section--ink a { color: #e8b79c; }
.section--ink .kicker { color: #cf9375; }

.section > .wrap > .intro { max-width: 44rem; }

.cols {
  display: grid; gap: clamp(1.75rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 52rem) { .cols--2 { grid-template-columns: 1.15fr 1fr; } }

/* ------------------------------------------------------------- vacancy */

.vacancy {
  background: var(--card); border: 1px solid var(--line);
  border-left: 3px solid var(--brick);
  border-radius: 3px; padding: clamp(1.35rem, 3.5vw, 2rem);
  margin-block: 2rem;
}
.vacancy h3 { margin-bottom: 0.4em; }
.vacancy p { color: var(--ink-soft); }
.vacancy .btn { margin-top: 0.6rem; }

.space-list { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-block: 2rem; }
@media (min-width: 44rem) { .space-list { grid-template-columns: repeat(2, 1fr); } }
.space {
  background: var(--card); border: 1px solid var(--line); border-radius: 3px;
  padding: 1.35rem;
}
.space .tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brick); background: var(--brick-tint);
  padding: 0.2rem 0.5rem; border-radius: 2px; margin-bottom: 0.7rem;
}
.space dl { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.8rem; margin: 0.9rem 0 0; font-size: 0.92rem; }
.space dt { color: var(--muted); }
.space dd { margin: 0; font-weight: 500; }

.types { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
@media (min-width: 40rem) { .types { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .types { grid-template-columns: repeat(4, 1fr); } }
.type { background: var(--card); padding: 1.35rem; }
.type h3 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; margin-bottom: 0.4em; }
.type p { font-size: 0.92rem; color: var(--muted); }

/* -------------------------------------------------------------- facts */

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.facts li { padding-left: 1.6rem; position: relative; }
.facts li::before {
  content: ''; position: absolute; left: 0; top: 0.62em;
  width: 0.5rem; height: 0.5rem; background: var(--brick); border-radius: 1px;
  transform: rotate(45deg);
}
.facts strong { font-weight: 600; }

.note {
  border: 1px solid var(--line); border-radius: 3px;
  background: var(--card); padding: 1.35rem; margin-top: 2rem;
}
.section--ink .note { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
.note h3 { font-family: var(--sans); font-size: 0.95rem; margin-bottom: 0.5em; }
.note p { font-size: 0.94rem; }
.note .lock { color: var(--brick); font-weight: 600; }
.section--ink .note .lock { color: #e8b79c; }

/* ----------------------------------------------------------- timeline */

.timeline { list-style: none; margin: 2.5rem 0 0; padding: 0 0 0 1.5rem; border-left: 1px solid var(--line); }
.section--ink .timeline { border-color: rgba(255,255,255,.2); }
.timeline li { position: relative; padding-bottom: 2rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ''; position: absolute; left: calc(-1.5rem - 4px); top: 0.55em;
  width: 7px; height: 7px; background: var(--brick); border-radius: 50%;
}
.timeline .year {
  display: block; font-family: var(--sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--brick); margin-bottom: 0.35em;
}
.section--ink .timeline .year { color: #cf9375; }
.timeline p { margin: 0; }

/* ------------------------------------------------------------ figures */

figure { margin: 0; }
figure img { border-radius: 3px; }
figcaption { font-size: 0.83rem; color: var(--muted); margin-top: 0.6rem; line-height: 1.5; }
.section--ink figcaption { color: #b3a79f; }

.plates { display: grid; gap: clamp(1.25rem, 3vw, 2rem); margin-top: 2.75rem; grid-template-columns: 1fr; }
@media (min-width: 46rem) { .plates { grid-template-columns: repeat(2, 1fr); } }
.plates figure img { width: 100%; }

.gallery { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery figure.tall img { aspect-ratio: 3 / 4; }

/* ------------------------------------------------------------ contact */

.contact-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 3px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.contact-card .mail {
  font-family: var(--serif); font-size: clamp(1.1rem, 1rem + 0.8vw, 1.5rem);
  display: inline-block; margin-bottom: 0.9rem; word-break: break-word;
}
.addr { font-style: normal; color: var(--muted); font-size: 0.94rem; }

/* ------------------------------------------------------------- footer */

.site-foot {
  border-top: 1px solid var(--line-soft);
  padding-block: 2.5rem; font-size: 0.87rem; color: var(--muted);
}
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; }
.site-foot p { margin: 0; }
.site-foot a { color: var(--muted); }

/* --------------------------------------------------- language landing */

.landing { min-height: 100vh; display: grid; place-items: center; padding: var(--pad); text-align: center; }
.landing img.logo { width: 9rem; margin: 0 auto 2rem; }
.landing ul { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.landing ul a {
  display: block; padding: 0.75rem 1.5rem; border: 1px solid var(--line);
  border-radius: 3px; background: var(--card); text-decoration: none; color: var(--ink);
}
.landing ul a:hover { border-color: var(--brick); color: var(--brick-dark); }
