:root {
  color-scheme: light;
  --bg: #fbf6eb;
  --surface: #f3ecde;
  --text: #171512;
  --muted: #5f5749;
  --line: #dfd5c2;
  --accent: #1e90ff;
  --max: 740px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.42) 0, rgba(255, 255, 255, 0) 22rem),
    radial-gradient(circle at 90% 88%, rgba(222, 204, 171, 0.18) 0, rgba(222, 204, 171, 0) 24rem),
    linear-gradient(180deg, #fcf8ef 0%, var(--bg) 100%);
  font-family:
    "Sora", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image: url("/assets/textures/paper006-web.jpg");
  background-repeat: repeat;
  background-size: 980px 980px;
  filter: grayscale(100%) contrast(1.24) brightness(1.04);
  mix-blend-mode: multiply;
}

a {
  color: inherit;
}

.page {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100vw - 4rem));
  min-height: 100vh;
  margin: 0 auto;
  padding: 1.25rem 0 1.75rem;
  display: flex;
  flex-direction: column;
}

header {
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  line-height: 0.94;
  text-decoration: none;
}

.brand::after {
  content: ".";
  color: var(--accent);
  font-style: italic;
}

.section,
footer {
  display: grid;
  gap: 0.75rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.intro {
  display: grid;
  gap: 0.9rem;
  margin-top: clamp(1.25rem, 4vw, 2.2rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 9.75rem;
  align-items: end;
  gap: clamp(1.5rem, 5vw, 3.5rem);
}

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.system-mark {
  position: relative;
  width: 100%;
  aspect-ratio: 1.12;
  margin-bottom: 0.6rem;
  border-top: 1px solid rgba(30, 144, 255, 0.7);
  border-bottom: 1px solid rgba(223, 213, 194, 0.9);
}

.system-mark::before,
.system-mark::after {
  content: "";
  position: absolute;
  inset: 18% 10%;
  border: 1px solid rgba(95, 87, 73, 0.28);
}

.system-mark::after {
  inset: 38% 0 32% 28%;
  border-color: rgba(30, 144, 255, 0.35);
}

.system-mark span {
  position: absolute;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 5px rgba(251, 246, 235, 0.86);
}

.system-mark span:nth-child(1) {
  left: 8%;
  top: 18%;
}

.system-mark span:nth-child(2) {
  right: 12%;
  top: 34%;
  background: var(--accent);
}

.system-mark span:nth-child(3) {
  left: 33%;
  bottom: 18%;
}

.system-mark span:nth-child(4) {
  right: 2%;
  bottom: 31%;
}

h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.48rem);
  font-weight: 500;
  line-height: 1.15;
}

p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.lead {
  color: var(--text);
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  line-height: 1.65;
}

.thesis {
  margin-top: clamp(1.5rem, 4vw, 2.2rem);
}

.thesis p {
  color: var(--text);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.34rem, 2.1vw, 1.64rem);
  line-height: 1.24;
}

.work-notes {
  display: grid;
  gap: 0;
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(223, 213, 194, 0.72);
}

.work-notes li {
  padding: 0.78rem 0;
  border-bottom: 1px solid rgba(223, 213, 194, 0.72);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.work-notes li::before {
  content: "";
  display: inline-block;
  width: 0.38rem;
  height: 0.38rem;
  margin-right: 0.7rem;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 0.08rem;
}

footer {
  margin-top: clamp(2.25rem, 8vw, 4.5rem);
  padding-top: 1.15rem;
  font-size: 0.9rem;
}

footer a {
  width: max-content;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

@media (min-width: 760px) {
  .lead,
  .thesis p {
    text-align: justify;
    hyphens: auto;
  }
}

@media (max-width: 720px) {
  .page {
    width: min(100% - 2rem, var(--max));
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .system-mark {
    width: min(10.5rem, 52vw);
    margin: 0.35rem 0 0;
  }
}
