/* Tilia Solutions: one stylesheet for every page. */

@font-face {
  font-family: "Fraunces";
  src: url("/fraunces.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* The logo's cream and green. */
  --paper: #F5EFE5;
  --paper-deep: #ECE4D5;
  --ink: #113325;
  --ink-soft: #3D5748;
  --muted: #56695C;
  --rule: rgba(17, 51, 37, 0.16);
  --rule-strong: rgba(17, 51, 37, 0.32);
  /* Linden blossom, for a few small marks on the green. */
  --blossom: #E4D58F;
  /* Engraved's own colours, on its card only. */
  --engraved-ink: #0E0F12;
  --engraved-magenta: #FF2D87;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1rem, 4.5vw, 3rem);
  --wide: 74rem;
  --section: clamp(4rem, 3rem + 5vw, 7.5rem);
}

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

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
}

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

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: inherit; }

a:focus-visible, .button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wide));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: 0.5rem 0.875rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  text-decoration: none;
  z-index: 1;
}
.skip:focus { top: 0.75rem; }

/* The header: the tree and the name, and three links. */

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

.top .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1rem;
}

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

.brand img {
  width: 2.75rem;
  height: 2.75rem;
  margin: -0.375rem -0.25rem -0.375rem -0.5rem;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem clamp(1rem, 0.5rem + 2vw, 2.25rem);
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-block;
  padding-block: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
}

.nav a:hover { border-bottom-color: var(--rule-strong); }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }

/* Shared type. */

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow .dot {
  width: 0.3125rem;
  height: 0.3125rem;
  border-radius: 50%;
  background: currentColor;
}

.lede {
  max-width: 38rem;
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.prose {
  max-width: 40rem;
  color: var(--ink-soft);
}

.prose > * + * { margin-top: 1em; }

.prose a, .text-link {
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
}

.prose a:hover, .text-link:hover { text-decoration-color: var(--ink); }

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.375rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.button:hover { background: #0A2219; }

.arrow-link {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--rule-strong);
  padding-bottom: 0.125rem;
}

.arrow-link:hover { border-bottom-color: var(--ink); }

/* The homepage's opening: the claim, and the tree beside it. */

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(3.5rem, 2rem + 5vw, 6.5rem);
}

.hero h1 {
  margin-top: 1.25rem;
  font-size: clamp(2.625rem, 1.5rem + 4.6vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.028em;
  font-weight: 380;
}

.hero h1 em {
  font-style: normal;
  font-weight: 300;
  color: var(--ink-soft);
}

.hero .lede { margin-top: 1.75rem; }
.hero .actions { margin-top: 2.25rem; }

.hero-tree {
  display: none;
  width: 100%;
  max-width: 26rem;
  justify-self: end;
}

@media (min-width: 56rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 3rem; }
  .hero-tree { display: block; }
}

/* A page's opening, on the pages other than the homepage. */

.page-head .wrap {
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2.5rem, 2rem + 3vw, 4.5rem);
}

.page-head h1 {
  margin-top: 1.25rem;
  max-width: 18ch;
  font-size: clamp(2.375rem, 1.5rem + 3.6vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 380;
}

.page-head .lede { margin-top: 1.5rem; }
.page-head .actions { margin-top: 2rem; }

/* Sections, each under a rule with its number. */

.section { padding-block: 0 var(--section); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-strong);
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem);
}

.section-head .num {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.section-head h2 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.022em;
  font-weight: 380;
}

.section-head p {
  margin-top: 1rem;
  max-width: 36rem;
  color: var(--ink-soft);
}

@media (min-width: 56rem) {
  .section-head { grid-template-columns: 12rem minmax(0, 1fr); }
  .section-body { margin-left: 14rem; }
  .section-body.full { margin-left: 0; }
}

/* Engraved's card: the app's own dark, its icon, words and screens. */

.app-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  border-radius: clamp(1.25rem, 1rem + 1vw, 2rem);
  background: var(--engraved-ink);
  color: #FFFFFF;
  overflow: hidden;
}

.app-card .app-id {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-card .app-id img {
  width: 4rem;
  height: 4rem;
  border-radius: 0.95rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.app-card h3, .app-card .app-name {
  font-family: var(--sans);
  font-size: 1.625rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.app-card .tagline {
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.9375rem;
}

.app-card .app-text > p:not(.tagline) {
  margin-top: 1.5rem;
  max-width: 30rem;
  color: rgba(255, 255, 255, 0.82);
}

.app-card .features {
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.625rem;
  color: rgba(255, 255, 255, 0.82);
}

.app-card .features li {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: 0.5rem;
}

.app-card .features li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.6em;
  border-radius: 50%;
  background: var(--engraved-magenta);
}

.app-card .status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  padding: 0.4375rem 0.875rem;
  border-radius: 1.125rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.app-card .status::before {
  content: "";
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--engraved-magenta);
}

.app-card .app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 1.75rem;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

.app-card .app-links a {
  text-decoration: underline;
  text-decoration-color: var(--engraved-magenta);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.3em;
}

.app-card .app-links a:hover { text-decoration-thickness: 2.5px; }

.app-card a:focus-visible { outline-color: #FFFFFF; }

.screens {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem);
}

.screens img {
  width: min(42%, 15rem);
  border-radius: clamp(1rem, 0.75rem + 1vw, 1.75rem);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 1.5rem 3rem rgba(0, 0, 0, 0.45);
}

.screens img:nth-child(2) { margin-top: 2.5rem; }
.screens.three img { width: min(31%, 14rem); }
.screens.three img:nth-child(3) { margin-top: 5rem; }

@media (min-width: 56rem) {
  .app-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 3rem; }
  .app-card.stacked { grid-template-columns: minmax(0, 1fr); }
}

/* Cards in a row: the services, the steps. */

.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 44rem) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

.card {
  padding: clamp(1.375rem, 1rem + 1vw, 2rem);
  border-radius: 1.25rem;
  background: var(--paper-deep);
}

.card .mark {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--ink);
}

.card h3 {
  margin-top: 1.25rem;
  font-size: 1.5rem;
  line-height: 1.15;
  font-weight: 450;
}

.card p {
  margin-top: 0.625rem;
  color: var(--ink-soft);
}

.card ul {
  margin-top: 1rem;
  padding-left: 1.125rem;
  color: var(--ink-soft);
}

.card li + li { margin-top: 0.25rem; }

.card .step {
  font-family: var(--serif);
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 300;
  color: var(--muted);
  font-variant-numeric: lining-nums;
}

.after-cards { margin-top: 2rem; }

/* The company: a few words and its registered details. */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem 3rem;
}

@media (min-width: 56rem) {
  .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}

.details {
  display: grid;
  border-top: 1px solid var(--rule);
}

.details > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.125rem 1.5rem;
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 36rem) {
  .details > div { grid-template-columns: 10.5rem minmax(0, 1fr); }
}

.details dt {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.details dd {
  font-weight: 500;
  overflow-wrap: anywhere;
}

.details dd a {
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
}

/* The invitation to write, on the green. */

.invite {
  background: var(--ink);
  color: var(--paper);
}

.invite .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem 3rem;
  align-items: end;
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem);
}

@media (min-width: 56rem) {
  .invite .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}

.invite h2 {
  font-size: clamp(2.125rem, 1.4rem + 3vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 350;
}

.invite p {
  color: rgba(245, 239, 229, 0.78);
  max-width: 30rem;
}

.invite .email {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--blossom);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  overflow-wrap: anywhere;
}

.invite .email:hover { text-decoration-thickness: 3px; }
.invite a:focus-visible { outline-color: var(--paper); }

/* The contact page's big address. */

.contact-email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.625rem, 1.1rem + 2.4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

.contact-email:hover { text-decoration-color: var(--ink); }

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

/* Long text: the privacy policy. */

.doc {
  max-width: 42rem;
  color: var(--ink-soft);
}

.doc h2 {
  margin-top: 2.75rem;
  font-size: 1.625rem;
  line-height: 1.2;
  font-weight: 450;
  color: var(--ink);
}

.doc h2:first-child { margin-top: 0; }
.doc p, .doc ul { margin-top: 0.875rem; }
.doc ul { padding-left: 1.25rem; }
.doc li + li { margin-top: 0.375rem; }
.doc strong { color: var(--ink); font-weight: 600; }

.doc a {
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
}

.doc a:hover { text-decoration-color: var(--ink); }

/* The footer: the company's registered details on every page. */

.foot {
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.foot .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  padding-block: 2.75rem 2.25rem;
}

@media (min-width: 56rem) {
  .foot .wrap { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
}

.foot .brand { font-size: 1.125rem; }
.foot .brand img { width: 2.25rem; height: 2.25rem; }

.foot address {
  margin-top: 1rem;
  font-style: normal;
  line-height: 1.65;
}

.foot h2 {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.foot ul {
  margin-top: 0.75rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.375rem;
}

.foot a {
  text-decoration: none;
}

.foot a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
}

.foot .fine {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  color: var(--muted);
}

/* The 404 page. */

.lost .wrap {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding-block: 4rem;
}

.lost h1 {
  font-size: clamp(2.375rem, 1.5rem + 3.6vw, 4rem);
  line-height: 1.05;
  font-weight: 380;
}

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