/* Quadernii — minimal one-page site */

:root {
  --bg: #f7f5f0;
  --text: #22211f;
  --muted: #4e4a45;
  --soft: #6a6661;
  --max-width: 36rem;
}

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

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
}


.content {
  max-width: 680px;
  margin: 14vh auto 5rem auto;
  padding: 0 1.5rem;
}

.brand {
  margin: 0 0 1.75rem 0;
}

.logo {
  display: block;
  max-width: 22rem;
  width: 100%;
  height: auto;
}

.site-title {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 3rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.05em;
  color: var(--text);
}

.site-definition {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--soft);
  font-style: italic;
}

.site-subtitle {
  margin: 1.7rem 0 0;
  font-size: 1.08rem;
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.names {
  margin: 2rem 0 0;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}

.body-copy {
  margin-top: 2rem;
}

.body-copy p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--muted);
}

.body-copy p + p {
  margin-top: 0.85rem;
}

.lang-switch {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
}

.contact {
  margin-top: 2.2rem;
}

.contact a {
  font-weight: 500;
}

.contact p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.8;
  font-weight: 400;
  color: var(--text);
}

.contact p + p {
  margin-top: 0.1rem;
}

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

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease, color 160ms ease;
}

a:hover,
a:focus-visible {
  border-bottom-color: currentColor;
  outline: none;
}

@media (max-width: 900px) {
  .content {
    margin-left: 9vw;
    margin-top: 11vh;
  }

  .logo {
    max-width: 9.5rem;
  }
}

@media (max-width: 640px) {
  .content {
    width: auto;
    margin: 4.5rem 1.5rem 3rem;
  }

  .brand {
    margin-bottom: 0.75rem;
  }

  .logo {
    max-width: 8.5rem;
  }

  .site-subtitle {
    margin-top: 1.4rem;
    color: #5a5650;
  }

  .names,
  .body-copy,
  .contact {
    margin-top: 1.75rem;
    line-height: 1.7;
}
  }
}

@media (prefers-reduced-motion: reduce) {
  a {
    transition: none;
  }
}
