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

:focus-visible {
  outline: 3px solid rgba(0, 0, 255, 0.6);
  outline-offset: 2px;
}

:is(input, button, select) {
  font: inherit;
  color: inherit;
}
:is(input, button, select):disabled {
  opacity: 0.6;
  cursor: default;
}

button {
  cursor: pointer;
}

/* BASE */
:root {
  --radius: 8px;
  --radius-full: 9999px;
}

html {
  font-family: "Syne", system-ui, sans-serif;
  font-feature-settings: "pnum" on, "lnum" on;
}

body {
  display: flex;
  flex-direction: column;
  gap: 50px;
  min-width: 320px;
}

main {
  width: 100%;
  max-width: 1200px;
  padding: clamp(15px, 4vw, 30px);
  margin: auto;
}

a:not(p a) {
  display: block;
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  border-radius: var(--radius);
}

hr {
  width: 90%;
  border: none;
  box-shadow: 0 0 0 1px #ccc;
}

/* GLOBAL ELEMENT */
#site-header {
  background-color: #FFF;
  width: 100%;
  outline: 1px solid #DDD;
}
#site-header > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding: 10px 20px;
}
#site-header nav {
  display: flex;
  gap: 10px;
}
#site-header nav a {
  font-weight: 700;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0px 15px;
}
#site-header nav a:is(:hover, :focus-visible) {
  background-color: #EEE;
}
#site-header a {
  background: #FAFAFA;
  border-radius: var(--radius);
}
#site-header a:is(:hover, :focus-visible) {
  background-color: #EEE;
}

#site-footer {
  text-align: center;
  font-weight: 700;
  background: #FAFAFA;
  width: 100%;
  padding: 25px;
  outline: 1px solid #DDD;
}

main,
article {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

article {
  font-size: 28px;
  line-height: 34px;
}
article > #thought {
  display: flex;
  padding: 10px;
  align-items: center;
  background-color: #FAFAFA;
  border-radius: var(--radius);
}
article > #thought > img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: #fff27f;
}
article > #thought > p {
  font-size: 20px;
  padding: 10px;
}

#hero {
  width: 100%;
  max-width: 850px;
  margin: auto;
  display: flex;
  gap: 30px;
}
#hero > img {
  width: 200px;
}

h1 {
  text-align: center;
  line-height: calc(1rem + 0.6em);
}

/* NEWS PAGE */
#post-list {
  background-color: #F0F0F0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 850px;
  padding: 10px;
  border-radius: var(--radius);
  margin-inline: auto;
}

.post-card {
  background-color: #FFF;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius);
}
.post-card > div {
  display: flex;
  gap: 10px;
}
.post-card > div img {
  width: 200px;
  -o-object-fit: cover;
     object-fit: cover;
}
.post-card > div:first-child > div {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: start;
}
.post-card > div.thought {
  font-size: 18px;
  background-color: #FAFAFA;
  padding: 10px;
  border-radius: var(--radius);
}
.post-card > div.thought img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: #fff27f;
}
.post-card h3 {
  font-size: 28px;
  line-height: 34px;
}
.post-card a.read-more-btn {
  color: #FFF;
  background: #7B78FF;
  border-radius: var(--radius-full);
  padding: 10px 20px;
}

#comments {
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
#comments > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  background-color: #f6fafd;
  border-radius: var(--radius);
}
#comments > div > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
#comments > div > div img {
  border-radius: var(--radius-full);
  width: 40px;
  height: 40px;
  background: #d1e4ff;
}
#comments > div > div p {
  font-size: 20px;
}
#comments > div > div strong {
  font-weight: 600;
}
#comments > div > div.comment-text {
  border: 2px solid #ccc;
  border-radius: var(--radius);
  padding: 10px;
  margin-left: 60px;
}
#comments > div > div.comment-text > p {
  font-size: 18px;
  line-height: 30px;
}