/* RESET */
*, ::before, ::after {
  /* outline: .1px solid red; */
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  -webkit-tap-highlight-color: transparent;
}

html:not(:focus-within) {
  scroll-behavior: auto;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, select, textarea, button {
  font: inherit;
  color: inherit;
}
input:disabled, select:disabled, textarea:disabled, button:disabled {
  opacity: 0.3;
}

textarea {
  resize: vertical;
}

hr, input, select, textarea {
  border: 2px solid rgba(0, 0, 0, 0.1);
}

hr {
  border-width: 0 0 2px 2px;
  align-self: stretch;
}

/* BASE */
@font-face {
  font-display: swap;
  font-family: "Inter V";
  font-style: oblique 0deg 20deg;
  font-weight: 100 900;
  src: url("/fonts/inter.var.woff2") format("woff2 supports variations"), url("/fonts/inter.var.woff2") format("woff2-variations");
}
:root {
  --radius: 10px;
  --radius-var: clamp(0px, (100vw - 100%) * 9999, var(--radius));
  --radius-full: 9999px;
}

* {
  line-height: calc(1em + 0.4rem);
}

:focus-visible {
  outline: 3px solid #04f;
  outline-offset: 0px;
  transition: outline-width 0.2s;
}

html {
  font-family: "Inter V", sans-serif;
  font-optical-sizing: auto;
  text-size-adjust: none;
  background-color: #fff;
}
html, html body {
  min-width: 360px;
}
html.noscroll {
  overflow-y: hidden;
}
html.noscroll > body {
  overflow-y: scroll;
}

body {
  font-size: 17.5px;
}

a {
  color: currentColor;
}
a:not(p a) {
  text-decoration: none;
}

button {
  display: block;
  background-color: rgba(0, 0, 0, 0);
  border: none;
  border-radius: 0;
  user-select: none;
  cursor: pointer;
}

h1 {
  font-size: clamp(2.13rem, 1.92rem + 1.03vw, 2.5rem);
}

h2 {
  font-size: clamp(1.6rem, 1.48rem + 0.59vw, 1.81rem);
}

h3 {
  font-size: clamp(1.41rem, 1.29rem + 0.6vw, 1.63rem);
}

h4, h5, h6 {
  font-size: clamp(1.3125rem, 1.21rem + 0.51vw, 1.5rem);
}

b {
  font-weight: 500;
}

ul, ol {
  padding-left: 16px;
}

:is(ul, ol) > li {
  margin: 5px 0;
}

.sr-only {
  clip: rect(1px, 1px, 1px, 1px) !important;
  border: 0 !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  margin: -1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  user-select: none !important;
  white-space: nowrap !important;
  width: 1px !important;
}

:root {
  --gap: 2vw;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

footer {
  margin-top: auto;
}

header,
footer {
  display: flex;
  background-color: #fafafa;
  padding: 10px;
  justify-content: center;
}

#logo {
  font-size: 30px;
}

main {
  flex: 1;
  width: min(100%, 980px);
  padding: 50px clamp(20px, 5%, 40px);
  margin: auto;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  margin-bottom: 10px;
}
.post-card h2 {
  font-size: 22px;
}
.post-card a {
  background-color: #ddddff;
  padding: 6px 12px;
  border-radius: var(--radius-full);
}

article > * + * {
  margin-top: calc(1em + 0.6rem);
}

article > p:not(:is(ul, ol) + p), ul, ol {
  margin: 0.8em 0;
}
