/* ============================================================
   eyalmesch.com — type-specimen / engineering-dossier placeholder
   Bone paper · ink · vermilion. Fraunces + Space Mono.
   ============================================================ */

:root {
  --paper:   #efe8da;   /* warm bone */
  --paper-2: #e7dfcd;
  --ink:     #181410;   /* near-black, warm */
  --ink-soft:#5a5045;
  --accent:  #e2451f;   /* vermilion */
  --line:    rgba(24, 20, 16, 0.16);
  --line-2:  rgba(24, 20, 16, 0.07);

  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;

  --pad: clamp(1.1rem, 4vw, 3.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:   #14110d;
    --paper-2: #1b1712;
    --ink:     #efe7d7;
    --ink-soft:#9b9182;
    --line:    rgba(239, 231, 215, 0.18);
    --line-2:  rgba(239, 231, 215, 0.07);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  min-height: 100vh;
  background-color: var(--paper);
  /* faint blueprint baseline grid */
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 100% 2.5rem, 2.5rem 100%;
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- crop marks ---------- */
.crop {
  position: fixed;
  width: 14px;
  height: 14px;
  z-index: 50;
  pointer-events: none;
}
.crop::before, .crop::after {
  content: "";
  position: absolute;
  background: var(--accent);
}
.crop::before { width: 100%; height: 1.5px; top: 0; }
.crop::after  { width: 1.5px; height: 100%; left: 0; }
.crop.tl { top: 14px; left: 14px; }
.crop.tr { top: 14px; right: 14px; transform: scaleX(-1); }
.crop.bl { bottom: 14px; left: 14px; transform: scaleY(-1); }
.crop.br { bottom: 14px; right: 14px; transform: scale(-1); }

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: clamp(1.4rem, 3vw, 2.2rem) var(--pad) 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.topbar__status { display: inline-flex; align-items: center; gap: 0.5em; color: var(--ink); }
.topbar__clock { font-variant-numeric: tabular-nums; }
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(226,69,31,0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(226,69,31,0); }
  100% { box-shadow: 0 0 0 0 rgba(226,69,31,0); }
}

/* ---------- stage ---------- */
.stage {
  flex: 1;
  position: relative;
  padding: clamp(2.5rem, 7vw, 6rem) var(--pad) clamp(2rem, 5vw, 4rem);
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

/* ghost word */
.ghost {
  position: absolute;
  top: clamp(3rem, 8vw, 7rem);
  right: -0.06em;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(9rem, 34vw, 30rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line);
  text-stroke: 1.5px var(--line);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ---------- hero ---------- */
.hero { position: relative; z-index: 1; max-width: 56rem; }

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  color: var(--accent);
  margin-bottom: clamp(1.2rem, 3vw, 2rem);
}

.name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.5rem, 15vw, 11rem);
  line-height: 0.86;
  letter-spacing: -0.035em;
}
.name__line { display: block; }
.name__line:last-child {
  font-weight: 900;
  font-style: italic;
  margin-left: clamp(0.5rem, 4vw, 3.5rem);
}
.period { color: var(--accent); -webkit-text-fill-color: var(--accent); }

.lede {
  margin-top: clamp(1.6rem, 4vw, 2.6rem);
  max-width: 34rem;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.7;
  color: var(--ink-soft);
}
.lede em { color: var(--ink); font-style: italic; }

/* ---------- grid ---------- */
.grid {
  position: relative;
  z-index: 1;
  margin-top: clamp(3.5rem, 9vw, 7rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  border-top: 1.5px solid var(--ink);
  padding-top: clamp(1.5rem, 3vw, 2.4rem);
}
@media (max-width: 720px) { .grid { grid-template-columns: 1fr; } }

.col__title {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: baseline;
  gap: 0.7em;
}
.num {
  color: var(--accent);
  font-size: 0.7rem;
}

/* manifest list with leader dots */
.manifest { list-style: none; }
.manifest li {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line-2);
}
.manifest__name {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.manifest li::before {
  content: "";
  flex: 1;
  align-self: flex-end;
  margin-bottom: 0.28em;
  border-bottom: 1.5px dotted var(--line);
}
.manifest__tag {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 0.18em 0.55em;
  border-radius: 100px;
  white-space: nowrap;
}

/* ship card */
.ship {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
  padding: clamp(1.3rem, 3vw, 2rem);
  position: relative;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s;
  box-shadow: 0 0 0 rgba(24,20,16,0);
}
.ship:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--accent);
}
.ship__meta {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.ship__name {
  font-family: var(--serif);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.ship__desc { color: var(--ink-soft); max-width: 26rem; }
.ship__url {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.arrow { transition: transform 0.3s cubic-bezier(.2,.8,.2,1); display: inline-block; }
.ship:hover .arrow { transform: translateX(5px); }

/* ---------- footer ---------- */
.footer { border-top: 1.5px solid var(--ink); margin-top: auto; }
.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
}
.ticker__track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  padding: 0.7rem 0;
  text-transform: uppercase;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem var(--pad);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.footer__row a {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  gap: 0.4em;
  align-items: center;
}
.footer__row a:hover { color: var(--accent); }
.footer__row a:hover .arrow { transform: translateX(5px); }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .ticker__track { animation: none; }
  .dot { animation: none; }
}
