/*
 * Lone Figure: components
 * Built only from tokens.css. Load tokens.css first.
 */

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

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

body {
  margin: 0;
  background: var(--lf-ground);
  color: var(--lf-ash);
  font-family: var(--lf-body);
  font-size: var(--lf-text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- Layout ---------- */
.lf-column { width: 100%; max-width: var(--lf-column); margin: 0 auto; padding: 0 var(--lf-gutter); }
.lf-reading { width: 100%; max-width: var(--lf-reading); margin: 0 auto; padding: 0 var(--lf-gutter); }
.lf-section { padding: var(--lf-space-7) 0; }
.lf-section--tight { padding: var(--lf-space-5) 0; }
.lf-stack > * + * { margin-top: var(--lf-gap); }
.lf-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--lf-gap); }
.lf-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--lf-gap); }
@media (max-width: 720px) {
  .lf-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .lf-grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Type ---------- */
.lf-h1, .lf-h2, .lf-h3, .lf-h4 {
  font-family: var(--lf-display);
  color: var(--lf-bone);
  text-transform: uppercase;
  letter-spacing: var(--lf-track-caps);
  line-height: 1.05;
  margin: 0;
}
.lf-h1 { font-size: var(--lf-text-h1); font-weight: 500; }
.lf-h2 { font-size: var(--lf-text-h2); font-weight: 400; }
.lf-h3 { font-size: var(--lf-text-h3); font-weight: 400; }
.lf-h4 { font-size: var(--lf-text-h4); font-weight: 500; }
.lf-intro {
  font-family: var(--lf-display);
  font-weight: 300;
  font-size: var(--lf-text-sm);
  line-height: 1.7;
  color: var(--lf-ash);
  margin: 0;
}
.lf-lead { font-size: var(--lf-text-lead); color: var(--lf-ash); margin: 0; }
.lf-label {
  font-family: var(--lf-display);
  font-size: var(--lf-text-xs);
  font-weight: 500;
  letter-spacing: var(--lf-track-label);
  text-transform: uppercase;
  color: var(--lf-dust);
}
.lf-red { color: var(--lf-blood-hi); }
.lf-bone { color: var(--lf-bone); }
.lf-small { font-size: var(--lf-text-sm); color: var(--lf-dust); }

/* ---------- Top bar ---------- */
.lf-bar { background: var(--lf-bar); height: var(--lf-bar-height); }
.lf-bar__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--lf-space-4); }
.lf-nav { display: flex; gap: var(--lf-space-4); overflow-x: auto; scrollbar-width: none; }
.lf-nav a {
  font-family: var(--lf-display);
  font-weight: 300;
  font-size: var(--lf-text-sm);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--lf-ash);
  white-space: nowrap;
  transition: color .2s var(--lf-ease);
}
.lf-nav a:hover, .lf-nav a[aria-current="page"] { color: var(--lf-bone); }
.lf-nav a.lf-brand { font-weight: 500; color: var(--lf-bone); }
.lf-icons { display: flex; gap: var(--lf-space-2); flex-shrink: 0; }
.lf-icon {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  background: var(--lf-dust);
  color: var(--lf-bar);
  font-family: var(--lf-display);
  font-size: 11px; font-weight: 700;
  text-decoration: none;
  border-radius: var(--lf-radius);
}
.lf-icon:hover { background: var(--lf-bone); }
@media (max-width: 520px) { .lf-icons { display: none; } }

/* ---------- Buttons ---------- */
.lf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--lf-space-2);
  height: 36px; padding: 0 var(--lf-space-5);
  font-family: var(--lf-display);
  font-size: var(--lf-text-sm);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--lf-track-caps);
  text-decoration: none;
  white-space: nowrap;
  border: 0; border-radius: var(--lf-radius);
  cursor: pointer;
  background: var(--lf-bar);
  color: var(--lf-ash);
  transition: color .2s var(--lf-ease), background .2s var(--lf-ease);
}
.lf-btn:hover { color: var(--lf-bone); }
.lf-btn--bone { background: var(--lf-bone); color: var(--lf-bar); }
.lf-btn--bone:hover { background: #FFFFFF; color: var(--lf-bar); }
.lf-btn--red { background: var(--lf-blood); color: var(--lf-bone); }
.lf-btn--red:hover { background: var(--lf-blood-hi); }
.lf-btn--line { background: transparent; box-shadow: inset 0 0 0 1px var(--lf-line); }
.lf-btn--block { width: 100%; }
.lf-link {
  font-family: var(--lf-display);
  text-transform: uppercase;
  font-size: var(--lf-text-sm);
  color: var(--lf-bone);
  text-decoration: none;
  border-bottom: 1px solid var(--lf-dust);
  white-space: nowrap;
}
.lf-link:hover { border-color: var(--lf-bone); }

/* ---------- Scene tile (the signature) ---------- */
/* A square-cornered frame of bright monochrome fog: sky, low sun, ridges and one tiny figure. */
.lf-scene {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 8.6;
  background: var(--lf-sky);
  color: var(--lf-bone);
  text-decoration: none;
  isolation: isolate;
}
.lf-scene--dim { background: var(--lf-sky-dim); }
.lf-scene--white { background: var(--lf-sky-white); }
.lf-scene--tall { aspect-ratio: 3 / 4; }
.lf-scene--wide { aspect-ratio: 16 / 6; }
.lf-scene__sun {
  position: absolute;
  width: 46%; aspect-ratio: 1;
  left: 27%; top: 6%;
  background: var(--lf-sun);
  z-index: -1;
}
.lf-scene__land { position: absolute; inset: auto 0 0 0; width: 100%; height: 100%; }
.lf-scene__land .far { fill: var(--lf-fog-lo); opacity: .55; }
.lf-scene__land .mid { fill: var(--lf-ridge); }
.lf-scene__land .near { fill: var(--lf-ridge-near); }
.lf-scene__land .figure { fill: var(--lf-void); }
.lf-scene__land .mist { fill: var(--lf-fog-hi); opacity: .4; filter: blur(14px); }
.lf-scene__caption {
  position: absolute; right: var(--lf-space-5); bottom: var(--lf-space-5);
  font-family: var(--lf-display);
  font-weight: 400;
  font-size: clamp(15px, 2.2vw, 22px);
  text-transform: uppercase;
  color: var(--lf-ash);
  transition: color .3s var(--lf-ease);
}
.lf-scene:hover .lf-scene__caption { color: var(--lf-bone); }

/* ---------- Poster tile ---------- */
/* A scene on top, a black band below with one heavy block title. */
.lf-poster { display: flex; flex-direction: column; background: var(--lf-void); text-decoration: none; }
.lf-poster .lf-scene { aspect-ratio: 4 / 3; }
.lf-poster__title {
  padding: var(--lf-space-5) var(--lf-space-4) var(--lf-space-6);
  font-family: var(--lf-display);
  font-weight: 700;
  font-size: var(--lf-text-poster);
  line-height: .9;
  text-transform: uppercase;
  text-align: center;
  color: var(--lf-bone);
  letter-spacing: .01em;
}
.lf-poster__title--red { color: var(--lf-blood); }
.lf-poster__meta { padding: 0 var(--lf-space-4) var(--lf-space-5); text-align: center; }

/* ---------- Badges ---------- */
.lf-badge {
  display: inline-block;
  padding: 2px var(--lf-space-2);
  font-family: var(--lf-display);
  font-size: var(--lf-text-xs);
  font-weight: 500;
  letter-spacing: var(--lf-track-label);
  text-transform: uppercase;
  background: var(--lf-panel-2);
  color: var(--lf-ash);
  white-space: nowrap;
}
.lf-badge--red { background: var(--lf-blood); color: var(--lf-bone); }
.lf-badge--bone { background: var(--lf-bone); color: var(--lf-bar); }

/* ---------- Cards and lists ---------- */
.lf-card { background: var(--lf-panel); padding: var(--lf-space-5); }
.lf-card--void { background: var(--lf-void); }
.lf-rows { border-top: var(--lf-border); }
.lf-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: var(--lf-space-4);
  align-items: baseline;
  padding: var(--lf-space-3) 0;
  border-bottom: var(--lf-border);
}
.lf-row__date { font-family: var(--lf-display); font-weight: 300; text-transform: uppercase; color: var(--lf-dust); font-size: var(--lf-text-sm); }
.lf-row__name { font-family: var(--lf-display); text-transform: uppercase; color: var(--lf-bone); }
@media (max-width: 520px) {
  .lf-row { grid-template-columns: 1fr auto; }
  .lf-row__date { grid-column: 1 / -1; }
}

/* ---------- Forms ---------- */
.lf-field { display: block; }
.lf-field + .lf-field { margin-top: var(--lf-space-4); }
.lf-field__label {
  display: block; margin-bottom: var(--lf-space-1);
  font-family: var(--lf-display); font-weight: 500; font-size: var(--lf-text-sm);
  color: var(--lf-ash);
}
.lf-input, .lf-select, .lf-textarea {
  width: 100%;
  height: 36px;
  padding: 0 var(--lf-space-3);
  background: var(--lf-panel-2);
  border: 0; border-radius: var(--lf-radius);
  color: var(--lf-bone);
  font-family: var(--lf-display); font-weight: 300; font-size: var(--lf-text-sm);
  outline: none;
}
.lf-textarea { height: auto; min-height: 96px; padding: var(--lf-space-2) var(--lf-space-3); resize: vertical; }
.lf-input::placeholder, .lf-textarea::placeholder { color: var(--lf-dust); }
.lf-input:focus, .lf-select:focus, .lf-textarea:focus { box-shadow: inset 0 -2px 0 var(--lf-bone); }
.lf-check { display: flex; gap: var(--lf-space-2); align-items: flex-start; font-size: var(--lf-text-sm); }
.lf-check input { accent-color: var(--lf-blood); margin-top: 4px; }
.lf-joined { display: flex; }
.lf-joined .lf-input { flex: 1; min-width: 0; }
.lf-hint { font-size: var(--lf-text-xs); color: var(--lf-dust); margin-top: var(--lf-space-1); }

/* ---------- Pricing ---------- */
.lf-plan { display: flex; flex-direction: column; background: var(--lf-panel); }
.lf-plan .lf-scene { aspect-ratio: 16 / 7; }
.lf-plan__body { padding: var(--lf-space-5); display: flex; flex-direction: column; gap: var(--lf-space-3); flex: 1; }
.lf-plan__price { font-family: var(--lf-display); font-weight: 600; font-size: 44px; line-height: 1; color: var(--lf-bone); }
.lf-plan__price small { font-size: var(--lf-text-sm); font-weight: 300; color: var(--lf-dust); text-transform: uppercase; }
.lf-plan__list { list-style: none; margin: 0; padding: 0; font-size: var(--lf-text-sm); flex: 1; }
.lf-plan__list li { padding: var(--lf-space-2) 0; border-top: var(--lf-border); }
.lf-plan--marked { background: var(--lf-void); box-shadow: inset 0 3px 0 var(--lf-blood); }
.lf-table { width: 100%; border-collapse: collapse; font-size: var(--lf-text-sm); }
.lf-table th, .lf-table td { text-align: left; padding: var(--lf-space-3) var(--lf-space-2); border-bottom: var(--lf-border); }
.lf-table th { font-family: var(--lf-display); font-weight: 400; text-transform: uppercase; color: var(--lf-bone); }
.lf-table td:not(:first-child), .lf-table th:not(:first-child) { text-align: center; }
.lf-table-wrap { overflow-x: auto; }
.lf-faq details { border-bottom: var(--lf-border); padding: var(--lf-space-3) 0; }
.lf-faq summary { cursor: pointer; font-family: var(--lf-display); text-transform: uppercase; color: var(--lf-bone); list-style: none; }
.lf-faq summary::-webkit-details-marker { display: none; }
.lf-faq summary::before { content: "+ "; color: var(--lf-dust); }
.lf-faq details[open] summary::before { content: "- "; }
.lf-faq p { margin: var(--lf-space-2) 0 0; font-size: var(--lf-text-sm); }

/* ---------- Article ---------- */
.lf-article { color: var(--lf-ash); font-size: var(--lf-text-lead); line-height: 1.7; }
.lf-article p { margin: 0 0 var(--lf-space-5); }
.lf-article h2 {
  font-family: var(--lf-display); font-weight: 400; text-transform: uppercase;
  color: var(--lf-bone); font-size: var(--lf-text-h3); line-height: 1.1;
  margin: var(--lf-space-7) 0 var(--lf-space-4);
}
.lf-article blockquote {
  margin: var(--lf-space-6) 0;
  padding: 0 0 0 var(--lf-space-5);
  border-left: 3px solid var(--lf-blood);
  font-family: var(--lf-display); font-weight: 300; font-size: var(--lf-text-h3); line-height: 1.25;
  text-transform: uppercase; color: var(--lf-bone);
}
.lf-article figure { margin: var(--lf-space-6) 0; }
.lf-article figcaption { margin-top: var(--lf-space-2); font-size: var(--lf-text-xs); color: var(--lf-dust); font-family: var(--lf-display); text-transform: uppercase; letter-spacing: var(--lf-track-label); }
.lf-article a { color: var(--lf-bone); text-decoration-color: var(--lf-blood); text-underline-offset: 3px; }
.lf-article ul { padding-left: var(--lf-space-5); margin: 0 0 var(--lf-space-5); }
.lf-byline { display: flex; align-items: center; gap: var(--lf-space-3); }
.lf-avatar {
  width: 36px; height: 36px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--lf-panel-2); color: var(--lf-bone);
  font-family: var(--lf-display); font-size: var(--lf-text-sm);
}

/* ---------- Footer ---------- */
.lf-footer { padding: var(--lf-space-6) 0 var(--lf-space-8); font-family: var(--lf-display); font-size: var(--lf-text-xs); line-height: 1.6; color: var(--lf-dust); }
.lf-footer a { color: var(--lf-ash); text-decoration: none; }
.lf-footer a:hover { color: var(--lf-bone); }
.lf-subscribe__title { font-family: var(--lf-display); font-weight: 600; font-size: var(--lf-text-sm); color: var(--lf-ash); margin: 0 0 var(--lf-space-2); }

/* A label directly above a heading */
.lf-label + .lf-h1, .lf-label + .lf-h2, .lf-label + .lf-h3, .lf-label + .lf-h4 { display: block; margin-top: var(--lf-space-2); }
a.lf-card { display: block; text-decoration: none; transition: background .2s var(--lf-ease); }
a.lf-card:hover { background: var(--lf-panel-2); }
