/* Relentlessly design-system-next colors and fonts. */
:root {
  --dark: #0a0a0a;
  --gray: #434343;
  --light: #fafafa;
  --muted: #efefec;
  --lime: #baff8f;
  --pink: #ffb4e6;
  --blue: #59caff;
  --heading: "Inter Tight", Inter, system-ui, sans-serif;
  --body: Inter, system-ui, sans-serif;
  --hand: "Reenie Beanie", cursive;
  --pad: clamp(20px, 5vw, 88px);
  --text: clamp(19px, 0.4vw + 15px, 22px);
}
* { box-sizing: border-box; }
html { background: var(--light); }
body {
  margin: 0;
  background: var(--light);
  color: var(--dark);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
main { padding: 40px var(--pad) 0; }

a { color: var(--dark); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }

/* nav */
nav { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: clamp(48px, 8vw, 112px); }
nav a {
  font-family: var(--heading);
  font-size: clamp(18px, 0.6vw + 14px, 24px);
  font-weight: 600;
  text-decoration: none;
  padding: 2px 4px;
  margin: 0 -4px;
}
nav a:nth-child(1):is(:hover, [aria-current]) { background: var(--lime); }
nav a:nth-child(2):is(:hover, [aria-current]) { background: var(--blue); }
nav a:nth-child(3):is(:hover, [aria-current]) { background: var(--pink); }

/* headline with the thick rule above */
h1 {
  font-family: var(--heading);
  font-weight: 800;
  font-size: clamp(64px, 11vw, 176px);
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 clamp(28px, 4vw, 56px);
  padding-top: clamp(14px, 1.6vw, 24px);
  border-top: clamp(8px, 1vw, 14px) solid var(--dark);
  display: table;
}

/* front page */
.intro p { font-size: var(--text); line-height: 1.6; margin: 0 0 1em; max-width: 66ch; }
/* the photo breaks the text and lines up with the text column */
.photo {
  display: block;
  font-size: var(--text);
  width: 100%;
  max-width: 66ch;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 30%;
  height: auto;
  border-radius: 8px;
  margin: 0.6em 0 1.6em;
}


/* writings list */
.posts { list-style: none; padding: 0; margin: 0; }
.posts li { padding: clamp(20px, 2vw, 32px) 0; border-top: 1px solid #dcdcdc; }
.posts a {
  font-family: var(--heading);
  font-size: clamp(24px, 1.6vw + 14px, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.posts .date { display: block; color: var(--gray); font-size: 16px; margin-top: 6px; }
.posts .excerpt { color: var(--gray); font-size: var(--text); line-height: 1.5; margin: 10px 0 0; max-width: 64ch; }

/* single post */
.post h1 { font-size: clamp(44px, 6vw, 104px); margin-bottom: 16px; }
.post .date { color: var(--gray); font-size: 17px; margin: 0 0 clamp(32px, 4vw, 64px); }
.post .body { max-width: 68ch; }
.post .body p, .post .body li { font-size: var(--text); line-height: 1.6; }
.post .body p { margin: 0 0 1em; }
.post .body ul { padding-left: 1.2em; margin: 0 0 1em; }

/* footer: subscribe, email and icons */
.band { margin-top: clamp(64px, 8vw, 128px); padding: clamp(32px, 4vw, 56px) 0 clamp(48px, 6vw, 96px); border-top: 1px solid #dcdcdc; }
.subscribe h2 {
  font-family: var(--heading);
  font-weight: 700;
  font-size: clamp(26px, 2.4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 20px;
}
.subscribe form { display: flex; gap: 8px; flex-wrap: wrap; max-width: 600px; }
.subscribe input[type=email] {
  flex: 1 1 240px;
  font: inherit;
  font-size: 18px;
  padding: 13px 16px;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  background: #fff;
  color: var(--dark);
}
.subscribe button {
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  padding: 13px 22px;
  border: 0;
  border-radius: 4px;
  background: var(--dark);
  color: #fff;
  cursor: pointer;
}
.subscribe .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.subscribe .msg { font-size: 17px; color: var(--gray); margin: 12px 0 0; min-height: 1em; }

.footer { margin-top: clamp(32px, 4vw, 56px); color: var(--gray); }
.footer p { font-size: 18px; margin: 0 0 14px; }
.footer .social { display: flex; align-items: center; gap: 18px; }
.footer .social span { min-width: 110px; font-size: 16px; }
.footer .social a { display: inline-flex; color: var(--gray); }
.footer .social a:hover { color: var(--dark); }

/* links inside the text: Farza-style blue, underline on hover */
.intro a, .post .body a { color: #0a84ff; text-decoration: none; }
.intro a:hover, .post .body a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; }
