/* Pinito website: the one stylesheet. Colours only from the palette below and the icon. */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/nunito-700-latin.woff2") format("woff2");
  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: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/nunito-700-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/nunito-800-latin.woff2") format("woff2");
  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: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/nunito-800-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-400-latin.woff2") format("woff2");
  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: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-600-latin.woff2") format("woff2");
  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: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-600-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: light dark;
  --paper: #f4f3f0;
  --sheet: #ffffff;
  --ink: #1d1d1f;
  --secondary: #6e6e73;
  --hairline: #e5e5ea;
  --table-head: #f4f3f0;
  /* From the icon: the pine's green, used for decoration only (never for text). */
  --pine: #6fb694;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius: 14px;
  --measure: 68ch;
  --gutter: 20px;
  --font-heading: "Nunito", ui-rounded, system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c1c1e;
    --sheet: #2c2c2e;
    --ink: #f5f5f7;
    --secondary: #aeaeb2;
    --hairline: #3a3a3c;
    --table-head: #242426;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-wrap: break-word;
}

/* One column: header, sheet and footer share the width of the text column. */
.site-header,
.sheet,
.site-footer {
  width: min(100% - 2 * var(--gutter), calc(var(--measure) + 2 * 56px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 1;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
main:focus {
  outline: none;
}

/* Header */
.site-header {
  padding-block: 28px 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.pine {
  width: 30px;
  height: auto;
  flex: none;
}
.pine-line path {
  stroke: var(--ink);
}
.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.01em;
}

/* The white sheet */
.sheet {
  flex: 1 0 auto;
  background: var(--sheet);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px 56px 56px;
}
.sheet > * {
  max-width: var(--measure);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 1.8em 0 0.5em;
}
h1 {
  font-size: 2.2rem;
  margin-top: 0;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.2rem;
}
h4 {
  font-size: 1.05rem;
}
h1 + *,
h2 + *,
h3 + *,
h4 + * {
  margin-top: 0;
}

p,
ul,
ol,
dl,
blockquote,
.table-wrap {
  margin: 0 0 1em;
}
ul,
ol {
  padding-left: 1.4em;
}
li + li {
  margin-top: 0.3em;
}
strong {
  font-weight: 600;
}
hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 2em 0;
}
blockquote {
  padding-left: 1em;
  border-left: 3px solid var(--hairline);
  color: var(--secondary);
}
.draft-note {
  padding: 0.75em 1em;
  border-radius: calc(var(--radius) / 2);
  background: var(--table-head);
  border: 1px solid var(--hairline);
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--pine);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: currentColor;
}

/* Tables: a wide one scrolls inside its box, never the page. */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94em;
  line-height: 1.45;
}
th,
td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--hairline);
}
th {
  font-weight: 600;
  background: var(--table-head);
}
tr:last-child td {
  border-bottom: 0;
}

/* The holding page */
.sheet-home {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.holding {
  padding-block: 40px;
}
.app-icon {
  display: block;
  width: 128px;
  height: 128px;
  margin: 0 auto 24px;
  border-radius: 22.5%;
}
.holding h1 {
  font-weight: 800;
  font-size: 2.6rem;
  margin-bottom: 0.25em;
}
.lede {
  margin: 0 auto;
  max-width: 28ch;
  color: var(--secondary);
  font-size: 1.12rem;
}

/* Footer */
.site-footer {
  padding-block: 24px 40px;
  color: var(--secondary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}
/* The smaller size sits on the children: on the footer itself it would shrink its 68ch column. */
.site-footer nav,
.site-footer p {
  font-size: 15px;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.site-footer li + li {
  margin-top: 0;
}
.site-footer a {
  color: var(--secondary);
  text-decoration-color: var(--hairline);
}
.site-footer a:hover,
.site-footer a[aria-current="page"] {
  color: var(--ink);
  text-decoration-color: currentColor;
}
.site-footer p {
  margin: 0;
}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
  }
  .site-header {
    padding-block: 18px 14px;
  }
  .sheet {
    padding: 28px 20px 32px;
  }
  h1 {
    font-size: 1.9rem;
  }
  .holding h1 {
    font-size: 2.2rem;
  }
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
