/* Notrilo blog, direction D. Hand written, no framework. Light and dark follow the system. */
@font-face {
  font-family: 'Zodiak';
  src: url('/marketing/fonts/Zodiak-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --paper: #f5ece6;
  --paper-2: #ede0d8;
  --card: #fbf6f2;
  --ink: #2a1922;
  --ink-2: #4d3a44;
  --rule: #dccbc2;
  --accent: #e0462a;
  --accent-ink: #b9321a;
  --on-accent: #fff;
  --plate: #1b1015;
  --on-plate: #f7eee8;
  --shadow: 0 2px 4px -1px rgba(42, 25, 34, 0.06), 0 18px 40px -16px rgba(42, 25, 34, 0.28);
  --font-display: 'Zodiak', 'Shippori Mincho', Georgia, serif;
  --font-text:
    'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', 'Hiragino Sans', 'Yu Gothic',
    'PingFang SC', 'PingFang TC', 'Noto Sans Thai', 'Noto Sans Devanagari', 'Noto Sans Arabic',
    'Noto Sans KR', 'Malgun Gothic', sans-serif;
  --e: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1b1015;
    --paper-2: #26171e;
    --card: #26171e;
    --ink: #f4e9e2;
    --ink-2: #cdb9b1;
    --rule: #3a2630;
    --accent: #f0623f;
    --accent-ink: #ff8a6b;
    --plate: #2f1d26;
    --shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.4), 0 18px 40px -16px rgba(0, 0, 0, 0.7);
  }
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:lang(ja),
:lang(zh-Hans),
:lang(zh-Hant) {
  line-break: strict;
  word-break: normal;
  line-height: 1.85;
}
:lang(th) {
  line-height: 1.9;
  word-break: normal;
  overflow-wrap: break-word;
}
:lang(hi) {
  line-height: 1.85;
}
:lang(ko) {
  word-break: keep-all;
  overflow-wrap: break-word;
}
:lang(ar) {
  line-height: 1.95;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}
.bw {
  width: min(1240px, 100% - 48px);
  margin-inline: auto;
}
.skip {
  position: absolute;
  inset-inline-start: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 50;
}
.skip:focus {
  inset-inline-start: 12px;
}
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 40;
}
[dir='rtl'] .progress {
  transform-origin: 100% 50%;
}
@supports (animation-timeline: scroll()) {
  .progress {
    animation: grow linear both;
    animation-timeline: scroll(root);
  }
  @keyframes grow {
    to {
      transform: scaleX(1);
    }
  }
}
/* header */
.bh {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-block-end: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
}
.bh__bar {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 21px;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.bh__nav {
  display: flex;
  gap: 6px;
  margin-inline-start: 12px;
}
.bh__nav a {
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink-2);
  transition:
    background 0.2s,
    color 0.2s;
}
.bh__nav a:hover,
.bh__nav a[aria-current] {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  color: var(--ink);
}
.bh__right {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
summary {
  list-style: none;
  cursor: pointer;
}
summary::-webkit-details-marker {
  display: none;
}
.pick,
.burger {
  position: relative;
}
.pick summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
}
.pick summary:hover {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}
.pick__menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 2px;
  width: min(380px, 90vw);
  max-height: 70vh;
  overflow: auto;
}
.pick__menu a {
  padding: 9px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 16px;
}
.pick__menu a:hover {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}
.pick__menu a[aria-current] {
  font-weight: 700;
  color: var(--accent-ink);
}
.burger {
  display: none;
}
.burger summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.burger__menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 10px;
  display: grid;
  gap: 2px;
  width: min(300px, 88vw);
}
.burger__menu a:not(.btn) {
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
}
.burger__menu .btn {
  margin-top: 6px;
}
/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  transition:
    transform 0.35s var(--e),
    background 0.2s;
  white-space: normal;
  text-align: center;
  max-width: 100%;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-sm {
  padding: 10px 18px;
  font-size: 15px;
}
.btn-lg {
  padding: 18px 34px;
  font-size: 20px;
  background: var(--accent);
  color: var(--on-accent);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
/* index */
.index {
  padding-block: 40px 96px;
}
.index__h {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 10vw, 128px);
  line-height: 1;
  margin: 56px 0 40px;
  letter-spacing: -0.02em;
}
.empty {
  font-size: 22px;
  color: var(--ink-2);
  margin-block: 0 28px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 28px;
  margin-top: 72px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-decoration: none;
}
.card__img {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 3 / 2;
  background: var(--paper-2);
}
.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--e);
}
.card:hover .card__img img {
  transform: scale(1.045);
}
.card__t {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.card__d {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.55;
  margin-top: 8px;
}
.card-lead {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 56px;
  align-items: center;
}
.card-lead .card__img {
  aspect-ratio: 4 / 3;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.card-lead .card__t {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.card-lead .card__d {
  font-size: 20px;
  -webkit-line-clamp: 4;
}
.pager {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}
/* article */
.art__head {
  padding-block: 64px 36px;
}
.art__h1 {
  max-width: 1040px;
}
.art__h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5.6vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.art__by {
  margin: 0;
  font-size: 17px;
  color: var(--ink-2);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.art__by span {
  font-weight: 700;
  color: var(--ink);
}
.art__hero {
  margin-block: 0 56px;
}
.art__hero img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.art__cols {
  display: grid;
  grid-template-columns: 240px minmax(0, 720px);
  gap: 64px;
  justify-content: center;
}
.art__cols:not(:has(.toc)) {
  grid-template-columns: minmax(0, 720px);
}
.toc {
  position: sticky;
  top: 96px;
  align-self: start;
  font-size: 15px;
  line-height: 1.4;
  max-height: calc(100vh - 120px);
  overflow: auto;
}
.toc p {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 16px;
}
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
  border-inline-start: 2px solid var(--rule);
}
.toc a {
  display: block;
  padding: 6px 14px;
  text-decoration: none;
  color: var(--ink-2);
}
.toc a:hover {
  color: var(--accent-ink);
}
.prose {
  font-size: 19px;
  line-height: 1.75;
  overflow-wrap: break-word;
}
.prose > * + * {
  margin-top: 1.15em;
}
.prose h2 {
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.2;
  margin: 2.2em 0 0.2em;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.prose h3 {
  font-size: 24px;
  line-height: 1.3;
  margin: 1.9em 0 0;
  font-weight: 700;
}
.prose h4 {
  font-size: 20px;
  margin: 1.6em 0 0;
}
.prose a {
  color: var(--accent-ink);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.prose a:hover {
  text-decoration-color: var(--accent);
}
.prose img,
.prose figure {
  border-radius: 18px;
}
.prose figure {
  margin: 2em 0;
}
.prose figcaption,
.prose p > em:only-child {
  font-size: 15px;
  color: var(--ink-2);
}
.prose blockquote {
  margin-inline: 0;
  padding: 4px 24px;
  border-inline-start: 4px solid var(--accent);
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  border-radius: 4px 18px 18px 4px;
}
[dir='rtl'] .prose blockquote {
  border-radius: 18px 4px 4px 18px;
}
.prose ul,
.prose ol {
  padding-inline-start: 1.4em;
}
.prose li + li {
  margin-top: 0.4em;
}
.prose code {
  font-size: 0.88em;
  background: color-mix(in srgb, var(--ink) 9%, transparent);
  padding: 2px 6px;
  border-radius: 6px;
}
.prose pre {
  overflow: auto;
  padding: 18px 20px;
  background: var(--plate);
  color: var(--on-plate);
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.6;
}
.prose pre code {
  background: none;
  padding: 0;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin-block: 2.4em;
}
.tbl {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--card);
  -webkit-overflow-scrolling: touch;
}
.prose table {
  border-collapse: collapse;
  width: 100%;
  font-size: 16px;
  line-height: 1.5;
  min-width: 560px;
}
.prose th,
.prose td {
  padding: 12px 16px;
  text-align: start;
  vertical-align: top;
  border-block-end: 1px solid var(--rule);
}
.prose th {
  font-weight: 700;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  position: sticky;
  top: 0;
}
.prose tr:last-child td {
  border-block-end: 0;
}
/* call to action */
.cta {
  margin-block: 96px 24px;
  padding: clamp(40px, 7vw, 96px);
  border-radius: 36px;
  background: var(--plate);
  color: var(--on-plate);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 18ch;
  text-wrap: balance;
}
.more {
  padding-block: 72px 96px;
}
.more h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.02em;
}
.more .grid {
  margin-top: 32px;
}
/* footer */
.bf {
  border-top: 1px solid var(--rule);
  padding-block: 64px 40px;
  font-size: 16px;
}
.bf__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}
.bf ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  align-content: start;
}
.bf a {
  text-decoration: none;
  color: var(--ink-2);
}
.bf a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.bf .logo {
  color: var(--ink);
}
.bf__langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.bf__base {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  color: var(--ink-2);
}
a:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}
/* motion on arrival */
@media (prefers-reduced-motion: no-preference) {
  .art__head,
  .art__hero,
  .card-lead,
  .index__h {
    animation: rise 0.9s var(--e) both;
  }
  .art__hero {
    animation-delay: 0.12s;
  }
  .grid .card {
    animation: rise 0.8s var(--e) both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(24px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
@media (max-width: 1000px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-lead {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .art__cols {
    grid-template-columns: minmax(0, 720px);
  }
  .toc {
    display: none;
  }
  .bf__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  body {
    font-size: 17px;
  }
  .bw {
    width: calc(100% - 32px);
  }
  .bh__nav,
  .bh__right > .btn {
    display: none;
  }
  .burger {
    display: block;
  }
  .bh__bar {
    gap: 12px;
  }
  .grid {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }
  .art__head {
    padding-block: 36px 24px;
  }
  .art__hero {
    margin-bottom: 32px;
  }
  .art__hero img {
    aspect-ratio: 4 / 3;
    border-radius: 20px;
  }
  .prose {
    font-size: 18px;
  }
  .cta {
    border-radius: 26px;
    margin-top: 64px;
  }
  .pick__menu {
    grid-template-columns: 1fr;
  }
}

/* Right to left articles: each paragraph takes its direction from its first strong letter, so a
   caption that starts in Arabic reads right to left even when it holds a Latin name. */
[dir='rtl'] .prose :is(p, li, figcaption) {
  unicode-bidi: plaintext;
}
