/* Design tokens */
:root {
  --bg:           #e8b890;
  --ink:          #2a1408;
  --ink-soft:     rgba(42, 20, 8, 0.7);
  --ink-line:     rgba(42, 20, 8, 0.3);
  --ink-grid:     rgba(42, 20, 8, 0.06);
  --grid-size:    18px;
  --ease-out-io:  cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Share Tech Mono', ui-monospace, monospace;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 40px 56px 0 56px;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right,  var(--ink-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--ink-grid) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  pointer-events: none;
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wordmark {
  margin: 0;
  font-family: 'Share Tech Mono', monospace;
  font-weight: 400;
  font-size: clamp(80px, 22vw, 280px);
  line-height: 0.82;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  text-align: center;
  color: var(--ink);
  user-select: none;
}

.wordmark .row2 {
  display: block;
  letter-spacing: 0.02em;
  -webkit-text-stroke: 2px var(--ink);
  color: transparent;
  margin-top: 6px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  margin-top: 8px;
  border-top: 1px solid var(--ink-line);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: var(--ink-soft);
}

footer .copy { white-space: nowrap; }

.rail {
  display: flex;
  gap: 18px;
  align-items: center;
}

.rail a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--ink-soft);
  text-decoration: none;
  transition:
    color 0.2s ease,
    transform 0.25s var(--ease-out-io);
}

.rail a svg {
  width: 15px;
  height: 15px;
  display: block;
  transition: transform 0.3s var(--ease-out-io);
}

.rail a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition:
    width 0.3s var(--ease-out-io),
    left  0.3s var(--ease-out-io);
}

.rail a:hover              { color: var(--ink); transform: translateY(-1px); }
.rail a:hover svg          { transform: scale(1.1); }
.rail a:hover::after       { width: 100%; left: 0; }
