/* @link https://utopia.fyi/type/calculator?c=320,16,1.2,1240,20,1.25,5,2,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12 */
/* @link https://utopia.fyi/space/calculator?c=320,16,1.2,1240,20,1.25,5,2,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12 */

:root {
  --color-primary: #1c3ab0;
  --color-primary-glare: #5168c4;
  --color-secondary: #82265a;
  --color-secondary-glare: #a4929c;
  --color-dark: rgb(72, 72, 72);
  --color-light-dark: rgb(108, 108, 108);
  --color-light: #fdfdfd;
  --color-gray-2: #cccccc42;
  --color-gray-3: #938f8f42;
  --color-link: #5a72bd;
  --font-base: "system-ui", sans-serif;
  --size-step--2: clamp(0.6944rem, 0.6576rem + 0.1837vw, 0.8rem);
  --size-step--1: clamp(0.8331rem, 0.7751rem + 0.2902vw, 1rem);
  --size-step-0: clamp(1rem, 0.913rem + 0.4348vw, 1.25rem);
  --size-step-1: clamp(1.2rem, 1.0739rem + 0.6304vw, 1.5625rem);
  --size-step-2: clamp(1.44rem, 1.2615rem + 0.8924vw, 1.9531rem);
  --size-step-3: clamp(1.7281rem, 1.4801rem + 1.2402vw, 2.4413rem);
  --size-step-4: clamp(2.0738rem, 1.7335rem + 1.7011vw, 3.0519rem);
  --size-step-5: clamp(2.4881rem, 2.0266rem + 2.3076vw, 3.815rem);

  --space-3xs: clamp(0.25rem, 0.2283rem + 0.1087vw, 0.3125rem);
  --space-2xs: clamp(0.5rem, 0.4565rem + 0.2174vw, 0.625rem);
  --space-xs: clamp(0.75rem, 0.6848rem + 0.3261vw, 0.9375rem);
  --space-s: clamp(1rem, 0.913rem + 0.4348vw, 1.25rem);
  --space-m: clamp(1.5rem, 1.3696rem + 0.6522vw, 1.875rem);
  --space-l: clamp(2rem, 1.8261rem + 0.8696vw, 2.5rem);
  --space-xl: clamp(3rem, 2.7391rem + 1.3043vw, 3.75rem);
  --space-2xl: clamp(4rem, 3.6522rem + 1.7391vw, 5rem);
  --space-3xl: clamp(6rem, 5.4783rem + 2.6087vw, 7.5rem);

  /* One-up pairs */
  --space-3xs-2xs: clamp(0.25rem, 0.1196rem + 0.6522vw, 0.625rem);
  --space-2xs-xs: clamp(0.5rem, 0.3478rem + 0.7609vw, 0.9375rem);
  --space-xs-s: clamp(0.75rem, 0.5761rem + 0.8696vw, 1.25rem);
  --space-s-m: clamp(1rem, 0.6957rem + 1.5217vw, 1.875rem);
  --space-m-l: clamp(1.5rem, 1.1522rem + 1.7391vw, 2.5rem);
  --space-l-xl: clamp(2rem, 1.3913rem + 3.0435vw, 3.75rem);
  --space-xl-2xl: clamp(3rem, 2.3043rem + 3.4783vw, 5rem);
  --space-2xl-3xl: clamp(4rem, 2.7826rem + 6.087vw, 7.5rem);

  /* Custom pairs */
  --space-s-l: clamp(1rem, 0.4783rem + 2.6087vw, 2.5rem);

  --gutter: var(--space-s-m);
  --border-radius: var(--size-step-1);
  --tracking: -.05ch;
  --tracking-s: -.075ch;
}

body {
  max-width: 848px;
  min-height: 100vh;
  margin: 0 auto;
  padding: var(--space-l, 1rem);
  color: var(--color-dark);
  background: var(--color-light);
  font-size: var(--size-step-0);
  font-family: var(--font-base);
  line-height: 1.6;
  letter-spacing: var(--tracking);
}

[role=list] {
 padding:0
}

a {
 color: var(--color-link);
}

nav a {
 color: currentColor;
}

svg {
 height: 2ex;
 width: auto;
}

p, li, blockquote:not([class]) {
  max-width: 54ch;
}

h1, h2, h3 {
  max-width: 24ch;
}

video {
  max-width: 100%;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

button {
  border: 1px solid var(--color-dark);
  border-radius: .25rem;
  background: var(--color-dark);
  padding: .25rem 1rem;
  color: var(--color-light);
  font-size: var(--size-step--2);
}

time {
  font-size: var(--size-step--1);
  color: var(--color-light-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.flow > * + * {
  margin-block-start: var(--flow-space, 1em);
}

.item-list {
  --flow-space: .5rem;
}


#logo-link {
  text-decoration: none;
}

#logo-link img {
  width: 3rem;
  height: 3rem;
}

.nav {
  display: flex;
  gap: var(--gutter, var(--space-s));
  margin: 0;
  font-weight: 700;
  font-size: var(--size-step--1);
}

.nav a {
  text-decoration: none;
}

[data-layout="item-actions"] {
  margin-block-start: var(--space-m);
  display: flex;
  justify-content: space-between;
}

[data-layout="item-actions"] ul {
  margin: unset;
  display: flex;
  gap: var(--space-xs);
  align-items: center;
}

.button-lg {
  border: 1px solid var(--color-dark);
  border-radius: .25rem;
  background: var(--color-dark);
  padding: .5rem 2rem;
  color: var(--color-light);
}

.read {
  color: var(--color-secondary-glare);
}

#login-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#login-form input {
  display: block;
  margin-block-start: .5rem;
}

#login-form div > * + * {
  display: block;
  margin-block-start: 2rem;
}

#login-form .button-lg {
  display: block;
  margin-block-start: 2rem;
  margin-left: auto;
}

#feed-item-filter > div > div {
  display: flex;
}

#feed-item-filter > div > div > * + * {
  margin-left: var(--space-s);
}

.button-icon {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  border-radius: 0;
  cursor: pointer;
}

.icon-container:hover {
  filter: brightness(60%);
}

#star-button > img {
  width: 1.5rem;
  height: 1.5rem;
  color: #797979;
}

[data-layout="item-actions"] button > img, [data-layout="item-actions"] a > img {
  width: 1.5rem;
  height: 1.5rem;
}

.icon-container {
  height: 1.5rem;
  width: 1.5rem;
  line-height: 1;
}

pre {
  background: var(--color-gray-2);
  padding: 1rem;
  border-radius: .5rem;
  border: 1px solid var(--color-gray-3);
  font-family: Monospace;
}

select {
	background: transparent;
	border: 1px solid var(--color-gray-3);
	padding: .5rem 1rem;
	border-radius: .5rem;
	color: #484848;
}

code {
  font-family: monospace;
  font-size: inherit;
}

p > code,
li > code,
dd > code,
td > code {
  background: var(--color-gray-2);
  word-wrap: break-word;
  box-decoration-break: clone;
  padding: .1rem .3rem .2rem;
  border-radius: .2rem;
}

pre {
  overflow: auto;
}

figure {
  margin: 0;
}

#item-link {
  display: inline-block;
}

#title-container ul {
  list-style-type: none;
  display: flex;
  padding: 0;
  align-items: center;
  justify-content: space-between;
  margin: 3rem 0 0 0;
}

#title-container h1 {
  margin: 0;
}

#root-title-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
