@font-face {
  font-family: "Sintesi Semi";
  src: url("../fonts/SintesiSemi.otf") format("opentype");
}
@font-face {
  font-family: "Sintesi Semi";
  src: url("../fonts/SintesiSemi-Bold.otf") format("opentype");
  font-weight: 700;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #141414;
  --bg-elevated: #1c1c1c;
  --fg: #e5e5e3;
  --fg-muted: #c8c8c6;
  --fg-dim: #999;
  --border: #2a2a2a;
  --display: "Sintesi Semi", Arial, sans-serif;
  --body: "Open Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--body);
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}
a {
  color: var(--fg);
  text-decoration: none;
  transition: color 0.2s ease;
}

/* sub-page header */
header {
  padding: 24px 40px;
  border-bottom: 1px solid var(--border);
}
.brand,
.logo-text {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.brand {
  font-size: 1.75rem;
}
.brand:hover {
  color: #fff;
}

/* sub-page content */
main {
  flex-grow: 1;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}
main h1,
main h2,
main h3 {
  font-weight: 600;
}
main h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}
main h2 {
  font-size: 1.4rem;
  margin: 36px 0 12px;
}
main h3 {
  font-size: 1.1rem;
  margin: 24px 0 8px;
  color: #d0d0ce;
}
main p,
main address,
main ul,
main ol {
  margin-bottom: 14px;
  color: var(--fg-muted);
  font-size: 0.95rem;
}
main address {
  font-style: normal;
}
main ul,
main ol {
  padding-left: 24px;
}
main li {
  margin-bottom: 6px;
}
main a {
  text-decoration: underline;
  text-decoration-color: #555;
  transition: text-decoration-color 0.2s ease;
}
main a:hover {
  text-decoration-color: var(--fg);
}
main strong {
  font-weight: 600;
}

/* footer */
footer {
  position: relative;
  width: 100%;
  padding: 12px 0;
  text-align: center;
  font-size: 13px;
  background-color: var(--bg-elevated);
  z-index: 2;
}
footer a {
  margin: 0 10px;
}
footer a:hover {
  color: var(--fg-dim);
  text-decoration: underline;
}

/* landing page (index.html) */
.hex-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}
.hex-bg::before,
.hex-bg::after {
  content: "";
  position: absolute;
  inset: 0;
}
.hex-bg::before {
  background: url("../img/background.jpg") center / cover no-repeat;
}
.hex-bg::after {
  background:
    radial-gradient(ellipse at center, transparent 0%, rgba(20, 20, 20, 0.55) 80%),
    linear-gradient(
      to bottom,
      rgba(20, 20, 20, 0.45) 0%,
      rgba(20, 20, 20, 0.25) 40%,
      var(--bg) 100%
    );
}
.container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  z-index: 2;
  animation: fade-in 0.8s ease-out;
}
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.logo-text {
  font-size: clamp(3.5rem, 10vw, 6rem);
  line-height: 1;
}
.tagline {
  margin-top: 4px;
  font-size: clamp(14px, 2.5vw, 16px);
  letter-spacing: 0.12em;
  color: var(--fg-dim);
}
.button {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 28px;
  font-size: 15px;
  letter-spacing: 0.06em;
  background-color: var(--fg);
  color: var(--bg);
  border-radius: 5px;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}
.button:hover {
  background-color: #ccc;
  transform: translateY(-1px);
}
.button-corner {
  position: absolute;
  top: 24px;
  right: 24px;
  margin-top: 0;
  z-index: 3;
}
