@charset "UTF-8";
:root {
    --bg: #ffffff;
    --ink: #202124;
    --ink-soft: #5f6368;
    --ink-strong: #101114;
    --line: #e8eaed;
    --accent: #1a73e8;

    --primary-fore-color: #0d2544;
    --primary-back-color: #98b8e3;
    --primary-border-color: #5b7ba6;
    --primary-hover-color: #b2cff5;

    --secondary-fore-color: #444;
    --secondary-back-color: #f0f0f0;
    --secondary-border-color: #ccc;
    --secondary-disabled-color: #ddd;

    --action-fore-color: #4d1111;
    --action-back-color: #f4c3c3;
    --action-border-color: #aa6b6b;
    --action-hover-color: #fce1e1;

    --sidebar-back-color: #f0f0f0; /* #eff8ff; */
    --footer-bg: #18203f;
    --nb-image-background: #fff;

    --color-primary-base: #df2135;
    --color-secondary-base: #2b2b2b;
    --color-tertiary-base: #036;
    --color-green-base: #5b7b75;

    --color-background-base: #fff;
    --color-background-light: #f5f2f0;
    --color-background-grey: #e9e9e9;

    --color-text-base: #2b2b2b;

    --color-grey-base: #8c8c8c;
    --color-grey-medium: #9ca3af;
    --color-grey-dark: #444341;
    --color-grey-light: #ccc;

    --color-success-base: #00a208;
    --color-warning-base: #ff6d00;
    --color-danger-base: #f00;

    --color-shades-base: #fff;
    --color-white-base: #fff;
    --color-black-base: #2b2b2b;
    --color-shades-transparent: transparent;

    --bg-header: rgba(255, 255, 255, 0.5);
    --shadow-header: rgb(0, 0, 0, 0.1);
    --shadow: rgba(0, 0, 0, 0.5);
    --shadow-hover: rgba(0, 0, 0, 0.85);

    --btn-bg: #f8f8f8;
    --btn-bg-hover: #fff;
}

:root {
    --font-text: "Noto Serif", "serif";
    --font-base: "Helvetica Neue", "Helvetica", "Arial", "sans-serif";
    --code-font: "Courier New", "Monospace", "Consolas", "Monaco", "sans-serif";

    --max: 766px;
    --max-wide: 900px;
}

:root {
    --scroll-behavior: smooth;
    --carousel-animation-duration: 5000;
    --carousel-animation-type: "translate";
    --carousel-transition: .5s;
    --number-transition1: .5s;
    --number-transition2: 1s;
    --number-transition3: 1.5s;
    --number-transition4: 2s;
}

[data-theme="dark"] {
    --bg: #000124;
    --ink: #afb3b8; /* #e6e6e6; */
    --ink-soft: #8fa3a8;
    --ink-strong: #c6c6c6;
    --line: #383a3d;
    --accent:  #ea3818; /*#ea8318 #ea3818;*/
    --primary-fore-color: #dcebfb;
    --primary-back-color: #162c46;
    --primary-border-color: #2c4c74;
    --primary-hover-color: #1f3a5a;
    --secondary-fore-color: #b0b0b0;
    --secondary-back-color: #252525;
    --secondary-border-color: #333333;
    --secondary-hover-color: #333333;
    --secondary-disabled-color: #444444;
    --action-fore-color: #fddddd;
    --action-back-color: #4a1818;
    --action-border-color: #752e2e;
    --action-hover-color: #6a3838;
    --sidebar-back-color: #1f283f;
    --footer-bg: #df2136;  /* #ea3818; #0f182f; */
    --nb-image-background: #ccc;

    --bg-header: rgba(0, 0, 0, 0.5);
    --shadow-header: rgb(255, 255, 255, 0.1);
    --shadow: rgba(255, 255, 255, 0.5);
    --shadow-hover: rgba(255, 255, 255, 0.85);

    --btn-bg: #282828;
    --btn-bg-hover: #333;

}

*, *:before, *:after {
    /*margin-top: 0.1rem;*/
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.main {
    position: relative;
    padding-top: 75px;
    -webkit-transition: padding var(--carousel-transition) ease;
    transition: padding var(--carousel-transition) ease;
}

.logged .main {
    padding-top: 43px;
}

@media (min-width: 1024px) {
    .main {
        padding-top: 176px;
    }

    .logged .main {
        padding-top: 176px;
    }
}

.menu-is-close .main {
    padding-top: 60px;
}

h1 {
    /*font-family: "acumin-pro" !important;*/
    font-weight: 700 !important;
}

html {
    font-family: var(--font-base);
    line-height: 1.6;
    font-size: 16px;
    font-size: 62.5%;
    font-size: calc(1em * .625);
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--bg);
    font-size: 16px;
    color: var(--ink-soft);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

article, aside, footer, header, nav, section {
    display: block;
}

h1 {
    margin: 1em 0 0 .67em;
}

figcaption, figure, main {
    display: block;
}

figure {
    margin: 1em 40px;
}

hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
}

pre {
    font-family: monospace, monospace;
    font-size: 1em;
}

a {
    background-color: transparent;
    -webkit-text-decoration-skip: objects;
    color: inherit;
    cursor: pointer;
}

a:active, a:hover {
    outline-width: 0;
}

abbr[title] {
    border-bottom: none;
    text-decoration: underline;
    text-decoration: underline dotted;
}

b, strong {
    font-weight: inherit;
}

b, strong {
    font-weight: bolder;
    color: var(--ink);
}

code, kbd, samp {
    font-family: monospace, monospace;
    font-size: 1em;
}

dfn {
    font-style: italic;
}

mark {
    background-color: #ff0;
    color: #000;
}

small {
    font-size: 80%;
}

sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -.25em;
}

sup {
    top: -.5em;
}

audio, video {
    display: inline-block;
}

audio:not([controls]) {
    display: none;
    height: 0;
}

img {
    border-style: none;
}

svg:not(:root) {
    overflow: hidden;
}

button, input, optgroup, select, textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

button, input {
    overflow: visible;
}

button, select {
    text-transform: none;
}

button, html [type="button"], [type="reset"], [type="submit"] {
    -webkit-appearance: button;
}

button {
    cursor: pointer;
    border: none;
}

button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

button:-moz-focusring, [type="button"]:-moz-focusring, [type="reset"]:-moz-focusring, [type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

fieldset {
    border: 1px solid #c0c0c0;
    margin: 0 2px;
    padding: .35em .625em .75em;
}

legend {
    box-sizing: border-box;
    color: inherit;
    display: table;
    max-width: 100%;
    padding: 0;
    white-space: normal;
}

progress {
    display: inline-block;
    vertical-align: baseline;
}

textarea {
    overflow: auto;
}

[type="checkbox"], [type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

[type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-outer-spin-button {
    height: auto;
}

[type="search"] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

[type="search"]::-webkit-search-cancel-button, [type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

details, menu {
    display: block;
}

summary {
    display: list-item;
}

canvas {
    display: inline-block;
}

template {
    display: none;
}

h2 + ul, h3 + ul,
h2 + p, h2 + .wysiwyg, h3 + p, .fieldset .legend + p, .fieldset__title + p, h3 + .wysiwyg, .fieldset .legend + .wysiwyg, .fieldset__title + .wysiwyg, h4 + p, h4 + .wysiwyg, .h2 + p, .h2 + .wysiwyg, .h3 + p, .h3 + .wysiwyg, .h4 + p, .h4 + .wysiwyg {
    margin-top: 1em;
}

p + h2, p + h3, .fieldset p + .legend, p + .fieldset__title, p + h4, p + .h2, p + .h3, p + .h4, .wysiwyg + h2, .wysiwyg + h3, .fieldset .wysiwyg + .legend, .wysiwyg + .fieldset__title, .wysiwyg + h4, .wysiwyg + .h2, .wysiwyg + .h3, .wysiwyg + .h4 {
    margin-top: 1em;
}

h2, h3, h4, h2 + h3, h3 + h4 {
   margin-top: 1em;
}

p {
    margin-top: 0;
    margin-bottom: 0;
}

P + P {
    margin-top: 0.8em;
}

/*.cta-block {
    margin-top: 30px;
}

@media (min-width: 1024px) {
    .cta-block {
        margin-top: 40px;
    }
}*/

/*.wysiwyg-flat h2, .wysiwyg-flat h3, .wysiwyg-flat .fieldset .legend, .fieldset .wysiwyg-flat .legend, .wysiwyg-flat .fieldset__title, .wysiwyg-flat h4, .wysiwyg-flat h5, .wysiwyg-flat h6, .wysiwyg-flat .h2, .wysiwyg-flat .h3, .wysiwyg-flat .h4, .wysiwyg-flat .h5, .wysiwyg-flat .h6 {
    font-size: 16px !important;
    font-weight: normal;
    text-decoration: none;
}*/

[hidden] {
    display: none !important;
}

/*::selection {
    background: var(--color-primary-base);
}

::-moz-selection {
    background: var(--color-primary-base);
}*/

* {
    -webkit-tap-highlight-color: var(--color-primary-base);
}

.h1, h1, .h2, h2, .h3, h3, .fieldset .legend, .fieldset__title, .h4, h4 {
    /*margin: 0;*/
    font-weight: normal;
    line-height: 1.2;
    color: var(--ink);
}

.h1, h1 {
    font-size: 40px;
    line-height: 48px;
    font-family: var(--font-text);
}

.h2, h2 {
    font-size: 60px;
    line-height: 1;
    font-family: var(--font-text);
}

.h3, h3, .fieldset .legend, .fieldset__title {
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    font-family: var(--font-base);
}

.h4, h4 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    font-family: var(--font-base);
}

.iframe {
    display: block;
    border: none;
}

.image {
    max-width: 100%;
    height: auto;
}

.image--radius {
    border-radius: 30px;
}

.list-separator {
    list-style: none;
    margin: 0;
    padding: 0;
}

.list-separator > li {
    padding: 40px 0;
    border-bottom: 1px solid var(--color-grey-light);
}

.list-separator > li:last-child {
    border-bottom: none;
}

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

.list-margin > li {
    margin-bottom: 30px;
}

.list-margin > li:last-child {
    margin-bottom: 0;
}

a {
    text-decoration: none;
}

ul, ol {
    margin-top: 0.6em;
    padding-left: 20px;
}

li ul { margin-top: 0; }

blockquote {
    margin: 0;
}

.font-variant {
    font-family: var(--font-text);
}

.font-normal {
    font-size: 16px;
}

.font-small {
    font-size: 12px;
}

.bold {
    font-weight: 700 !important;
}

.extra-bold {
    font-weight: 800 !important;
}

.italic {
    font-style: italic !important;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-uppercase {
    text-transform: uppercase;
}

.text-underline {
    text-decoration: underline;
}

.no-wrap {
    white-space: nowrap;
}

.pre-line {
    white-space: pre-line;
}

.text-white {
    color: var(--color-white-base) !important;
}

.text-big {
    font-size: 34px;
    line-height: 51px;
}

.text-error {
    color: red;
}

.title-2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 42px;
    font-family: var(--font-base);
}

@media (max-width: 1023.98px) {
    .title-2 {
        font-size: 24px;
        line-height: 28.8px;
    }
}

.title-3 {
    font-size: 22px;
    font-weight: 700;
    line-height: 33px;
    font-family: var(--font-base);
}

.title-4 {
    font-size: 18px;
    font-weight: 700;
    line-height: 27px;
    font-family: var(--font-base);
}

.title--white {
    color: var(--color-white-base);
}

html, body {
    width: 100%;
    height: 100%;
}

[class * =" grid--"], [class^="grid--"] {
    display: -ms-grid;
    display: grid;
    grid-auto-flow: dense;
}

.autogrid, .grid {
    display: -ms-grid;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
}

form, input, textarea {
    /*font-size: 1rem;*/
    padding: 6px 16px;
    margin: 1rem 0;
    background: var(--bg);
    color: var(--ink);
}
input, textarea {
    border:1px solid var(--primary-border-color);
    border-radius: 16px;
}
/*::selection { background: var(--ink); color: var(--bg); }*/
input.ask-irfan {
    padding: 6px 16px;
    margin: 6px auto;
    font-size: 14px;
    color: var(--fore-color);
    background-color: var(--back-color);
    border: 1px solid var(--secondary-border-color);
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
}
.search-filter a {
    color: var(--ink-soft);
    margin-left: 16px;
}
a { color: var(--ink); }
pre {
    overflow-x: auto;
    white-space: pre-wrap;
    max-width: 100%;
    font-size: 0.9em;
    color: var(--ink);
}
@media (max-width: 600px) {
    pre {font-size: 0.9em;}
}
@media (min-width: 1200px) {
    pre {min-width: 500px;}
}
#theme-toggle {
    cursor: pointer;
    height:29px;
    width:29px;
    padding: 6px;
    color: var(--ink);
    background: transparent;
    border:0;
    border-radius: 50%;
}
#theme-toggle:hover {
    background: var(--line);
}
a.btn {
    text-decoration: none;
}
.btn {
    padding: 6px 16px;
    margin: 16px;
    font-size: 14px;
    color: var(--fore-color);
    background-color: var(--btn-bg);
    border: 1px solid var(--secondary-border-color);
    border-radius: 16px;
}
.btn:hover {
    background-color: var(--btn-bg-hover);
    color: var(--ink);
}
.btn-primary {
    border: 1px solid var(--primary-border-color);
    background-color: var(--primary-back-color);
    color: var(--ink);
}
.btn-primary:hover {
    background-color: var(--primary-hover-color);
    color: var(--ink);
}
.btn-secondary {
    border: 1px solid var(--secondary-border-color);
    background-color: var(--secondary-back-color);
    color: var(--ink);
}
.btn-secondary:hover {
    background-color: var(--secondary-hover-color);
    color: var(--ink);
}
.btn-action {
    border: 1px solid var(--action-border-color);
    background-color: var(--action-back-color);
    color: var(--ink);
}
.btn-action:hover {
    background-color: var(--action-hover-color);
    color: var(--ink);
}

.right {float: right;}
.tag,
.author {
    padding: 1px 4px;
    border-radius: 10px;
    background-color: var(--secondary-back-color);
}
a.tag,
a.author {
    text-decoration: none;
    color: var(--secondary-fore-color);
    font-family: "Courier New", Courier, monospace;
    font-size: 14px;
    margin: 2px;
}
a.tag-primary {
    background-color: var(--primary-back-color);
}
a.tag-action {
    background-color: var(--action-back-color);
}
hr {
    box-sizing: content-box;
    border: 0;
    line-height: 1.25em;
    margin: 84px auto;
    height: 0.0625rem;
    background: linear-gradient(
        to right,
        transparent,
        var(--line) 20%,
        var(--line) 80%,
        transparent
    );
}
blockquote {
    /*display: block;
    position: relative;*/
    font-family: Times, Serif;
    font-style: italic;
    font-weight: 400;
    color: var(--ink);
    margin: 24px auto;
    padding-left: 1rem;
}
code,
kbd,
pre,
samp {
    font-family: var(--code-font);
    font-size: 12px;
}
.w-25 {width:25%}
.w-50 {width:50%}
.w-75 {width:75%}
.w-100 {width: 100%}

.border {
    padding: 1rem 2rem;
    border: 1px solid var(--line);
}

.rounded {
    border-radius: 1rem;
}

.bg-primary {
    background-color: var(--primary-back-color);
}

.bg-secondary {
    background-color: var(--secondary-back-color);
}


/* ---------- Header ---------- */
header {
    padding: 1em 0;
    position: sticky;
    top: 0;
    background: var(--bg-header);
    box-shadow: 0 10px 20px var(--shadow-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    z-index: 10;
}
.nav {
    max-height: 29px;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.foot div.languages {gap: 12px}
.foot div.languages a {border: 1px solid var(--ink-soft); padding: 1px 2px; border-radius:6px;}
.foot div.languages a:hover {border: 1px solid #fff; padding: 1px 2px}
.logo {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
  /*margin-top: -1em;*/
}
.logo span { color: var(--accent); }
.logo img {max-width: 29px; max-height:29px; margin-bottom:-.8rem}
.nav-links { display: flex; gap: 28px; list-style: none; padding: 0; }
.nav-links a {
    padding: 0;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  /*letter-spacing: .02em;*/
  transition: color .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links li {margin: 0}
/* ---------- Hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 60px 24px 0;
}

.hero .dot {
    color: var(--accent);
}

.hero h1 {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1.1;
  margin: 0.5em 0 0 0;
  }

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

.hero p {
  margin-top: 28px;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 640px;
}

.hero p.kicker { font-size: 11px; color: var(--ink); }

.hero blockquote {
    font-size: 19px;
    line-height: 1.6;
}

.cta {
    text-decoration: none;
}
.cta {
  display: inline-block;
  margin: 44px 20px 0 0;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: opacity .2s ease;
}

.cta:hover {
    /*color: var(--ink-strong);
    border-bottom: 1px solid var(--ink-strong);*/
    opacity: .65;
}

/* ---------- Sections ---------- */
section.block {
  max-width: var(--max);
  margin: 0 auto;
  padding: 90px 24px;
  border-top: 1px solid var(--line);
}

section.no-border {
    border: 0;
}

section.sidebar {
    /*margin-top: 60px;*/
    background: var(--sidebar-back-color);
    font-size:90%;
}

section.block.wide { max-width: var(--max-wide); }

.kicker {
    margin-bottom: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink);
}

section.block h1 {
    line-height: 1.3;
    margin: 0 auto 24px;
}

section.block h2 {
    font-size: 30px;
    font-weight: 400;
    letter-spacing: -.02em;
    line-height: 1.25;
    margin: 24px auto;
}

section.block p { color: var(--ink-soft); margin-bottom: 18px; }
section.block p strong { color: var(--ink-strong); font-weight: 600; }

/* ---------- Alphabet index ---------- */
.index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 40px;
}

.index a {
  background: var(--bg);
  padding: 26px 10px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  font-size: 20px;
  font-weight: 300;
  transition: background .25s ease, color .25s ease;
}

.index a small {
  display: block;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 6px;
}

.index a:hover { background: var(--ink); color: var(--bg); }
.index a:hover small { color: var(--bg); opacity: .6; }

/* ---------- Pricing ---------- */
.pricing-note { font-size: 14px; margin-bottom: 48px; }

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.tier {
  background: var(--bg);
  padding: 44px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background .25s ease;
}

.tier:hover { background: #fafafa; }

.tier.featured { background: var(--ink); color: var(--bg); }
.tier.featured:hover { background: #303134; }

.tier .tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.tier.featured .tag { color: var(--bg); opacity: .55; }

.tier h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.tier .price {
  font-size: 44px;
  font-weight: 300;
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 6px;
}

.tier .price sup { font-size: 16px; font-weight: 400; vertical-align: 22px; }

.tier .per {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 30px;
}

.tier.featured .per { color: var(--bg); opacity: .55; }

.tier ul { list-style: none; flex: 1; }

.tier li {
  font-size: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.tier.featured li { border-color: rgba(255,255,255,.15); color: var(--bg); opacity: .85; }

.tier .pick {
  margin-top: 30px;
  display: inline-block;
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  align-self: flex-start;
  color: var(--ink);
  transition: opacity .2s ease;
}

.tier.featured .pick { color: var(--bg); }
.tier .pick:hover { opacity: .55; }

/* ---------- Principles ---------- */
.principles { list-style: none; margin-top: 8px; }

.principles li {
  display: flex;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.principles li:last-child { border-bottom: none; }

.principles .num {
  font-size: 13px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  padding-top: 4px;
}

.principles h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 4px;
}

.principles p { margin: 0; font-size: 15px; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-weight: 300;
  font-size: 20px;
  color: var(--ink-soft);
  transition: transform .25s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p { padding: 0 0 20px; font-size: 15px; margin: 0; }

/* ---------- Article page ---------- */
.article-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 90px 24px 60px;
}

.article-head h1 {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -.03em;
  line-height: 1.15;
  margin: 18px 0 24px;
}

.meta {
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.meta time { font-variant-numeric: tabular-nums; }

.prose {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 90px;
}

.hero .prose {
    padding-bottom: 0;
}

.prose p {
    line-height: 1.6;
    margin-top: 1em;
}

.prose p.lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 42px;
  padding: 1.2em;
  border-radius: 1em;
  background: var(--btn-bg);
}

.prose h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.02em;
  /*margin: 8px 0 0;*/
  color: var(--ink-strong);
  border-bottom: 1px solid var(--secondary-border-color);
}

.prose h3 {
    font-family: var(--font-base);
  color: var(--ink);
  border-bottom: 1px solid var(--secondary-border-color);
  /*margin: 1em 0 0;*/
}

.prose h4 {
    font-family: var(--font-base);
    color: var(--ink-soft);
    /*margin: 8px 0;*/
}

.prose blockquote {
  border-left: 0.5rem solid var(--ink);
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink-strong);
  /*letter-spacing: -.01em;*/
}

.prose code {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 13.5px;
  padding: 2px 6px;
  border-radius: 3px;
}

.prose pre {
    overflow-x: auto;
    display: block;
    position: relative;
    color: var(--secondary-fore-color);
    margin: 24px auto;
    padding: 1rem;
    border-left: 2px solid var(--accent);
    background-color: var(--secondary-back-color);
}

.prose pre code { background: none; padding: 0; font-size: 13.5px; line-height: 1.6; }

/*.prose ul, .prose ol { margin: 0 0 26px 22px; }*/
/*.prose li { margin-bottom: 8px; }*/

.prose hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 48px 0;
}

.prose img {
    max-width: 93%;
    margin: 1.2rem;
    object-fit: cover; /* Ensures the image covers the area */
    border-radius: 15px; /* Optional: Gives a nicer look */
    box-shadow: 0 10px 20px var(--shadow);
    transition: all 0.3s ease;
    background-color: var(--nb-image-background);
}

.prose img.no-shadow {
    margin: 0;
    max-width: 100%;
    /*background-color: var(--nb-image-background);*/
    border-radius: 0px;
    box-shadow: 0 0 0 0;
}

.prose img.shadow:hover {
    box-shadow: 0 15px 30px var(--shadow-hover);
    transform: translateY(-5px);
}

.shadow {
    border-radius: 15px; /* Optional: Gives a nicer look */
    box-shadow: 0 10px 20px var(--shadow);
    transition: all 0.3s ease;
}

.footnote { font-size: 13px; color: var(--ink-soft); }

/* ---------- Search page ---------- */
.search-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 110px 24px 40px;
}

.search-hero h1 {
  font-size: clamp(34px, 6vw, 54px);
  font-weight: 400;
  letter-spacing: -.03em;
  margin-bottom: 40px;
}

.search-box {
  display: flex;
  align-items: baseline;
  gap: 14px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px;
}

.search-box .glyph { font-size: 20px; color: var(--ink-soft); }

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: none;
  font: inherit;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -.01em;
  color: var(--ink);
}

.search-box input::placeholder { color: #bdc1c6; }

.search-hint {
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-soft);
}

.search-hint kbd {
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 11px;
}

.results {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px 100px;
}
.result-count {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 24px 0 8px;
}
.result {
  display: block;
  text-decoration: none;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: opacity .2s ease;
}
.result:hover { opacity: .6; }
.result .r-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.result h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: 4px;
}
.result p { font-size: 14px; color: var(--ink-soft); margin: 0; }
.result mark { background: #fef7e0; color: inherit; padding: 0 1px; }

.empty {
  padding: 60px 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.pagination {
    text-align: center;
    color: var(--a-hover-color);
    margin-top: 40px;
}
.pagination a {
    text-decoration: none;
    margin: 1px;
    background-color: var(--secondary-back-color);
    color: var(--secondary-fore-color);
    border-color: var(--secondary-border-color);
    padding: 4px 8px;
    border-radius: 4px;
}
.pagination a:hover {
    background-color: var(--primary-hover-color);
}
.pagination a.active {
    background-color: var(--action-back-color);
    color: var(--action-fore-color);
    border: var(--action-border-color);
}
.pagination a.disabled {
    background-color: var(--secondary-back-color);
    color: var(--secondary-disabled-color);
}

/* ---------- Footer ---------- */
footer {
    width: 100%;
    border-top: 1px solid var(--line);
    background: var(--footer-bg);
    margin: 0 auto;
}

.foot {
    /*border-top: 16px solid #0f0;*/
    background: transparent;
    margin: 0 auto;
    max-width: var(--max);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.foot small { color: #eee; font-size: 12px; }
.foot div { display: flex; gap: 22px; }
.foot div a {
    color: #eee;
    text-decoration: none;
}
.foot div a:hover { color: #fff; }

/* ---------- Reveal on scroll ---------- */
.reveal {
opacity: 0;
transform: translateY(18px);
transition: opacity .8s ease, transform .8s ease;
}

.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .tiers { grid-template-columns: 1fr; }
  .nav-links { gap: 18px; }
}

@media (max-width: 480px) {
  .nav-links { gap: 16px; }
  .hero { padding: 90px 24px 80px; }
  .tier { padding: 36px 24px; }
}

.pages-info {
    margin-top: 1rem;
    text-align: center;
    font-size: small;
    color: var(--secondary-fore-color);
}
.alert {
    margin: 1rem;
    padding: 1rem;
    border-radius: 0.4rem;
    border:1px solid var(--secondary-border-color);
    background: var(--secondary-back-color);
}

.alert-primary {
    border:1px solid var(--secondary-border-color);
    background: var(--primary-back-color);
}

table {
    width: 100%;
    border: 1px solid #666;
    border-collapse: collapse;
    margin: 24px auto;
}
th:first-of-type {
    width: 25%;
}
td {
    min-width: 25%;
    border:1px solid #666;
    padding: 4px;
}

#my_btn {
  opacity:0;
  position: fixed;
  bottom: 12px;
  right: 30px;
  z-index: 99;
  background-color: var(--btn-bg);
  border: 1px solid var(--line);
  color:var(--ink);
  padding: 0 10px;
  border-radius: 6px;
  font-size: 18px;
  cursor: pointer;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

#my_btn:hover {
  background-color: var(--btn-bg-hover);
}

#my_btn.show {
    opacity: 1;
    pointer-events: auto;
}
