/* heddle.design landing page. Same tokens as the Weft docs (docs-site/static/style.css). */

:root {
  --paper: #f3eee6;
  --surface: #eae3d8;
  --ink: #1f1c19;
  --muted: #6b635a;
  --rule: #d8cfc2;
  --clay: #a65e46;
  --link: #8e4b36;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --page: 72rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

/* Header and footer */

.site-header {
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--page);
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9375rem;
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.5rem 1.25rem 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Sections */

main > section {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero {
  padding-top: clamp(3rem, 9vw, 7rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.hero h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.75rem);
  max-width: 14em;
}

.lede {
  max-width: 36rem;
  margin: 1.5rem 0 0;
  font-size: 1.1875rem;
  color: var(--muted);
}

.theme {
  display: grid;
  gap: 2rem;
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
  border-top: 1px solid var(--rule);
}

.theme__media {
  margin: 0;
}

.theme__media img {
  border: 1px solid var(--rule);
}

.theme h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.theme p {
  margin: 0 0 1rem;
  max-width: 34rem;
}

.facts {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  max-width: 34rem;
}

.facts li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule);
}

.facts li:first-child {
  border-top: 1px solid var(--rule);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.button {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.125rem;
  background: var(--clay);
  color: #fff;
  padding: 0.8rem 2rem;
  text-decoration: none;
}

.button:hover {
  background: var(--link);
}

.button--quiet {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: calc(0.8rem - 1px) calc(2rem - 1px);
}

.button--quiet:hover {
  background: var(--ink);
  color: var(--paper);
}

.pending {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.styles {
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
  border-top: 1px solid var(--rule);
}

.styles h2,
.support h2 {
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
}

.styles__list {
  display: grid;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.styles__list img {
  border: 1px solid var(--rule);
  margin-bottom: 1rem;
}

.styles__list h3 {
  font-size: 1.375rem;
  margin-bottom: 0.25rem;
}

.styles__list p {
  margin: 0;
  color: var(--muted);
}

.support {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
  border-top: 1px solid var(--rule);
}

.support p {
  max-width: 36rem;
  margin: 0 0 1.25rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 48rem) {
  .styles__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 60rem) {
  .theme {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: center;
  }
}

.nowrap {
  white-space: nowrap;
}
