:root {
  --accent-color: #F7C409;
  --accent-opposite-color: #000000;
  --background-color: #FFFFFF;
  --foreground-color: #000000;

  --foreground-color-5: #0000000D;
  --foreground-color-15: #00000026;
  --foreground-color-50: #00000080;

  --background-color-prose: #F2F0ED;
}

:root {
  --edge-margin: 50px;
}

@media (max-width: 600px) {
  :root {
    --edge-margin: 15px;
  }
}

.container {
  margin: 0 var(--edge-margin);
}

/* @media (prefers-color-scheme: dark) {
  :root {
    --background-color: #000000;
    --foreground-color: #FFFFFF;
    --line-color: #FFFFFF26;
  }
} */

html {
  background: var(--background-color);
}

body {
  margin: 0;
  padding: 0;

  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.2;

  background: var(--background-color);
  color: var(--foreground-color);

  /* transition: all 1s ease;  */
  /* for dark mode toggle */
}

p {
  padding: 0;
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  text-decoration: none;
  color: inherit;
}

p a,
ul a,
ol a {
  text-decoration: underline;
  transition: all 0.15s ease;
}

a.highlight-onhover,
a .highlight-onhover {
  transition: all 0.15s ease;
}

p a:hover,
ul a:hover,
ol a:hover {
  text-decoration: underline;
  background: var(--accent-color);
  color: var(--accent-opposite-color);
  border-radius: 3px;
}

a.highlight-onhover:hover,
a .highlight-onhover:hover {
  background: var(--accent-color);
  color: var(--accent-opposite-color);
  border-radius: 3px;
}

a.no-underline, a.no-underline:hover {
  text-decoration: none;
}

a .underline {
  text-decoration: underline;
}

.mono {
  font-family: 'Unica One', 'Courier New', Courier, monospace;
  font-weight: normal;
  text-transform: uppercase;
}

.sans {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.serif {
  font-family: 'Newsreader', serif;
}

.italic {
  font-style: italic;
}

hr,
.hr-bottom {
  border: none;
  border-bottom: 1px solid var(--foreground-color-15);
}

hr.dotted {
  border-bottom: 1px dotted var(--foreground-color-15);
}

div.vr {
  border: none;
  border-left: 1px solid var(--foreground-color-15);
}

@media (max-width: 799px) {
  img {
    max-width: 100%;
  }
}

/* input[type=text]:focus, input[type=email]:focus {
  outline: 3px solid var(--main-accent-color);
} */

::-moz-selection {
  background: var(--accent-color);
  color: var(--accent-opposite-color);
}

::selection {
  background: var(--accent-color);
  color: var(--accent-opposite-color);
}

* {
  outline-color: var(--accent-color);
}

/* Simple utilities */

.flex {
  display: flex;
}

.space-between {
  justify-content: space-between;
}

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

.align-end {
  align-items: end;
}

.flex-equal > * {
  flex-basis: 0;
  flex-grow: 1;
  flex-shrink: 1;
}

.flex-col_sm {
  flex-direction: row;
}

@media (max-width: 800px) {
  .flex-col_sm {
    /* display: flex; */
    flex-direction: column;
    align-items: stretch;
  }

  .order-first_sm {
    order: -1;
  }

  .order-second_sm {
    order: 2;
  }

  .order-third_sm {
    order: 3;
  }
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.grow {
  flex-grow: 1;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 {
  gap: 1em;
}

.gap-2 {
  gap: 2em;
}

.gap-14px {
  gap: 14px;
}

.gap-28 {
  gap: 28px;
}

.gap-5px {
  gap: 5px;
}

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

.space-5 {
  width: 5px;
  height: 5px;
}

.space-10 {
  width: 10px;
  height: 10px;
}

.space-15 {
  width: 15px;
  height: 15px;
}

.space-25 {
  width: 25px;
  height: 25px;
}

.space-30 {
  width: 30px;
  height: 30px;
}

.space-40 {
  width: 40px;
  height: 40px;
}

.space-50 {
  width: 50px;
  height: 50px;
}

@media (max-width: 800px) {
  .space-50 {
    width: 40px;
    height: 40px;
  }
}

.space-75 {
  width: 75px;
  height: 75px;
}

@media (max-width: 800px) {
  .space-75 {
    width: 50px;
    height: 50px;
  }
}

.space-100 {
  width: 100px;
  height: 100px;
}

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

@media (max-width: 800px) {
  .text-center_sm {
    text-align: center;
  }
}

@media (max-width: 800px) {
  .hide-mobile {
    display: none;
  }
}

@media (min-width: 801px) {
  .hide-desktop {
    display: none;
  }
}

/* Specifics */

input.input-clean,
button.button-clean {
  /* -webkit-appearance: none; */
  /* box-sizing: border-box; */
  border: none;
  margin: 0;
  background: var(--foreground-color-5);
  color: var(--foreground-color);
  border-radius: 8px;
  padding: 10px;

  font-size: 14px;
  line-height: 16px;

  transition: all 0.15s ease;
}

button.button-clean {
  padding: 10px 15px;
  font-weight: 500;
}

button.button-clean:hover {
  background: var(--accent-color);
}

/* */

div.memberMag-cover {
  background: var(--accent-color);
  box-shadow: 0 12px 30px 0 rgba(0,0,0,0.15), 0 2px 2px 0 rgba(0,0,0,0.15);
  border-radius: 4px 10px 10px 4px;

  flex-shrink: 0;
  width: 336px;
  height: 464px;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;
}

div.memberMag-cover#issue2 {
  background: #E3E5E7;
}

@media (max-width: 400px) {
  div.memberMag-cover {
    padding: 40px 20px;
    width: 100%;
    max-width: 336px;
    height: auto;
  }
}

div.memberMag-coverLine {
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 1px;

  opacity: 0.05;
  background: var(--foreground-color);
}

/*  */

#member-updates-widget {
  background: #F2F0ED;
  border-radius: 8px;
  padding: 24px;
}

#member-updates-widget a p.update-title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 8px;
}

#member-updates-widget a:hover p.update-title {
  text-decoration: underline;
}

#member-updates-widget a p.update-subtitle {
  font-size: 12px;
  opacity: 0.5;
}

#member-updates-widget a p.update-subtitle span.lock-icon {
  display: inline-block;
  position: relative;
  top: -2px;
  margin-right: -2px;
}
