/*
  Tectaro site styles.
  Palette, sampled from the wordmark:
  charcoal #212526, crimson #9E242F, paper #F6F5F1, white #FFFFFF,
  stone #5C6166 (secondary text), hairline #DFDDD6.
  Type scale (1.25): 13, 16, 20, 25, 31, 39, 49, 61.
  Spacing: multiples of 8.
*/

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

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

body {
  margin: 0;
  background: #F6F5F1;
  color: #212526;
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "kern";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
dl,
dd {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid #212526;
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.skip {
  position: absolute;
  top: -64px;
  left: 16px;
  z-index: 10;
  padding: 8px 16px;
  background: #212526;
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 8px;
}

/* Header */

.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid #DFDDD6;
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "brand . contact"
    "nav nav nav";
  align-items: center;
  row-gap: 12px;
  padding-top: 16px;
  padding-bottom: 12px;
}

.brand {
  grid-area: brand;
  display: block;
  padding: 4px 0;
}

.brand img {
  width: 141px;
  height: 20px;
}

.primary {
  grid-area: nav;
}

.primary ul {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.primary a {
  position: relative;
  display: block;
  padding: 6px 0 10px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.primary a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

/* The slanted bar from the E of the wordmark marks the current page. */

.primary a[aria-current="page"]::after,
.mark {
  background: #9E242F;
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
}

.primary a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 18px;
  height: 4px;
}

.header-contact {
  grid-area: contact;
  display: inline-block;
  padding: 7px 15px;
  border: 1px solid #212526;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.header-contact:hover,
.header-contact[aria-current="page"] {
  background: #212526;
  color: #FFFFFF;
}

/* Page structure */

.hero {
  padding: 56px 0 48px;
}

.hero-home {
  padding: 72px 0 64px;
}

.mark {
  display: block;
  width: 48px;
  height: 10px;
  margin-bottom: 32px;
}

h1 {
  max-width: 19em;
  font-size: 39px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero-home h1 {
  font-size: 31px;
  line-height: 1.2;
}

.lead {
  max-width: 36em;
  margin-top: 24px;
  color: #5C6166;
  font-size: 20px;
  line-height: 1.5;
}

.band {
  border-top: 1px solid #DFDDD6;
  padding: 48px 0 56px;
}

.split {
  display: grid;
  gap: 24px;
}

.split__head h2 {
  font-size: 25px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.split__head > * + * {
  margin-top: 8px;
}

.split__head .product-icon + h2 {
  margin-top: 16px;
}

.split__body {
  min-width: 0;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.meta {
  color: #5C6166;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.prose {
  max-width: 40em;
}

.prose > * + * {
  margin-top: 16px;
}

.body-lead {
  max-width: 36em;
  font-size: 20px;
  line-height: 1.5;
}

/* Links and buttons */

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #A9ACAE;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.text-link:hover {
  color: #9E242F;
  text-decoration-color: #9E242F;
}

.button {
  display: inline-block;
  padding: 13px 24px;
  background: #212526;
  border: 1px solid #212526;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.button:hover {
  background: #9E242F;
  border-color: #9E242F;
}

.actions {
  margin-top: 32px;
}

/* Product cards */

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 24px;
  background: #FFFFFF;
  border: 1px solid #DFDDD6;
}

.card p:not(.meta) {
  max-width: 36em;
}

.card p:last-child {
  margin-top: 16px;
}

.card-feature {
  gap: 16px;
}

.card-feature > div > * + * {
  margin-top: 8px;
}

.card-feature h3 {
  font-size: 25px;
  line-height: 1.25;
}

.card-feature .text-link {
  display: inline-block;
  margin-top: 8px;
}

.product-icon {
  width: 64px;
  height: 64px;
}

.card-feature .product-icon {
  width: 64px;
  height: 64px;
}

/* Lists */

.rule-list {
  margin-top: 32px;
  border-bottom: 1px solid #DFDDD6;
}

.split__body > .rule-list:first-child {
  margin-top: 0;
}

.rule-list li {
  padding: 14px 0;
  border-top: 1px solid #DFDDD6;
}

.list-note {
  max-width: 40em;
  margin-top: 24px;
}

.terms {
  border-bottom: 1px solid #DFDDD6;
}

.terms__row {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid #DFDDD6;
}

.terms dt {
  font-weight: 600;
}

.terms dd {
  color: #5C6166;
}

/* Threadbound */

.product-hero {
  display: grid;
  gap: 24px;
}

.product-icon-large {
  width: 80px;
  height: 80px;
}

.product-hero .meta {
  margin-top: 16px;
  font-size: 16px;
}

.feature-grid {
  display: grid;
  column-gap: 48px;
}

.feature {
  padding: 20px 0 28px;
  border-top: 1px solid #DFDDD6;
}

.feature p {
  margin-top: 8px;
  max-width: 34em;
}

.licence {
  display: grid;
  background: #FFFFFF;
  border: 1px solid #DFDDD6;
}

.licence__col {
  padding: 24px;
}

.licence__col + .licence__col {
  border-top: 1px solid #DFDDD6;
}

.licence__col p {
  margin-top: 8px;
}

/* Contact */

.hero-contact {
  padding-bottom: 96px;
}

.email {
  margin-top: 32px;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.email a {
  text-decoration: underline;
  text-decoration-color: #A9ACAE;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.email a:hover {
  color: #9E242F;
  text-decoration-color: #9E242F;
}

/* Footer */

.site-footer {
  border-top: 1px solid #DFDDD6;
  padding: 40px 0 48px;
  background: #F6F5F1;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 24px;
}

.footer-nav a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal {
  color: #5C6166;
  font-size: 13px;
  line-height: 1.6;
}

.legal + .legal {
  margin-top: 8px;
}

/* 600 and up */

@media (min-width: 600px) {
  .wrap {
    padding-left: 32px;
    padding-right: 32px;
  }

  .card-feature {
    flex-direction: row;
    gap: 24px;
  }

  .card-feature .product-icon {
    flex: none;
  }

  .licence {
    grid-template-columns: 1fr 1fr;
  }

  .licence__col + .licence__col {
    border-top: 0;
    border-left: 1px solid #DFDDD6;
  }

  .product-hero {
    grid-template-columns: auto 1fr;
    gap: 32px;
  }

  .terms__row {
    grid-template-columns: 12em 1fr;
    gap: 24px;
  }

  .hero-home h1 {
    font-size: 39px;
  }

  .email {
    font-size: 39px;
  }
}

/* 900 and up: header in one row */

@media (min-width: 900px) {
  .site-header__inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav contact";
    padding-top: 0;
    padding-bottom: 0;
  }

  .brand img {
    width: 169px;
    height: 24px;
  }

  .primary {
    justify-self: end;
    margin-right: 32px;
  }

  .primary ul {
    gap: 32px;
  }

  .primary a {
    padding: 8px 0;
    font-size: 15px;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* 1024 and up: section heading beside its content */

@media (min-width: 1024px) {
  .wrap {
    padding-left: 48px;
    padding-right: 48px;
  }

  .hero {
    padding: 96px 0 80px;
  }

  .hero-home {
    padding: 128px 0 112px;
  }

  h1 {
    font-size: 49px;
  }

  .hero-home h1 {
    font-size: 49px;
  }

  .band {
    padding: 72px 0 88px;
  }

  .split {
    grid-template-columns: 1fr 3fr;
    gap: 48px;
  }

  .card {
    padding: 32px;
  }

  .card-feature {
    padding: 40px;
    gap: 32px;
  }

  .card-feature .product-icon {
    width: 80px;
    height: 80px;
  }

  .licence__col {
    padding: 32px;
  }

  .product-icon-large {
    width: 96px;
    height: 96px;
  }

  .hero-contact {
    padding-bottom: 160px;
  }

  .email {
    font-size: 49px;
  }
}

/* 1440 and up */

@media (min-width: 1440px) {
  .hero-home h1 {
    font-size: 61px;
    line-height: 1.1;
  }

  .hero-home .lead {
    margin-top: 32px;
  }
}
