/* #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: #ebd999;
  --color-text: #121212;
  --color-text-secondary: rgba(0, 0, 0, 0.55);
  --color-1: #916d01;
  --color-2: #d53316;
  --color-3: #1e61a0;
  --color-4: #597b0a;
  --color-5: #b437ca;
  --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-05-static: calc(var(--line-height) * 8px);
  --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-1: #a88a2f;
    --color-2: #e2381a;
    --color-3: #1e76e8;
    --color-4: #60850b;
    --color-5: #bf3ad6;
    --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");
}
@font-face {
  font-family: "GT Alpina Typewriter Light";
  src: url("/fonts/GT-Alpina-Typewriter-Light-Trial.woff2") format("woff2");
}
@font-face {
  font-family: "GT Alpina Typewriter Light Italic";
  src: url("/fonts/GT-Alpina-Typewriter-Light-Italic-Trial.woff2")
    format("woff2");
}

.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: "GT Alpina Typewriter Light", 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;
}
.bold {
  font-family: "NB International Bold", sans-serif;
}
.sec-text {
  color: var(--color-text-secondary);
}
.fun-text {
  color: var(--color-1);
}
.color-2 {
  color: var(--color-2);
}
.color-3 {
  color: var(--color-3);
}
.color-4 {
  color: var(--color-4);
}
.color-5 {
  color: var(--color-5);
}

/* #endregion */

/* #region One-off styles  */
.top-bar {
  padding: var(--space-2) var(--space-1);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}
.image-feed {
  display: grid;
  place-items: center;
  padding: 4px;
  gap: 4px;
}
.image {
  background-color: rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 64vh;
}
.feed-status {
  color: var(--color-text-secondary);
}

/* #endregion */
