/* dailisto.com site styles. Colours come from brand/tokens/tokens.css, served byte for
   byte at /brand/tokens.css and loaded before this file. Fonts are local OFL files
   copied by build.mjs: the site makes no third-party request. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/manrope-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/manrope-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/manrope-latin-700-normal.woff2") format("woff2");
}

/* Young Serif: display only, at 28 px or more (brand/USO.md). */
@font-face {
  font-family: "Young Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/young-serif-latin-400-normal.woff2") format("woff2");
}

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

html {
  /* Sizes in rem: text scales with the browser's font-size preference. */
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: var(--font-app);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 0.75rem;
  background: var(--bosque);
  color: var(--crema);
  border-radius: var(--radio-s);
  z-index: 1;
}

.skip:focus {
  top: 1rem;
}

a {
  color: var(--bosque);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 0.08em;
}

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

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

.site-header {
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid var(--arena);
}

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

.brand {
  display: inline-block;
  line-height: 0;
}

/* Wordmark minimum height: 24 px (brand/USO.md). */
.brand img {
  height: 2rem;
  width: auto;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.5rem 0;
  font-weight: 600;
}

.site-nav a[aria-current="page"] {
  text-decoration-thickness: 0.16em;
}

main {
  padding: 2rem 0 3rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
  color: var(--bosque);
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

li {
  margin-bottom: 0.375rem;
}

.draft-band {
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
  background: var(--arena);
  border-left: 6px solid var(--aviso);
  border-radius: var(--radio-s);
}

.draft-band p {
  margin: 0;
}

.draft-band strong {
  font-weight: 700;
}

.meta {
  color: var(--bosque);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.pending {
  font-weight: 600;
}

.card {
  margin: 0 0 1rem;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border: 1px solid var(--arena);
  border-radius: var(--radio-m);
}

.card p:last-child,
.card ul:last-child,
.card ol:last-child {
  margin-bottom: 0;
}

.example {
  font-variant-numeric: tabular-nums;
}

.hero {
  padding: 2rem 0 1rem;
}

.hero .wordmark {
  height: 4rem;
  width: auto;
  margin: 0 0 1.5rem;
}

.hero .promise {
  font-family: var(--font-display-web);
  font-weight: 400;
  font-size: 2.25rem;
  line-height: 1.2;
  color: var(--bosque);
  margin: 0 0 1rem;
}

.links {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.links li {
  margin: 0 0 0.75rem;
}

.links a {
  display: inline-block;
  padding: 0.5rem 0;
  font-weight: 600;
  font-size: 1.125rem;
}

.site-footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--arena);
  font-size: 0.9375rem;
}

.site-footer p {
  margin: 0 0 0.5rem;
}
