/* ==========================================================================
   الهيكل: عمود جانبي ثابت يتغيّر بحسب الصفحة، وبجانبه المحتوى
   ========================================================================== */

:root {
  color-scheme: light dark;

  --bg: light-dark(#f7f5f1, #171412);
  --ink: light-dark(#1b1917, #efe7dc);
  --soft: light-dark(#625a51, #a89f93);
  --faint: light-dark(#7d756b, #8a8177);
  --line: light-dark(#e3ddd3, #2e2925);
  --card: light-dark(#efebe4, #211d1a);
  --accent: light-dark(#c2410c, #f2a33a);
  --glow: light-dark(rgb(194 65 12 / 0.07), rgb(242 163 58 / 0.09));
  --thumb: light-dark(#cfc7ba, #3d3630);

  /* لون لكل باب */
  --ilm: light-dark(#2563eb, #7aa2ff);
  --tech: light-dark(#ea580c, #ff8a4c);
  --islam: light-dark(#15803d, #6fcf8f);

  --display: "Thmanyah Serif Display", "Thmanyah Sans", serif;
  --text: "Thmanyah Sans", system-ui, sans-serif;
  --mono: "Geist Mono", "Thmanyah Sans", ui-monospace, monospace;

  /* السلّم الخطي: ثمانية أحجام فقط، وكل نص في الموقع يأخذ واحدًا منها */
  --fs-xs: 0.8125rem; /* 13: التواريخ والتسميات */
  --fs-sm: 0.9375rem; /* 15: النص الثانوي */
  --fs-md: 1.0625rem; /* 17: نص الواجهة */
  --fs-lg: 1.25rem; /* 20: عناوين الصفوف والفقرة الافتتاحية */
  --fs-xl: 1.5rem; /* 24 */
  --fs-2xl: 1.875rem; /* 30: السنة، والاسم في الصفحات الداخلية */
  --fs-3xl: clamp(2rem, 1.4rem + 2.4vw, 2.625rem); /* عنوان المقال والكتاب */
  --fs-4xl: clamp(2.5rem, 1.9rem + 2.4vw, 3.125rem); /* الاسم وعناوين الصفحات */
  --fs-code: 0.875rem;

  /* ارتفاع السطر: العربية تحتاج فسحة أوسع من اللاتينية */
  --lh-display: 1.3;
  --lh-title: 1.55;
  --lh-body: 1.8;
  --lh-prose: 1.95;

  /* سطح واحد وزاوية واحدة لكل البطاقات */
  --r: 0.75rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
:root[data-theme="light"] {
  color-scheme: light;
}
:root[data-theme="dark"] {
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 3rem;
  /* مكان الشريط محجوز دائمًا، فلا تقفز الصفحة حين تقصر */
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  font-synthesis: none;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* العناوين تتوازن أسطرها، والفقرات لا تترك كلمة يتيمة في آخرها */
h1,
h2,
h3 {
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
/* الأرقام بعرض واحد حيث تُقرأ في أعمدة */
time,
.when,
.facts dd,
.nav a span,
.search-count,
.b-facts dd {
  font-variant-numeric: tabular-nums;
}

/* ضوء خافت يتبع المؤشر */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    34rem circle at var(--mx, 70%) var(--my, 20%),
    var(--glow),
    transparent 70%
  );
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}
ul[class],
ol[class] {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  -webkit-tap-highlight-color: transparent;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
::selection {
  background: color-mix(in srgb, var(--accent) 30%, transparent);
}
[hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   شريط التمرير: رفيع وهادئ، ويظهر أوضح عند المرور عليه
   -------------------------------------------------------------------------- */

::-webkit-scrollbar {
  width: 0.75rem;
  height: 0.75rem;
}
::-webkit-scrollbar-track,
::-webkit-scrollbar-corner {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  border: 0.22rem solid transparent;
  border-radius: 99px;
  background-color: var(--thumb);
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background-color: var(--faint);
}
/* المتصفحات التي لا تدعم ما سبق */
@supports not selector(::-webkit-scrollbar) {
  * {
    scrollbar-width: thin;
    scrollbar-color: var(--thumb) transparent;
  }
}

.serif {
  font-family: var(--display);
  font-weight: 700;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 20;
  padding: 0.35rem 1rem;
  border-radius: var(--r);
  background: var(--ink);
  color: var(--bg);
  translate: 0 -300%;
}
.skip-link:focus-visible {
  translate: 0 0;
}

/* --------------------------------------------------------------------------
   أزرار التحكم: شكل واحد وحالات واحدة في كل مكان
   -------------------------------------------------------------------------- */

.ib,
.text-size button,
.search-clear {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--soft);
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s,
    background-color 0.2s,
    scale 0.15s var(--ease);
}
.ib:hover,
.text-size button:hover:not(:disabled),
.search-clear:hover {
  border-color: var(--faint);
  background: var(--card);
  color: var(--ink);
}
.ib:active,
.text-size button:active:not(:disabled),
.search-clear:active {
  scale: 0.93;
}
.text-size button:disabled {
  opacity: 0.4;
  cursor: default;
}

.icon {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.text-size {
  display: flex;
  gap: 0.35rem;
}
.text-size button {
  font-weight: 700;
  line-height: 1;
}
.text-size button:first-child {
  font-size: var(--fs-xs);
}
.text-size button:last-child {
  font-size: 1.125rem;
}

/* --------------------------------------------------------------------------
   الهيكل
   -------------------------------------------------------------------------- */

.page {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  width: min(100% - 3rem, 64rem);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   العمود الثابت: الاسم، فهرس الصفحة، نظرة عامة عليها، ثم التواصل
   -------------------------------------------------------------------------- */

.side {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  padding-block: clamp(2.5rem, 7vh, 5rem) 2.5rem;
}
.inner .side {
  padding-block: 2.5rem 2rem;
}

/* يتمرّر فقط إن لم تسعه الشاشة، وبلا شريط ظاهر */
.side-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}
.side-scroll::-webkit-scrollbar {
  display: none;
}
.side-scroll.can-scroll {
  -webkit-mask-image: linear-gradient(#000 calc(100% - 1.5rem), transparent);
  mask-image: linear-gradient(#000 calc(100% - 1.5rem), transparent);
}

.name {
  display: block;
  font-size: var(--fs-4xl);
  line-height: var(--lh-display);
}
.inner .name {
  font-size: var(--fs-2xl);
  line-height: 1.4;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.6rem;
  margin-top: 0.2rem;
  font-size: var(--fs-xs);
  color: var(--faint);
}
.crumbs a {
  transition: color 0.2s;
}
.crumbs a:hover {
  color: var(--accent);
}
.crumbs a + a::before {
  content: "/";
  margin-inline-end: 0.6rem;
  opacity: 0.6;
}

.side-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2rem;
  margin-bottom: 0.2rem;
  font-size: var(--fs-xs);
  color: var(--faint);
}

.nav {
  display: grid;
  gap: 0.1rem;
  margin-top: 1.75rem;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  padding-block: 0.3rem;
  font-weight: 500;
  color: var(--faint);
  transition: color 0.25s;
}
.nav a::before {
  content: "";
  flex: none;
  width: 1.25rem;
  height: 1.5px;
  background: currentColor;
  transition: width 0.35s var(--ease);
}
.nav a b {
  font-weight: inherit;
}
.nav a span {
  margin-inline-start: -0.35rem;
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--faint);
}
.nav .dot {
  flex: none;
  margin: 0;
}
.nav a:hover,
.nav a.on {
  color: var(--ink);
}
.nav a:hover::before,
.nav a.on::before {
  width: 2.75rem;
}
.nav a.on::before {
  height: 2px;
  background: var(--accent);
}
/* فهرس مقال: كل فصل في سطر واحد، والعنوان الطويل يُختصر */
.nav--long a {
  padding-block: 0.2rem;
  font-size: var(--fs-sm);
}
.nav--long a b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav--long a:hover::before,
.nav--long a.on::before {
  width: 2rem;
}

.overview {
  margin-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.overview > p {
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
  color: var(--soft);
}
.overview .text-size button {
  width: 2rem;
  height: 2rem;
}
.facts {
  display: grid;
  gap: 0.4rem;
}
.facts div {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  gap: 0.75rem;
  font-size: var(--fs-sm);
  line-height: 1.7;
}
.facts dt {
  color: var(--faint);
}
.facts dd {
  font-weight: 500;
}
.facts a:hover {
  color: var(--accent);
}
.hijri {
  font-weight: 400;
}
.facts .hijri {
  display: block;
  font-size: var(--fs-xs);
  color: var(--faint);
}

/* ذيل العمود: التواصل */
.side-foot {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.mail {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  font-weight: 500;
  transition: color 0.2s;
}
.mail:hover {
  color: var(--accent);
}
.mail small {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 400;
  line-height: 1.5;
  color: var(--faint);
}
.mail bdi {
  display: block;
  line-height: 1.5;
}
.mail .icon {
  width: 1.3rem;
  height: 1.3rem;
  color: var(--accent);
}
.reach {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.ib.theme {
  margin-inline-start: auto;
}
.theme .icon {
  transition: rotate 0.5s var(--ease);
}
.theme[aria-pressed="false"] .icon {
  rotate: 180deg;
}
.today {
  margin-top: 1rem;
  font-size: var(--fs-xs);
  color: var(--faint);
}

/* --------------------------------------------------------------------------
   المحتوى
   -------------------------------------------------------------------------- */

.main {
  min-width: 0;
  padding-block: clamp(2.5rem, 7vh, 5rem) 3rem;
}
.inner .main {
  padding-top: 2.5rem;
}

.part {
  padding-bottom: clamp(3.5rem, 8vw, 5.5rem);
}

.label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: var(--fs-sm);
  color: var(--faint);
}
.label h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--accent);
}
.more {
  border-bottom: 1.5px solid var(--line);
  font-weight: 500;
  color: var(--soft);
  transition:
    color 0.2s,
    border-color 0.2s;
}
.more:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* أيقونة صغيرة بجانب كل قسم، تُرسم حين يظهر */
.doodle {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.doodle path {
  stroke-dasharray: 1;
}
.js .doodle path {
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.1s var(--ease) 0.15s;
}
.js .seen .doodle path {
  stroke-dashoffset: 0;
}

.about p {
  font-size: var(--fs-lg);
  line-height: 1.9;
}
.about p + p {
  margin-top: 0.9em;
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  color: var(--soft);
}

.year {
  display: block;
  margin: 1.75rem 0 0.2rem;
  font-size: var(--fs-2xl);
  line-height: 1.4;
  color: var(--faint);
}
.year-group:first-of-type .year {
  margin-top: 0;
}

/* صفّ: مقال أو كتاب أو مشروع. لا إطار ولا ظل، وسطح خافت عند المرور فقط */
.row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.1rem 1.5rem;
  margin-inline: -1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--r);
  transition: background-color 0.25s;
}
.row:hover,
.row:focus-within {
  background: var(--card);
}
.row :is(h2, h3) {
  font-size: var(--fs-lg);
  font-weight: 500;
  line-height: var(--lh-title);
  transition: color 0.2s;
}
.row:hover :is(h2, h3) {
  color: var(--accent);
}
/* الصف كله رابط */
.row :is(h2, h3) a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.row p {
  grid-column: 1;
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--soft);
}
.when {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: var(--fs-xs);
  white-space: nowrap;
  color: var(--faint);
}
.dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-inline-end: 0.5rem;
  border-radius: 50%;
  background: var(--tech);
}
.dot--ilm {
  background: var(--ilm);
}
.dot--islam {
  background: var(--islam);
}
.tag-sample {
  font-size: var(--fs-xs);
  opacity: 0.8;
}

/* لوحة المقال تظهر في الهامش عند المرور عليه */
.peek {
  position: fixed;
  z-index: 4;
  top: 0;
  left: 0;
  width: 13rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r);
  pointer-events: none;
  opacity: 0;
  scale: 0.9;
  rotate: -4deg;
  box-shadow: 0 1.5rem 3rem -1rem rgb(0 0 0 / 0.5);
  transition:
    opacity 0.2s,
    scale 0.25s var(--ease);
}
.peek.show {
  opacity: 1;
  scale: 1;
}
.peek img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work {
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  align-items: center;
}
.work img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0.2rem 0.4rem 0.4rem 0.2rem;
}
.work p {
  grid-column: 2;
}

.build {
  grid-template-columns: 7rem minmax(0, 1fr) auto;
}
.build h3 {
  font-weight: 700;
}
.build p {
  grid-column: 2;
  font-size: var(--fs-sm);
}
.go {
  color: var(--faint);
  transition:
    color 0.2s,
    translate 0.25s var(--ease);
}
.row:hover .go {
  color: var(--accent);
  translate: -0.2rem -0.2rem;
}
.rest {
  margin-top: 1rem;
  font-size: var(--fs-sm);
  color: var(--soft);
}
.rest a {
  border-bottom: 1.5px solid var(--line);
  transition:
    color 0.2s,
    border-color 0.2s;
}
.rest a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.foot {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: var(--faint);
}

/* ملاحظة جانبية هادئة */
.notice {
  padding-inline-start: 0.8rem;
  border-inline-start: 2px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--faint);
}

/* --------------------------------------------------------------------------
   رأس الصفحات الداخلية، والبحث
   -------------------------------------------------------------------------- */

.page-title {
  font-size: var(--fs-4xl);
  line-height: var(--lh-display);
}
.page-intro {
  max-width: 32em;
  margin-top: 0.4rem;
  font-size: var(--fs-lg);
  color: var(--soft);
}

.search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 3rem;
  margin-block: 1.75rem;
  padding-inline: 1rem 0.5rem;
  border: 1.5px solid transparent;
  border-radius: var(--r);
  background: var(--card);
  transition:
    border-color 0.2s,
    background-color 0.2s;
}
.search:hover {
  border-color: var(--line);
}
.search:focus-within {
  border-color: var(--accent);
  background: transparent;
}
.search > .icon {
  color: var(--faint);
  transition: color 0.2s;
}
.search:focus-within > .icon {
  color: var(--ink);
}
.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
}
.search input::placeholder {
  color: var(--faint);
  opacity: 1;
}
.search input::-webkit-search-cancel-button {
  display: none;
}
.search-count {
  font-size: var(--fs-xs);
  white-space: nowrap;
  color: var(--faint);
}
.search-key {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  margin-inline-end: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--faint);
}
.search:focus-within .search-key,
.search.has-text .search-key {
  display: none;
}
.search-clear {
  width: 2rem;
  height: 2rem;
  border-color: transparent;
}
.search-clear .icon {
  width: 0.95rem;
  height: 0.95rem;
}

.empty {
  padding-block: 1rem 4rem;
  font-size: var(--fs-md);
  color: var(--soft);
}
.empty button {
  padding: 0;
  border: 0;
  border-bottom: 1.5px solid var(--line);
  background: none;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.empty button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lost {
  padding-block: clamp(2rem, 10vh, 6rem);
}
.lost-code {
  font-size: clamp(6rem, 20vw, 11rem);
  line-height: 1;
  color: var(--accent);
}
.lost p {
  max-width: 28em;
  margin-top: 0.5rem;
  font-size: var(--fs-lg);
  color: var(--soft);
}
.lost a {
  border-bottom: 1.5px solid var(--accent);
  font-weight: 500;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   الشاشات العريضة: ما يعرضه العمود لا يتكرر في المتن
   -------------------------------------------------------------------------- */

@media (min-width: 54.01rem) and (min-height: 43.01rem) {
  .only-narrow {
    display: none !important;
  }
}

/* شاشة حاسوب محمول: يُضمّ العمود قليلًا ليبقى كله ظاهرًا بلا تمرير */
@media (min-width: 54.01rem) and (max-height: 47rem) {
  .side,
  .inner .side {
    padding-block: 1.75rem 1.5rem;
  }
  .main,
  .inner .main {
    padding-top: 1.75rem;
  }
  .home .name {
    font-size: 2.625rem;
  }
  .nav {
    margin-top: 1.25rem;
  }
  .overview {
    margin-top: 1rem;
    padding-bottom: 1rem;
  }
  .today,
  .facts .hijri {
    display: none;
  }
}

/* شاشة عريضة قصيرة: تُحذف النظرة العامة من العمود وتعود بياناتها إلى المتن */
@media (min-width: 54.01rem) and (max-height: 43rem) {
  .side,
  .inner .side {
    padding-block: 1.5rem 1.25rem;
  }
  .home .name {
    font-size: 2.4rem;
  }
  .nav {
    margin-top: 1rem;
  }
  .overview,
  .today,
  .a-tools .toc {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   الجوال: الاسم والفهرس أعلى الصفحة، والتواصل في آخرها
   -------------------------------------------------------------------------- */

@media (max-width: 54rem) {
  .page {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .side,
  .side-scroll {
    display: contents;
  }
  .name {
    order: 1;
    margin-top: 2rem;
  }
  .inner .name {
    font-size: 1.75rem;
  }
  .crumbs {
    order: 2;
  }
  /* في الرئيسية تبقى النظرة العامة تحت الاسم، وفي غيرها يعرضها المتن نفسه */
  .overview {
    display: none;
  }
  .home .overview {
    order: 2;
    display: block;
    margin-top: 0.75rem;
    padding-bottom: 0;
  }
  .side-label {
    display: none;
  }
  .nav {
    order: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    margin-block: 1.25rem 0;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--line);
  }
  .nav--long {
    display: none;
  }
  .nav a {
    gap: 0.5rem;
  }
  .nav a::before {
    display: none;
  }
  .nav a span {
    margin-inline-start: 0;
  }
  .nav a.on {
    color: var(--accent);
  }
  .main,
  .inner .main {
    order: 4;
    padding-top: 2.25rem;
  }
  .side-foot {
    order: 5;
    margin: 0 0 2.5rem;
  }

  .peek {
    display: none;
  }
  .build {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .build p {
    grid-column: 1;
  }
  .search-key {
    display: none;
  }
}

@media (max-width: 30rem) {
  .row {
    grid-template-columns: minmax(0, 1fr);
  }
  .work {
    grid-template-columns: 3rem minmax(0, 1fr);
  }
  .work .when {
    grid-column: 2;
  }
  .build {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (hover: none) {
  .peek {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
  .js .doodle path {
    stroke-dashoffset: 0;
  }
}

@media print {
  .side-foot,
  .nav,
  .overview,
  .peek,
  .search {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}
