/* Farol Works — night-sea editorial. No JS, no trackers. */

:root {
  --ink: #0a1220;
  --ink-2: #0e1a2e;
  --ink-3: #14233c;
  --foam: #f2eee4;
  --foam-dim: #b9bdc4;
  --beam: #f0b441;
  --beam-soft: #f6cf7d;
  --teal: #2e7f7a;
  --hairline: rgba(242, 238, 228, 0.14);
  --max: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--foam);
  font-family: "Karla", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--beam); color: var(--ink); }

h1, h2, h3, .display {
  font-family: "Fraunces", serif;
  font-weight: 560;
  letter-spacing: -0.015em;
  line-height: 1.08;
}

a { color: var(--beam-soft); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */

header {
  position: relative;
  z-index: 3;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  color: var(--foam);
  letter-spacing: 0.01em;
}
.mark:hover { text-decoration: none; }

.mark svg { display: block; }

.nav-links { display: flex; gap: 28px; font-size: 0.92rem; }
.nav-links a { color: var(--foam-dim); }
.nav-links a:hover { color: var(--foam); text-decoration: none; }

/* ---------- hero with beam ---------- */

.hero {
  position: relative;
  padding: 96px 0 130px;
  overflow: clip;
}

/* the rotating lighthouse beam */
.hero::before {
  content: "";
  position: absolute;
  top: -340px;
  right: -180px;
  width: 980px;
  height: 980px;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(240, 180, 65, 0.10) 14deg,
    rgba(240, 180, 65, 0.22) 22deg,
    rgba(240, 180, 65, 0.10) 30deg,
    transparent 44deg,
    transparent 360deg
  );
  border-radius: 50%;
  animation: sweep 14s linear infinite;
  pointer-events: none;
}

/* the lamp glow at the beam's origin */
.hero::after {
  content: "";
  position: absolute;
  top: 130px;
  right: 290px;
  width: 18px;
  height: 18px;
  background: var(--beam);
  border-radius: 50%;
  box-shadow:
    0 0 18px 6px rgba(240, 180, 65, 0.55),
    0 0 80px 30px rgba(240, 180, 65, 0.18);
  animation: lamp 14s linear infinite;
  pointer-events: none;
}

@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes lamp {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
  .hero::after { animation: none; }
}

.hero .wrap { position: relative; z-index: 2; }

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--beam-soft);
  border: 1px solid rgba(240, 180, 65, 0.35);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 34px;
  animation: rise 0.7s ease both;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  max-width: 13ch;
  animation: rise 0.7s 0.08s ease both;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--beam-soft);
}

.hero p.lede {
  margin-top: 28px;
  max-width: 54ch;
  font-size: 1.13rem;
  color: var(--foam-dim);
  animation: rise 0.7s 0.16s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- sections ---------- */

section { padding: 84px 0; border-top: 1px solid var(--hairline); }

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 48px;
}

.sec-head .num {
  font-family: "Fraunces", serif;
  font-style: italic;
  color: var(--beam);
  font-size: 1rem;
}

.sec-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* product lines — staggered editorial rows */

.line {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px;
  padding: 38px 0;
  border-top: 1px dashed var(--hairline);
  align-items: start;
}
.line:first-of-type { border-top: none; padding-top: 0; }

.line h3 { font-size: 1.45rem; margin-bottom: 12px; }

.line p { color: var(--foam-dim); max-width: 52ch; }

.line .meta {
  justify-self: end;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.tag {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  color: var(--foam-dim);
}

.tag.soon {
  border-color: rgba(240, 180, 65, 0.4);
  color: var(--beam-soft);
}

.tag.lang { border-style: dashed; }

/* principles strip */

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

.principle {
  background: var(--ink-2);
  padding: 34px 28px;
}

.principle .glyph {
  font-family: "Fraunces", serif;
  font-style: italic;
  color: var(--beam);
  font-size: 1.5rem;
  display: block;
  margin-bottom: 14px;
}

.principle h3 { font-size: 1.08rem; margin-bottom: 10px; }
.principle p { font-size: 0.94rem; color: var(--foam-dim); }

/* contact */

.contact-card {
  background: linear-gradient(135deg, var(--ink-3), var(--ink-2) 60%);
  border: 1px solid var(--hairline);
  padding: 52px 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: center;
}

.contact-card h2 { font-size: clamp(1.5rem, 3vw, 2rem); max-width: 18ch; }

.contact-card .email {
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  color: var(--beam-soft);
  border-bottom: 1px solid rgba(240, 180, 65, 0.4);
  padding-bottom: 2px;
}
.contact-card .email:hover { text-decoration: none; border-color: var(--beam); }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--hairline);
  padding: 44px 0 56px;
  font-size: 0.88rem;
  color: var(--foam-dim);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 36px;
  justify-content: space-between;
  align-items: center;
}

.foot nav { display: flex; gap: 24px; }
.foot a { color: var(--foam-dim); }
.foot a:hover { color: var(--foam); }

/* ---------- legal pages ---------- */

.legal {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 24px 100px;
}

.legal h1 { font-size: 2.1rem; margin: 40px 0 8px; }
.legal .updated { color: var(--foam-dim); font-size: 0.88rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.25rem; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--foam-dim); margin-bottom: 12px; }
.legal ul { padding-left: 22px; }

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .hero { padding: 64px 0 90px; }
  .hero::before { right: -420px; }
  .hero::after { display: none; }
  .line { grid-template-columns: 1fr; gap: 16px; }
  .line .meta { justify-self: start; text-align: left; flex-direction: row; align-items: center; }
  .principles { grid-template-columns: 1fr; }
  .contact-card { padding: 36px 26px; }
  .nav-links { gap: 18px; }
}
