/* ---------- Fonts ---------- */
@font-face {
  font-family: "GT America";
  src: url("../fonts/GT-America-Standard-Regular.woff2") format("woff2"),
       url("../fonts/GT-America-Standard-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GT America Mono";
  src: url("../fonts/GT-America-Mono-Regular.woff2") format("woff2"),
       url("../fonts/GT-America-Mono-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --page-bg: #fff;
  --ink: #292929;
  --logo-ink: #141414;
  --font-sans: "GT America", sans-serif;
  --font-mono: "GT America Mono", monospace;
  color-scheme: light dark;
}

/* Dark mode: exact inverse of the light palette */
@media (prefers-color-scheme: dark) {
  :root {
    --page-bg: #000;
    --ink: #d6d6d6;
    --logo-ink: #ebebeb;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--page-bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4em;
  font-feature-settings: "ss01", "ss03";
}

p {
  margin: 0 0 10px;
}

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px dotted var(--ink);
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- Logo mark ---------- */
.logo-mask {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0 270px;
  overflow: hidden;
  transform: rotate(-45deg);
}

.centering {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  transform: rotate(45deg);
}

.lines {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 82%;
  height: 82%;
  border-radius: 100%;
  overflow: hidden;
  transform: rotate(45deg);
  animation: spin 120s linear infinite;
}

.line {
  position: absolute;
  width: 4%;
  height: 150%;
  background-color: var(--logo-ink);
}
.line:nth-child(2) { transform: rotate(20deg); }
.line:nth-child(3) { transform: rotate(40deg); }
.line:nth-child(4) { transform: rotate(60deg); }
.line:nth-child(5) { transform: rotate(80deg); }
.line:nth-child(6) { transform: rotate(100deg); }
.line:nth-child(7) { transform: rotate(120deg); }
.line:nth-child(8) { transform: rotate(140deg); }
.line:nth-child(9) { transform: rotate(160deg); }

.inner {
  position: absolute;
  width: 40%;
  height: 40%;
  border-radius: 100%;
  background-color: var(--page-bg);
}

/* ---------- Home ---------- */
.section {
  padding-block: 8vw;
}

.container {
  max-width: 85%;
  margin-inline: auto;
}

.layout-grid {
  display: grid;
  grid-template-columns: 1fr 0.5fr 1fr 1fr;
  grid-auto-columns: 1fr;
  gap: 8vw 4vw;
  animation: fade-in 750ms ease-out both;
}

.col-label { grid-column: 2; }
.col-3 { grid-column: 3; }
.col-4 { grid-column: 4; }
.col-wide { grid-column: 3 / 5; }
.col-first { grid-column: 1; }
.col-footer { grid-column: 2 / 5; }

.branding-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: -0.5em;
  font-size: 24px;
}

.branding-text {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.paragraph-large {
  font-size: 1.5em;
  line-height: 1.4em;
  margin-bottom: calc(1.4em + 10px);
}

.text-meta {
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ---------- Animation ---------- */
@keyframes spin {
  from { transform: rotate(45deg); }
  to { transform: rotate(405deg); }
}

@keyframes fade-in {
  from { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .lines,
  .layout-grid {
    animation: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .branding-wrap {
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  .layout-grid {
    grid-template-columns: 1fr 1fr;
  }
  .layout-grid > * {
    grid-column: 1 / -1;
  }
  .layout-grid > .col-3,
  .layout-grid > .col-4 {
    grid-column: auto;
  }
}
