/* #region Reset (credit Josh Comeau) */

/*
  1. Use a more-intuitive box-sizing model.
*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

/*
    2. Remove default margins
  */
* {
  margin: 0;
}

ol {
  padding-inline-start: 1em;
}

/*
    3. Allow percentage-based heights in the application
  */
html {
  height: 100%;
}

/*
    Typographic tweaks!
    4. Fix margins and font inheritance
    5. Improve text rendering
  */
h1,
h2,
h3,
h4,
p,
ul,
ol,
li,
figure,
figcaption,
blockquote,
dl,
dd {
  font-size: inherit;
  font-weight: normal;
  text-align: left;
}

body {
  -webkit-font-smoothing: antialiased;
}

/*
    6. Improve media defaults
  */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/*
    7. Remove built-in form typography styles
  */
input,
button,
textarea,
select {
  font: inherit;
}

/*
    8. Avoid text overflows
  */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/*
    9. Create a root stacking context
  */
#root,
#__next {
  isolation: isolate;
}

/* #endregion */

/* #region Global variables & styles */

* {
  touch-action: manipulation;
}
:root {
  --color-bg: #faf8f5;
  --color-text: #121212;
  --color-text-secondary: rgba(0, 0, 0, 0.55);
  --color-line: rgba(0, 0, 0, 0.1);
  --focus-width: 0.125rem;
  --focus-offset: 0.125rem;
  --focus-color: rgba(213, 119, 56);
  --focus-radius: 0.25rem;
  --line-height: 1.2;
  --space-0_25: calc(var(--line-height) * 0.25rem);
  --space-0_5: calc(var(--line-height) * 0.5rem);
  --space-1: calc(var(--line-height) * 1rem);
  --space-2: calc(var(--line-height) * 2rem);
  --space-1-static: calc(var(--line-height) * 16px);
  --space-2-static: calc(var(--line-height) * 2 * 16px);
  --border-radius: 0.0625rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: rgb(9, 9, 20);
    --color-text: #f8f8f8;
    --color-text-secondary: rgba(255, 255, 255, 0.55);
    --color-line: rgba(255, 255, 255, 0.1);
    --focus-color: rgba(101, 148, 0);
  }
}
@font-face {
  font-family: "NB International Regular";
  src:
    url("/fonts/nb_international_pro_regular.woff2") format("woff2"),
    url("/fonts/nb_international_pro_regular.woff") format("woff");
}
@font-face {
  font-family: "NB International Bold";
  src:
    url("/fonts/nb_international_pro_bold.woff2") format("woff2"),
    url("/fonts/nb_international_pro_bold.woff") format("woff");
}
.text-12 {
  font-size: 0.75rem;
}
.text-14 {
  font-size: 0.875rem;
}
.text-16 {
  font-size: 1rem;
}
.text-18 {
  font-size: 1.125rem;
}
.text-20 {
  font-size: 1.25rem;
}
.text-24 {
  font-size: 1.5rem;
}
.text-28 {
  font-size: 1.75rem;
}
.text-32 {
  font-size: 2rem;
}
body {
  font-size: 1.125rem;
  line-height: var(--line-height);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: "NB International Regular", sans-serif;
}
a {
  text-decoration: none;
  color: inherit;
  box-shadow: inset 0 -1px 0 0 var(--color-text-secondary);
}
a:visited {
  color: inherit;
}
*:focus {
  outline: none;
}
*:focus-visible {
  outline: var(--focus-width) solid var(--focus-color) !important;
  outline-offset: var(--focus-offset) !important;
  border-radius: var(--border-radius) !important;
}

/* #endregion */

/* #region One-off styles  */
.image-feed {
  display: grid;
  place-items: center;
  padding: 4px;
  gap: 4px;
  min-height: 100vh;
}
.image {
  background-color: black;
  max-height: 80vh;
}
.feed-status {
  color: var(--color-text-secondary);
}

.staticrypt-spinner-container,
.staticrypt-content {
  grid-area: 1 / 1 / -1 / -1;
}

/* #endregion */
