@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-regular.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root { --bg: #F9F7F2; --card: #FFFFFF; --fg: #181715; --muted: #5C574F; --rule: #E0D9CD; --navy: #1B2A4A; --copper: #9E472A; }
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--fg); font-family: "Instrument Sans", -apple-system, sans-serif; font-size: 16px; line-height: 1.68; }
body { margin: 0; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.wrap { max-width: 840px; margin: 0 auto; padding: 0 1.25rem; }
.hero { padding: 3rem 0 0; border-bottom: 1px solid var(--rule); }
h1 { font-family: "Newsreader", Georgia, serif; font-weight: 400; font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.1; margin: 0 0 0.75rem; }
h2 { font-family: "Newsreader", Georgia, serif; font-weight: 400; font-size: 1.6rem; margin: 0 0 0.65rem; color: var(--navy); }
h3 { font-family: "Instrument Sans", sans-serif; font-size: 1rem; font-weight: 700; margin: 1.5rem 0 0.4rem; color: var(--copper); }
.lead { max-width: 68ch; color: var(--muted); margin: 0 0 1.5rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.tab { appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; min-height: 46px; padding: 0.6rem 0; font-family: inherit; font-size: 0.94rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.tab.is-active { color: var(--fg); border-bottom-color: var(--copper); }
.main { padding: 2rem 1.25rem 3.5rem; }
.thesis-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); margin-bottom: 1.5rem; }
.mono { font-family: "JetBrains Mono", monospace; font-size: 0.76rem; color: var(--navy); }
.thesis-body p { max-width: 68ch; margin: 0 0 0.9rem; font-family: "Newsreader", Georgia, serif; font-size: 1.08rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.55rem 1.1rem; border-radius: 5px; border: 1px solid transparent; font-family: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.btn-primary { background: var(--navy); color: #FFF; }
.btn-copper { background: var(--copper); color: #FFF; }
.note-box { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.note-form { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center; }
.note-form input { flex: 1; min-width: 220px; min-height: 44px; padding: 0.55rem 0.8rem; border: 1px solid var(--rule); border-radius: 5px; font-family: inherit; font-size: 0.95rem; }
.ok-msg { font-family: "JetBrains Mono", monospace; font-size: 0.78rem; color: #1E6B47; }
.foot { padding: 1.5rem 1.25rem 3rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.84rem; }
