/* Add Google Fonts import */
@import url('https://fonts.googleapis.com/css2?family=Sora:wdth,wght@75..100,100..800&display=swap');

/* -------- design tokens -------- */
:root {
  --font-body: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-size-base: 17px;
  --line-height-base: 1.4;
  --content-max-width: 60ch;
  --accent: #63413f;
}

/* -------- base -------- */
html {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  background: #ffffff;
  color: #111;
}

body {
  margin: 0;
  padding: 1.5rem 1rem 5rem;
  max-width: var(--content-max-width);
}

/* -------- typography weights -------- */
h1, article h4 {
  font-variation-settings: "wght" 500;
}

h2, h3 {
  font-variation-settings: "wght" 600, "wdth" 85;
}

p, li {
  font-variation-settings: "wght" 350;
}

time, .meta, .tags, footer {
  font-variation-settings: "wght" 300;
}

/* -------- headings -------- */
h1 {
  font-variation-settings: "wght" 500, "wdth" 80;
  letter-spacing: .06em;
  font-size: clamp(1.4rem, 3vw + .3rem, 2.2rem);
  margin: 0 0 0.5rem;
  color: var(--accent);
}

header h1 {
  font-family: "Syne Mono", sans-serif;
}

h2, h3 {
  letter-spacing: -.015em;
  margin: 1rem 0 1.2rem;
}

article h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.1rem;
}

h4 {
  font-size: 1rem;
}

h5, h6 {
  font-size: 0.9rem;
}

article h4 {
  margin: 0.1rem 0;
}

/* -------- text & spacing -------- */
p {
  margin: 1.5em 0;
}


.content li {
  margin-bottom: 0.0rem;
}

/* -------- links -------- */
a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:visited {
  color: #7a3d37;
}

header h1 a, article h4 a {
  color: inherit;
}

article h4 a:hover {
  color: var(--accent);
}

sup a { 
  text-decoration: none; 
  font-size: .7em; 
  vertical-align: super; 
}

/* -------- meta & navigation -------- */
time, .meta {
  display: block;
  margin-bottom: 1.8rem;
  color: #666;
}


/* -------- layout -------- */
header {
  margin-bottom: 1rem;
}

header h1 {
  margin-bottom: 1rem;
}

main {
  margin-bottom: 2rem;
}

.content {
  margin: 1rem 0;
}

.content ul, .content ol {
  margin-left: 0;
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.content ul ul, .content ol ol, .content ul ol, .content ol ul {
  margin-left: 0;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}

/* -------- tags & footer -------- */
.tags {
  margin-top: 2rem;
  font-size: 0.9rem;
}

.tags span {
  margin-right: 0.5rem;
}

li p {
    margin: 0;
}

/* -------- images -------- */
.content img {
  max-width: 100%;
  height: auto;
}

footer {
  border-top: 1px solid #eee;
  padding-top: 0.25rem;
  margin-top: 0.25rem;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

/* -------- draft posts -------- */
article.draft {
  opacity: 0.6;
}

article.draft h4 a {
  color: #999;
} 