/* Kosche Consulting — koscheconsulting.com
   Fonts are served from this webspace (assets/fonts). No external requests. */

@font-face {
  font-family: "Libre Caslon Display";
  src: url("../fonts/libre-caslon-display-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Text";
  src: url("../fonts/libre-caslon-text-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Text";
  src: url("../fonts/libre-caslon-text-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* blue */
  --ink: #15212d;          /* deep slate blue, dark grounds */
  --ink-raised: #1c2b3a;
  --blue: #27425b;         /* headings on light grounds */
  --steel: #5b7892;        /* secondary blue */
  /* grey */
  --graphite: #3a4047;     /* body text */
  --grey: #7d848c;
  --line: #d3d8dd;
  --mist: #e9ecef;
  --paper: #f5f6f7;
  /* copper */
  --copper: #b87333;
  --copper-deep: #9a5d27;
  --copper-light: #d8a273;

  --display: "Libre Caslon Display", "Libre Caslon Text", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --serif: "Libre Caslon Text", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --page: min(100% - 3rem, 76rem);
  --space-section: clamp(4.5rem, 10vw, 8.5rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, address { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }
a:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 4px;
  border-radius: 2px;
}
.on-dark a:focus-visible { outline-color: var(--copper-light); }

.wrap { width: var(--page); margin-inline: auto; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--paper);
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip:focus { top: 1rem; }

/* ---------- Masthead ---------- */

.on-dark {
  background: var(--ink);
  color: #dfe5ea;
}

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
  padding-block: 1.75rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: #fff;
  text-decoration: none;
}
.wordmark span { color: var(--copper-light); }

.nav { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); }
.nav a {
  font-size: 0.9375rem;
  color: #c3ccd4;
  text-decoration: none;
  padding-block: 0.25rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav a:hover { color: #fff; border-bottom-color: var(--copper-light); }

/* ---------- Opening ---------- */

.opening {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4rem, 9vw, 7.5rem);
}

.opening h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.6vw, 4.75rem);
  line-height: 1.06;
  letter-spacing: -0.012em;
  color: #fff;
  max-width: 13em;
  text-wrap: balance;
}

.opening .lede {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 34em;
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  color: #c3ccd4;
}

.opening .write {
  display: inline-block;
  margin-top: clamp(2rem, 4vw, 3rem);
  font-family: var(--serif);
  font-size: 1.125rem;
  color: var(--copper-light);
  text-decoration: none;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--copper);
  transition: color 0.2s, border-color 0.2s;
}
.opening .write:hover { color: #fff; border-bottom-color: #fff; }

.crest {
  justify-self: end;
  width: min(100%, 27rem);
}
.crest img {
  width: 100%;
  animation: engrave 1.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s 1 both;
}

@keyframes engrave {
  from { opacity: 0; clip-path: inset(0 0 100% 0); }
  to   { opacity: 1; clip-path: inset(0 0 0 0); }
}

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

.section { padding-block: var(--space-section); }
.section--mist { background: var(--mist); }

.section h2,
.contact h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.008em;
  color: var(--blue);
}

.section .intro,
.contact .intro {
  margin-top: 1.25rem;
  max-width: 38em;
  font-size: 1.125rem;
}

/* Mandates: three seats */

.seats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}

.seat {
  border-top: 2px solid var(--copper);
  padding-top: 1.25rem;
}

.seat h3 {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--steel);
}

.mandate { margin-top: 2rem; }
.mandate + .mandate {
  margin-top: 2.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}

.mandate h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.375rem, 2vw, 1.625rem);
  line-height: 1.2;
  color: var(--blue);
}
.mandate h4 small {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--copper-deep);
}
.mandate p {
  margin-top: 0.85rem;
  max-width: 30em;
  font-size: 1rem;
}

/* Profile */

.profile {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
}
.profile .text p {
  max-width: 34em;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.5;
  color: var(--blue);
}
.profile .text p + p {
  margin-top: 1.25rem;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--graphite);
}

/* Contact */

.contact { padding-block: var(--space-section) clamp(3rem, 6vw, 4.5rem); }
.contact h2 { color: #fff; }
.contact .intro { color: #c3ccd4; }

.mail {
  display: inline-block;
  margin-top: clamp(2rem, 4vw, 3rem);
  font-family: var(--display);
  font-size: clamp(1.0625rem, 5.6vw, 2.75rem);
  line-height: 1.2;
  color: var(--copper-light);
  text-decoration: none;
  overflow-wrap: anywhere;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--copper);
  transition: color 0.2s, border-color 0.2s;
}
.mail:hover { color: #fff; border-bottom-color: #fff; }

.contact address {
  margin-top: 1.75rem;
  color: #aab5bf;
  font-size: 1rem;
}

.colophon {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: clamp(4rem, 9vw, 7rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(223, 229, 234, 0.16);
  font-size: 0.9375rem;
  color: #97a3ae;
}
.colophon ul { display: flex; gap: 1.75rem; }
.colophon a {
  color: #c3ccd4;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.colophon a:hover { color: #fff; border-bottom-color: var(--copper-light); }

/* ---------- Legal pages ---------- */

.legal-head { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.legal-head h1 {
  margin-top: clamp(1.5rem, 4vw, 3rem);
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.08;
  color: #fff;
}
.legal-head .langs {
  margin-top: 1.25rem;
  display: flex;
  gap: 1.75rem;
  font-size: 0.9375rem;
}
.legal-head .langs a {
  color: var(--copper-light);
  text-decoration: none;
  border-bottom: 1px solid var(--copper);
  padding-bottom: 0.15rem;
}
.legal-head .langs a:hover { color: #fff; border-bottom-color: #fff; }

.legal { padding-block: clamp(3rem, 7vw, 5.5rem); }
.legal section + section {
  margin-top: clamp(3.5rem, 8vw, 6rem);
  padding-top: clamp(3rem, 7vw, 5rem);
  border-top: 2px solid var(--copper);
}
.legal h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
  color: var(--blue);
}
.legal h3 {
  margin-top: 2.5rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--blue);
}
.legal p, .legal address, .legal ul { margin-top: 0.9rem; max-width: 42em; }
.legal ul { list-style: disc; padding-left: 1.25rem; }
.legal li + li { margin-top: 0.35rem; }
.legal a {
  color: var(--blue);
  text-decoration-color: var(--copper);
  text-underline-offset: 0.2em;
}
.legal a:hover { color: var(--copper-deep); }
.legal .note { color: var(--grey); font-size: 0.9375rem; }

.legal-foot { padding-block: 0 2.5rem; }
.legal-foot .colophon { margin-top: 0; }

/* ---------- Smaller screens ---------- */

@media (max-width: 56rem) {
  .opening { grid-template-columns: 1fr; }
  .crest { justify-self: start; width: min(72%, 20rem); order: -1; }
  .seats { grid-template-columns: 1fr; gap: 3.5rem; }
  .profile { grid-template-columns: 1fr; }
}

@media (max-width: 30rem) {
  :root { --page: min(100% - 2.5rem, 76rem); }
  .masthead { padding-block: 1.25rem; }
  .nav { gap: 1.25rem; }
}

/* ---------- Reduced motion / print ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .on-dark { background: #fff; color: #000; }
  .wordmark, .opening h1, .contact h2, .legal-head h1 { color: #000; }
  .nav, .skip { display: none; }
}
