/* logic.red — stylesheet */

@font-face {
  font-family: "Silkscreen";
  src: url("./fonts/Silkscreen-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pixelify Sans";
  src: url("./fonts/PixelifySans.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #fff;
  --foreground: #000;
  --muted: #777;
  --rule: #dedede;
  --accent: #ff0000;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--background);
}

body {
  color: var(--foreground);
  font-family: "Pixelify Sans", monospace;
}

.page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0 24px;
  text-align: center;
}

main {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  flex: 1;
}

.brand {
  padding-top: clamp(96px, 20svh, 200px);
}

h1 {
  margin: 0;
  font-family: "Silkscreen", monospace;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 1px;
  white-space: nowrap;
}

.blink-dot {
  color: var(--accent);
  animation: blink 1.2s step-end infinite;
}

.philosophy,
.business,
.definition,
.cases,
.contact {
  margin: 48px auto 0;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}

.philosophy {
  margin-top: 64px;
}

.contact {
  border-bottom: 1px solid var(--rule);
}

h2 {
  margin: 0 auto;
  width: fit-content;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

.statement {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

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

.line-list li {
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

address {
  font-style: normal;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 16px;
  padding-bottom: 20px;
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 5px;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid #000;
  outline-offset: 6px;
}

footer {
  padding: 24px 0 28px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.lang {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 10px;
}

.lang-current {
  color: var(--foreground);
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@media (max-width: 480px) {
  .philosophy {
    margin-top: 48px;
  }

  .line-list li {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blink-dot {
    animation: none;
  }
}