/* colbyschrauth.com — Graphite + Brass
   Type: Newsreader (serif) for reading, IBM Plex Mono for labels and dates. */

:root {
  --bg: #25272A;        /* graphite */
  --surface: #2F3236;
  --rule: #3A3D42;
  --text: #EDEBE6;
  --muted: #A9ACB0;
  --accent: #D2B06A;    /* brass */
  --serif: 'Newsreader', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --wrap: 1080px;
  --measure: 680px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.measure { max-width: var(--measure); }

.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 24px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header ------------------------------------------------------------------ */

.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 32px 0; }
.logo { font-size: 24px; font-weight: 500; font-style: italic; }
.logo span, .dot { color: var(--accent); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.site-nav a { font-family: var(--mono); font-size: 13px; color: var(--muted); padding: 12px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }

.kbd-button, kbd {
  font-family: var(--mono); font-size: 13px; color: var(--text);
  background: var(--surface); border: 1px solid var(--rule); border-radius: 8px;
}
.kbd-button { padding: 10px 12px; min-height: 44px; cursor: pointer; }
.kbd-button:hover { border-color: var(--accent); }
kbd { border-radius: 4px; padding: 2px 6px; }

/* Home -------------------------------------------------------------------- */

.hero { padding: 120px 0 72px; }
.hero h1 { margin: 0; font-size: clamp(64px, 11vw, 140px); font-weight: 400; line-height: .95; letter-spacing: -.03em; }
.hero h1 em { font-weight: 400; }
.hero .role { margin: 36px 0 0; font-size: 26px; line-height: 1.4; }
.hero .role a { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 5px; }
.hero .intro { margin: 12px 0 0; color: var(--muted); max-width: 580px; }
.hero .hint { margin: 40px 0 0; color: var(--muted); }

.banner { width: 100%; height: clamp(220px, 34vw, 380px); object-fit: cover; object-position: center 60%; border-radius: 16px; }

/* Lists of writing -------------------------------------------------------- */

.section { padding: 96px 0 24px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.section-head h2 { margin: 0; font-size: 40px; font-weight: 400; letter-spacing: -.01em; line-height: 1.2; }
.section-head a { color: var(--accent); }
.section-head a:hover { color: var(--text); }

.rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.rows li { border-top: 1px solid var(--rule); }
.rows a, .rows .row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 6px 24px; padding: 26px 0;
}
.rows .title { font-size: 26px; line-height: 1.3; }
.rows .meta { font-family: var(--mono); font-size: 13px; color: var(--muted); white-space: nowrap; }
.rows a:hover .meta { color: var(--accent); }

/* Page headers ------------------------------------------------------------ */

.page-head { padding: 96px 0 48px; }
.page-head h1 { margin: 0; font-size: clamp(48px, 7vw, 88px); font-weight: 400; line-height: 1; letter-spacing: -.02em; }
.page-head p { margin: 20px 0 0; color: var(--muted); max-width: 580px; }
.kicker { font-family: var(--mono); font-size: 13px; color: var(--accent); text-transform: lowercase; margin: 0 0 16px; }

/* Thoughts ---------------------------------------------------------------- */

.thought { padding: 40px 0; border-top: 1px solid var(--rule); scroll-margin-top: 24px; }
.thought:last-child { border-bottom: 1px solid var(--rule); }
.thought h2 { margin: 0; font-size: 30px; font-weight: 400; line-height: 1.25; }
.thought h2 a:hover { color: var(--accent); }
.thought .meta { margin: 8px 0 16px; }
.thought p { margin: 0 0 1em; }
.thought p:last-child { margin-bottom: 0; }

/* Articles / prose -------------------------------------------------------- */

.post-head { padding: 96px 0 48px; }
.post-head h1 { margin: 0; font-size: clamp(40px, 6vw, 68px); font-weight: 400; line-height: 1.08; letter-spacing: -.015em; }
.post-head .meta { margin-top: 20px; }

.prose { font-size: 21px; line-height: 1.7; }
.prose > * { max-width: var(--measure); }
.prose > img, .prose > p > img, .prose > figure, .prose > .gist { max-width: 100%; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(210,176,106,.4); text-underline-offset: 4px; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose h2 { font-size: 34px; font-weight: 400; line-height: 1.2; margin: 2em 0 .5em; }
.prose h3 { font-size: 26px; font-weight: 500; line-height: 1.3; margin: 1.6em 0 .4em; }
.prose img { border-radius: 8px; margin: 1.5em auto; }
.prose blockquote { margin: 1.5em 0; padding-left: 24px; border-left: 2px solid var(--accent); color: var(--muted); font-style: italic; }
.prose code { font-family: var(--mono); font-size: .8em; background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 1px 5px; }
.prose pre { font-family: var(--mono); font-size: 15px; line-height: 1.6; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 20px; overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.prose > .highlighter-rouge, .prose > pre { max-width: 100%; }
.highlight .c, .highlight .c1, .highlight .cm { color: #8A8E93; font-style: italic; }
.highlight .k, .highlight .kn, .highlight .kd, .highlight .ow { color: var(--accent); }
.highlight .s, .highlight .s1, .highlight .s2, .highlight .si { color: #B5C99A; }
.highlight .mi, .highlight .mf { color: #E3A27C; }
.highlight .nf, .highlight .nb { color: #9CC3E0; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 3em 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 500; color: #FFFFFF; }

/* Writing index ----------------------------------------------------------- */

.category { padding: 24px 0 40px; }
.category h2 { margin: 0 0 8px; }

/* Scrapbook --------------------------------------------------------------- */

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.quote { margin: 0; padding: 32px; background: var(--surface); border-radius: 12px; }
.quote blockquote { margin: 0; font-size: 26px; line-height: 1.4; font-style: italic; }
.quote figcaption { margin-top: 16px; }

/* Ranked lists (books, shows) --------------------------------------------- */

.ranked { list-style: none; margin: 0; padding: 0; counter-reset: rank; border-bottom: 1px solid var(--rule); }
.ranked li { counter-increment: rank; display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; padding: 24px 0; border-top: 1px solid var(--rule); }
.ranked li::before { content: counter(rank, decimal-leading-zero); grid-row: span 2; font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 9px; }
.ranked .title { font-size: 26px; line-height: 1.3; }
.ranked .title .by { color: var(--muted); font-size: 20px; }
.ranked .why { color: var(--muted); font-size: 18px; }

/* About ------------------------------------------------------------------- */

.about-photo { width: 100%; max-width: var(--measure); aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; margin-bottom: 48px; }

/* Footer ------------------------------------------------------------------ */

.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 96px 0 56px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--muted); padding: 10px 0; }
.site-footer a:hover { color: var(--accent); }

/* Quick search (⌘K) ------------------------------------------------------- */

.palette {
  width: min(600px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 96px));
  margin: 12vh auto auto; padding: 0; overflow: hidden;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--rule); border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}
.palette::backdrop { background: rgba(18,19,21,.7); backdrop-filter: blur(4px); }
.palette input {
  width: 100%; padding: 20px 22px; border: 0; border-bottom: 1px solid var(--rule);
  background: transparent; color: var(--text); font: 22px var(--serif); outline: none;
}
.palette input::placeholder { color: var(--muted); }
.palette ul { list-style: none; margin: 0; padding: 8px; overflow-y: auto; max-height: calc(min(560px, 100vh - 96px) - 72px); }
.palette li a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 14px; border-radius: 8px; font-size: 19px; }
.palette li a .mono { color: var(--muted); }
.palette li a[aria-selected="true"] { background: var(--bg); color: var(--accent); }
.palette .empty { padding: 16px 14px; color: var(--muted); }

@media (max-width: 640px) {
  body { font-size: 18px; }
  .hero { padding: 64px 0 48px; }
  .hero .role { font-size: 22px; }
  .section, .page-head, .post-head { padding-top: 64px; }
  .section-head h2 { font-size: 32px; }
  .rows .title, .ranked .title { font-size: 22px; }
  .prose { font-size: 19px; }
  .hint, .kbd-button { display: none; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
