/*
  Pinekoi LLC. One stylesheet, light mode only, system fonts.
  Quiet editorial page: type scale, line height and space carry the order.
  Pine is the ink for headings, koi orange is reserved for link underlines
  and a few small marks. Orange on paper is about 3.1:1, so it is never
  used for running text.
*/

:root {
  --pine: #1F3D33;
  --koi: #E8632C;
  --paper: #FAF7F2;
  --ink: #22271F;

  --muted: rgb(34 39 31 / 0.68);
  --rule: rgb(31 61 51 / 0.18);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
    "Noto Serif", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;

  --page: 45rem;      /* 720px column */
  --gutter: 7rem;     /* label column on the home page */
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

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

::selection {
  background: var(--koi);
  color: var(--paper);
}

/* ---------- links ---------- */

a {
  color: var(--pine);
  text-decoration-line: underline;
  text-decoration-color: var(--koi);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.22em;
  transition: text-decoration-thickness 0.15s ease;
}

a:hover {
  text-decoration-thickness: 0.17em;
}

a:focus-visible {
  outline: 2px solid var(--koi);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: 0.5rem 0.75rem;
  background: var(--paper);
}

/* ---------- layout ---------- */

.wrap {
  width: min(100% - 3rem, var(--page));
  margin-inline: auto;
}

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

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--pine);
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
}

.brand svg {
  display: block;
  width: 2.1rem;
  height: 2.1rem;
  flex: none;
}

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

.nav a {
  color: var(--ink);
  text-decoration: none;
  padding-block: 0.25rem;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.15s ease;
}

.nav a:hover {
  border-bottom-color: var(--koi);
}

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(4.5rem, 13vw, 9rem) clamp(4rem, 10vw, 7rem);
}

.hero h1 {
  max-width: 13em;
  margin-bottom: 2rem;
  color: var(--pine);
  font-family: var(--serif);
  font-size: clamp(2.375rem, 1.1rem + 4.9vw, 3.75rem);
  font-weight: 400;
  line-height: 1.07;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.lead {
  max-width: 36rem;
  font-size: 1.1875rem;
  line-height: 1.6;
  text-wrap: pretty;
}

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

.section {
  display: grid;
  grid-template-columns: var(--gutter) minmax(0, 1fr);
  column-gap: 2rem;
  padding-block: 3rem 4.5rem;
  border-top: 1px solid var(--rule);
}

.section > h2,
.k {
  color: var(--pine);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.section > h2 {
  padding-top: 0.55rem;
}

.body > * + * {
  margin-top: 1.25rem;
}

.body p,
.doc p,
.doc li {
  text-wrap: pretty;
}

.product-name {
  color: var(--pine);
  font-family: var(--serif);
  font-size: 2.125rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.product-domain {
  margin-left: 0.15em;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: 0;
}

.pricing {
  margin-top: 2rem !important;
  padding-block: 1.1rem 1.2rem;
  border-block: 1px solid var(--rule);
}

.pricing .k {
  display: block;
  margin-bottom: 0.45rem;
}

.prices {
  color: var(--pine);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.5;
}

.sep {
  color: var(--muted);
}

.nw {
  white-space: nowrap;
}

.guarantee {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.9375rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.25rem;
  margin-top: 1.75rem !important;
  font-weight: 500;
}

.arrow::after {
  content: "\2192";
  display: inline-block;
  margin-left: 0.4em;
  color: var(--koi);
  transition: transform 0.15s ease;
}

.arrow:hover::after {
  transform: translateX(0.22em);
}

.note {
  color: var(--muted);
  font-size: 0.9375rem;
}

.contact > * + * {
  margin-top: 1.6rem;
}

.contact .k {
  display: block;
  margin-bottom: 0.3rem;
}

address {
  font-style: normal;
}

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

.site-footer {
  padding-block: 2rem 3.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

.site-footer a {
  color: var(--ink);
}

/* ---------- legal pages and 404 ---------- */

.doc {
  padding-block: clamp(3.5rem, 9vw, 6rem) clamp(3.5rem, 8vw, 5.5rem);
}

.doc h1 {
  margin-bottom: 0.9rem;
  color: var(--pine);
  font-family: var(--serif);
  font-size: clamp(2.125rem, 1.2rem + 3.6vw, 3.25rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.doc .meta {
  margin-bottom: 3.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.doc h2 {
  margin: 2.75rem 0 0.7rem;
  color: var(--pine);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.doc p,
.doc ul {
  max-width: 38rem;
}

.doc p + p,
.doc p + ul,
.doc ul + p {
  margin-top: 1rem;
}

.doc ul {
  padding-left: 1.25rem;
}

.doc li + li {
  margin-top: 0.4rem;
}

.doc li::marker {
  color: var(--muted);
}

.doc .intro {
  font-size: 1.1875rem;
  line-height: 1.6;
}

/* ---------- narrow screens ---------- */

@media (max-width: 40rem) {
  .section {
    display: block;
    padding-block: 2.5rem 3.5rem;
  }

  .section > h2 {
    padding-top: 0;
    margin-bottom: 1.25rem;
  }
}

@media (max-width: 30rem) {
  .wrap {
    width: min(100% - 2.5rem, var(--page));
  }

  .site-header .wrap {
    padding-block: 1.25rem;
  }

  .brand {
    font-size: 1.25rem;
    gap: 0.45rem;
  }

  .brand svg {
    width: 1.85rem;
    height: 1.85rem;
  }

  .nav {
    gap: 1.1rem;
    font-size: 0.875rem;
  }

  .lead {
    font-size: 1.125rem;
  }

  .product-name {
    font-size: 1.875rem;
  }

  .product-domain {
    display: block;
    margin: 0.2rem 0 0;
    font-size: 0.9375rem;
  }

  .prices {
    font-size: 1.125rem;
  }

  .actions {
    gap: 0.6rem 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

.actions-404 {
  margin-top: 2rem;
  font-weight: 500;
}
