/* Plain-CSS port of src/styles/global.css. No Tailwind build step. */

/* The parts of the Tailwind preflight reset this site depends on. */
*, ::before, ::after { box-sizing: border-box; border: 0 solid #e5e7eb; }
html { tab-size: 4; -webkit-text-size-adjust: 100%; }
body, blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre, ul, ol, menu { margin: 0; }
ul, ol, menu { list-style: none; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
code, kbd, samp, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 1em;
}
table { text-indent: 0; border-color: inherit; border-collapse: collapse; }
img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; padding: 0; cursor: pointer; text-transform: none; }
hr { height: 0; color: inherit; border-top-width: 1px; }

.theme-newspaper {
  --color-primary-main: 15 23 42;
  --color-text-body: 15 23 42;
  --color-text-heading: 15 23 42;
  --color-text-bold: 15 23 42;
  --color-text-muted: 100 116 139;
  --color-text-link: 79 116 243;
  --color-text-code: 0 0 0;
  --color-text-selection: 0 0 0;
  --color-bg-body: 255 255 255;
  --color-bg-code: 254 243 199;
  --color-bg-selection: 226 232 240;
  --color-border-code: 244 244 245;
  --color-border-comment: 203 213 225;
  --color-border-tables: 203 213 225;
}

.theme-newspaper.dark {
  --color-primary-main: 255 255 255;
  --color-text-body: 229 229 229;
  --color-text-heading: 255 255 255;
  --color-text-bold: 255 255 255;
  --color-text-muted: 212 212 212;
  --color-text-link: 79 116 243;
  --color-text-code: 255 255 255;
  --color-text-selection: 0 0 0;
  --color-bg-body: 38 38 38;
  --color-bg-code: 234 179 8;
  --color-bg-selection: 255 255 255;
  --color-border-code: 64 64 64;
  --color-border-comment: 60  63  67;
  --color-border-tables: 60  63  67;
}

:root {
  font-family: "Roboto Mono", sans-serif;
  background-color: rgb(var(--color-bg-body));
  color: rgb(var(--color-text-body));
  font-size: 1.0625em;
  line-height: 2;
  scroll-behavior: smooth;
}

/* ------ GLOBAL STYLES - START ------ */
    strong {
        font-weight: 600;
        color: rgb(var(--color-text-bold));
    }

    mark {
        background-color: rgb(var(--color-bg-selection));
        color: rgb(var(--color-text-selection));
    }

    /* 
        if you want an anchor tag to not have this style, 
        just add a class `unset` to it. 
    */
    a:not(.unset) {
        text-decoration: none;
        background-repeat: no-repeat;
        background-size: 100% 1.2px;
        background-position: 0 100%;
        background-image:
            linear-gradient(to right, rgb(var(--color-text-link)), rgb(var(--color-text-link)));
    }

    a:not(.unset):hover {
        color: rgb(var(--color-text-link));
    }

    button:not(.unset) {
        text-decoration: none;
        background-repeat: no-repeat;
        background-size: 100% 1.2px;
        background-position: 0 100%;
        background-image:
            linear-gradient(to right, rgb(var(--color-text-link)), rgb(var(--color-text-link)));
    }

    button:not(.unset):hover {
        color: rgb(var(--color-text-link));
    }

    code:not(pre code):not(.unset) {
        background-color: rgb(var(--color-bg-code));
        color: rgb(var(--color-text-code));
        padding: 0.125rem 0.25rem;
        border-radius: 0.25rem;
        font-size: 0.875em;
        font-weight: 600;
        border: 1px solid rgb(var(--color-border-code));
        margin-bottom: 1.25em;
    }

    html.dark code:not(pre code) {
        background-color: rgb(var(--color-bg-code) / 0.1);
        border-color: rgb(var(--color-border-code) / 0.25);
    }

    ul:not(.unset):not(:where([class~="prose"] *)) {
        padding-left: 0;
        list-style: none;
    }

    ul:not(:where([class~="prose"] *))>li {
        position: relative;
        padding-left: 1.375rem;
    }

    ul:not(.unset):not(:where([class~="prose"] *))>li::before {
        position: absolute;
        left: 0;
        content: "»";
        color: rgb(var(--color-text-muted));
    }

    ol:not(.unset):not(:where([class~="prose"] *)) {
        padding-left: 1.125rem;
    }

    ol:not(.unset):not(:where([class~="prose"] *))>li::marker {
        color: rgb(var(--color-text-muted))
    }

    ul:not(.unset):not(:where([class~="prose"] *))>li,
    ol:not(.unset):not(:where([class~="prose"] *))>li {
        margin-top: 0.5em;
        margin-bottom: 0.5em;
    }

    ::selection {
        background: rgb(var(--color-bg-selection));
        color: rgb(var(--color-text-selection));
    }

    /* ------ GLOBAL STYLES - END ------ */

    /* ------ REUSABLE UTILS - START ------ */
    .animated-link {
        position: relative;
        box-decoration-break: clone;
        text-decoration: none;
    }

    .animated-link:hover:after {
        transform: translateZ(0) scale(1);
    }

    .animated-link:after {
        left: 0;
        right: 0;
        bottom: -2px;
        content: "";
        height: 2px;
        position: absolute;
        transform: translateZ(0) scaleX(0);
        transform-origin: left center;
        transition: all .150s ease-in-out;
        background-image: linear-gradient(to right, rgb(var(--color-text-link)), rgb(var(--color-text-link)));
    }

    .animated-link.show:after {
        transform: translateZ(0) scale(1);
    }

    /* ------ REUSABLE UTILS - END ------ */

body {
  margin: 0 auto;
  width: 100%;
  max-width: 80ch;
  padding: 1rem;
  line-height: 1.5;
}

h1 {
  margin: 1rem 0;
  font-size: 2.5rem;
}
h2 {
  margin: 0.75rem 0;
  font-size: 1.75rem;
}
h3 {
  margin: 0.5rem 0;
  font-size: 1.5rem;
}
h4 {
  margin: 0.4rem 0;
  font-size: 1.3rem;
}
h5 {
  margin: 0.3rem 0;
  font-size: 1.2rem;
}
h6 {
  margin: 0.1rem 0;
  font-size: 1.1rem;
}
table {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    border-collapse: collapse;
}
table th {
    padding: 8px;
    border: 1px solid rgb(var(--color-border-tables));
}
table td {
    border: 1px solid rgb(var(--color-border-tables));
}
/* Tags */
.tags {
  display: flex; 
  flex-wrap: wrap; 
  margin: 0 auto;  
}

.tag {
  margin: 0.25em;
  border: dotted 1px #a1a1a1;
  border-radius: .5em;
  padding: .5em 1em;
  font-size: 1.15em;
/*  background-color: #F8FCFD; */
}

.thread-link {
    list-style: none;
    display: flex;
    padding: 0.25rem;
    /*background-image: none;
    background-size: 400%;
    border-radius: 0.6rem;
    background-position: 100%;
    transition: background-position 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);*/
    /*padding: .5em 1em;
    font-size: 1em;*/
    flex-wrap: wrap; 
    margin: 0 auto;  
}

.thread-link > a {
    text-decoration: none;
    margin: 0.25em;
    border: dotted 1px #a1a1a1;
    border-radius: .5em;
    padding: .5em 1em;
    font-size: 1em;
}
.thread-link > a:hover{
    color: rgb(var(--color-text-link));
}
.thread-link > a > h5 {
    background-repeat: no-repeat;
    background-size: 100% 1.2px;
    background-position: 0 100%;
    background-image:
            linear-gradient(to right, rgb(var(--color-text-link)), rgb(var(--color-text-link)));
}

/*.thread-link:is(:hover, :focus-within) {
    background-position: 0;
    background-image: var(--accent-gradient);
}
.thread-link:is(:hover, :focus-within) h2 {
      color: rgb(var(--accent));
}*/

/* nav styles */

.hamburger {
  padding-right: 20px;
  cursor: pointer;
}

.hamburger .line {
  display: block;
  width: 40px;
  height: 5px;
  margin-bottom: 10px;
  background-color: rgb(var(--color-text-link));
}

.nav-links {
  width: 100%;
  top: 5rem;
  left: 48px;
  background-color: #ff9776;
  display: none;
  margin: 0;
}

.nav-links a {
  display: block;
  text-align: center;
  padding: 10px 0;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
}

.nav-links a:hover, a:focus {
 /* background-color: #ff9776;*/
}

.expanded {
  display: unset;
}

@media screen and (min-width: 636px) {
  .nav-links {
    margin-left: 5em;
    display: block;
    position: static;
    width: auto;
    background: none;
  }

  .nav-links a {
    display: inline-block;
    padding: 15px 20px;
  }

  .hamburger {
    display: none;
  }

}

/* Component styles that were scoped <style> blocks or Tailwind utilities. */
header {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, max-content);
}

footer {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

footer a[rel="me"] { padding: 0.125em; }

.skip-link {
  position: absolute;
  z-index: 10;
  left: 50%;
  top: -100rem;
  transform: translateX(-50%);
  background: white;
  color: black;
  padding: 0.5rem 2rem;
}
.skip-link:focus { top: initial; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.mode-toggle {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  width: 2.75rem;
  height: 1.5rem;
  margin-left: 1rem;
  border-radius: 9999px;
  background: black;
}
.dark .mode-toggle { background: white; }

#mode-circle {
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  background: white;
  transform: translateX(0.25rem);
  visibility: hidden;
}
.mode-toggle.ready #mode-circle { visibility: visible; transition: transform 300ms; }
.dark #mode-circle { background: black; transform: translateX(1.5rem); }
