/*
 * LYNKS Design System
 * One shared visual language for the homepage, WordPress pages, forms and search.
 */
:root {
  color-scheme: light;
  --lynks-ink: #171717;
  --lynks-muted: #686868;
  --lynks-paper: #ffffff;
  --lynks-surface: #ffffff;
  --lynks-accent: #d9ff45;
  --lynks-accent-ink: #171717;
  --lynks-line: #e8e8e8;
  --lynks-input-border: #d8d8d8;
  --lynks-radius: 7px;
  --lynks-radius-small: 6px;
  --lynks-content-width: 680px;
  --lynks-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--lynks-font);
}
*,
*::before,
*::after { box-sizing: border-box; }
html { min-height: 100%; background: var(--lynks-paper); }
body {
  margin: 0; min-height: 100vh; color: var(--lynks-ink);
  background: var(--lynks-paper); font-family: var(--lynks-font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body, button, input, select, textarea { font-family: var(--lynks-font); }
a { color: inherit; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button, input[type="submit"], input[type="button"] { cursor: pointer; }
:focus-visible { outline: 3px solid #8aa900; outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 1rem; z-index: 1000; padding: .75rem 1rem; background: var(--lynks-accent); color: var(--lynks-ink); }
.skip-link:focus { left: 1rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.lynks-home { min-height: calc(100svh - 58px); display: grid; place-items: center; padding: 72px 24px 80px; }
.lynks-home__main { width: min(100%, 650px); text-align: center; }
.lynks-home__wordmark, .lynks-page__brand, .lynks-wordmark {
  display: inline-block; text-decoration: none; font-size: clamp(2.1rem, 5vw, 3rem);
  font-weight: 850; letter-spacing: -.09em; line-height: 1; color: var(--lynks-ink);
}
.lynks-home__wordmark span, .lynks-page__brand span, .lynks-wordmark span { color: #8aa900; }
.lynks-home h1 { margin: 34px 0 18px; font-size: clamp(2.5rem, 7vw, 5.3rem); line-height: .99; letter-spacing: -.075em; font-weight: 800; }
.lynks-home__description { max-width: 440px; margin: 0 auto; color: var(--lynks-muted); font-size: clamp(1rem, 2vw, 1.12rem); line-height: 1.7; }
.lynks-home__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.lynks-home__button, .lynks-button, .button, .entry-content button, .entry-content input[type="submit"], .search-form button {
  min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 18px; border: 1px solid var(--lynks-ink); border-radius: var(--lynks-radius-small);
  background: var(--lynks-ink); color: #fff; text-decoration: none; font-size: .94rem;
  font-weight: 650; line-height: 1.2; transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.lynks-home__button:hover, .lynks-button:hover, .button:hover, .entry-content button:hover,
.entry-content input[type="submit"]:hover, .search-form button:hover { transform: translateY(-1px); }
.lynks-home__button--primary, .button--lime {
  background: var(--lynks-accent); color: var(--lynks-accent-ink); border-color: var(--lynks-accent);
}
.lynks-home__button--primary:hover, .button--lime:hover { background: #cfff24; border-color: #cfff24; color: var(--lynks-accent-ink); }
.lynks-home__button--secondary, .button--outline { background: var(--lynks-paper); color: var(--lynks-ink); border-color: var(--lynks-line); }
.lynks-home__button--secondary:hover, .button--outline:hover { background: #f7f7f7; color: var(--lynks-ink); }

.site-footer {
  min-height: 58px; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; border-top: 1px solid var(--lynks-line); color: var(--lynks-muted); font-size: .75rem;
}
.lynks-page { min-height: calc(100svh - 58px); padding: 48px 24px 72px; }
.lynks-page__inner { width: min(100%, var(--lynks-content-width)); margin: 0 auto; }
.lynks-page__brand { font-size: 2rem; }
.lynks-page__content { margin-top: 42px; }
.lynks-page__content h1, .lynks-form-wrap h1, .lynks-form-wrap h2 {
  margin: 0 0 22px; color: var(--lynks-ink); font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.08; letter-spacing: -.055em; font-weight: 800;
}
.lynks-page__content h2, .entry-content h2 { margin: 1.8em 0 .65em; font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.2; letter-spacing: -.035em; }
.lynks-page__content p, .entry-content, .lynks-form-wrap p { color: var(--lynks-muted); line-height: 1.7; }
.lynks-kicker { margin: 0 0 12px; color: var(--lynks-muted); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.entry-content { overflow-wrap: anywhere; }
.entry-content > * { max-width: 100%; }
.entry-content a { overflow-wrap: anywhere; text-underline-offset: 3px; }
.entry-content input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.entry-content textarea, .entry-content select, .search-form input,
.lynks-form-wrap input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.lynks-form-wrap textarea, .lynks-form-wrap select {
  display: block; width: 100%; min-height: 46px; margin: 0; padding: 11px 13px;
  border: 1px solid var(--lynks-input-border); border-radius: var(--lynks-radius-small);
  background: #fff; color: var(--lynks-ink); font: inherit; font-size: .94rem; box-shadow: none;
}
.entry-content textarea, .lynks-form-wrap textarea { min-height: 120px; resize: vertical; }
.entry-content label, .lynks-form-wrap label { color: var(--lynks-ink); }
.entry-content label { display: block; margin: 14px 0 7px; }
.lynks-results { list-style: none; padding: 0; margin: 24px 0; }
.lynks-results li { padding: 18px 0; border-bottom: 1px solid var(--lynks-line); }
.lynks-results a { font-weight: 650; text-decoration: none; }
.lynks-results a:hover { text-decoration: underline; text-underline-offset: 3px; }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; min-width: 0; }
.comments-area { margin-top: 48px; border-top: 1px solid var(--lynks-line); padding-top: 24px; }
.navigation.pagination, .pagination { margin-top: 28px; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 38px; padding: 0 10px; border: 1px solid var(--lynks-line); border-radius: var(--lynks-radius-small); text-decoration: none; }
.page-numbers.current { background: var(--lynks-accent); border-color: var(--lynks-accent); color: var(--lynks-ink); }

@media (max-width: 560px) {
  .lynks-home { min-height: calc(100svh - 72px); padding: 56px 22px; }
  .lynks-home h1 { margin-top: 28px; }
  .lynks-home__actions { flex-direction: column; align-items: stretch; }
  .lynks-home__button { width: 100%; }
  .site-footer { min-height: 72px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 5px; }
  .lynks-page { padding: 32px 20px 56px; }
  .lynks-page__content { margin-top: 34px; }
  .search-form { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
