/* Sigubald Company — minimal static site
   Colours: ivory paper #faf8f4 · warm ink #21201d · brand blue #00378c · accent #f47136
   Type: STIX Two Text (SIL OFL), self-hosted — see assets/fonts/OFL.txt */

@font-face {
  font-family: "STIX Two Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/stixtwotext-roman.woff2") format("woff2");
}
@font-face {
  font-family: "STIX Two Text";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/stixtwotext-italic.woff2") format("woff2");
}

:root {
  --paper:  #faf8f4;
  --ink:    #21201d;
  --muted:  #8a857c;
  --hair:   #e9e7e2;
  --blue:   #00378c;
  --accent: #f47136;

  --serif: "STIX Two Text", Georgia, "Times New Roman", Times, serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --measure: 30ch;
  --pad:     clamp(1.5rem, 5vw, 3.5rem);
  --ease-settle: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--hair);
  transition: border-color .25s ease, color .25s ease;
}
a:hover { border-color: var(--accent); }

img { display: block; }

::selection { background: #dfe6f1; color: #14213d; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 1px;
}
a:focus:not(:focus-visible) { outline: none; }

/* ---------- Home ---------- */

.stage {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(2rem, 6vh, 3.5rem);
  padding: var(--pad);
}

.logo {
  width: min(280px, 64vw);
  height: auto;
  /* Letterpress deboss — mark pressed into the ivory stock (light from top) */
  filter:
    drop-shadow(0 0.6px 0.2px rgba(255, 255, 255, 0.7))
    drop-shadow(0 -0.6px 0.5px rgba(45, 33, 20, 0.16));
}

.logo--small { width: min(180px, 46vw); }

.statement {
  margin: 0;
  max-width: var(--measure);
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.3rem, 1rem + 1.5vw, 1.95rem);
  line-height: 1.32;
  letter-spacing: -0.006em;
  color: var(--ink);
  text-wrap: balance;
  /* Whisper of the same press on the type */
  text-shadow:
    0 0.6px 0 rgba(255, 255, 255, 0.6),
    0 -0.4px 0.3px rgba(45, 33, 20, 0.10);
}

/* Entrance — one slow composed settle, home only */
@keyframes settle {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.home .logo,
.home .statement,
.home .footer {
  animation: settle 900ms var(--ease-settle) both;
}
.home .statement { animation-delay: 180ms; }
.home .footer    { animation-delay: 340ms; }

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

.footer {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  padding: clamp(1.5rem, 4vh, 2.5rem) var(--pad);
  color: var(--muted);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.75rem;
  justify-content: center;
  align-items: center;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer a { border-bottom-color: transparent; }
.footer a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.footer a.mail { text-transform: none; letter-spacing: 0; }

.colophon {
  margin: 0;
  font-size: .66rem;
  letter-spacing: .02em;
  color: var(--muted);
  opacity: .75;
}
.colophon a { color: inherit; border-bottom-color: transparent; }
.colophon a:hover { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- Impressum ---------- */

.page { display: block; }

.masthead {
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: var(--pad);
  padding-bottom: 0;
}
.masthead a { border-bottom: 0; display: inline-block; }

.prose {
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 8vh, 5rem) var(--pad);
  font-family: var(--serif);
  font-variant-numeric: oldstyle-nums;
}

.prose h1 {
  margin: 0 0 2.5rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
  letter-spacing: .01em;
  color: var(--blue);
}

.prose h2 {
  margin: 2.5rem 0 .4rem;
  font-family: var(--serif);
  font-weight: 400;
  font-variant-caps: all-small-caps;
  font-size: .9rem;
  letter-spacing: .05em;
  text-transform: none;
  color: var(--muted);
}

.prose p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.prose a { color: var(--blue); border-bottom-color: var(--hair); }
.prose a:hover { border-bottom-color: var(--accent); }

/* ---------- Preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  a { border: 0; }
  .footer { color: var(--ink); }
  .logo { filter: none; }
  .statement { text-shadow: none; }
}
