@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --ink: #13151a;
  --paper: #f7f8fa;
  --milk: #ffffff;
  --blue: #4268df;
  --accent-foreground: #f7f8fa;
  --card-ink: #13151a;
  --blue-pale: #dce5ff;
  --note-card-secondary: #dce5ff;
  --green: #daeb94;
  --line: #cdd2dc;
  --rule: rgba(66, 104, 223, 0.07);
  --paper-fleck: rgba(19, 21, 26, 0.04);
  --paper-texture: none;
  --content-hr: var(--line);
  --muted: #6e6a63;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f4f8;
    --paper: #11141b;
    --milk: #1a1f2a;
    --blue: #4268df;
    --accent-foreground: #f7f8fa;
    --blue-pale: #afb9d1;
    --note-card-secondary: #cbd8f7;
    --green: #daeb94;
    --line: #475064;
    --rule: rgba(99, 130, 255, 0.08);
    --paper-fleck: rgba(242, 244, 248, 0.04);
    --muted: #b8c0d0;
  }
}
html.light {
  --ink: #13151a;
  --paper: #f7f8fa;
  --milk: #ffffff;
  --blue: #4268df;
  --accent-foreground: #f7f8fa;
  --blue-pale: #dce5ff;
  --note-card-secondary: #dce5ff;
  --green: #daeb94;
  --line: #cdd2dc;
  --rule: rgba(66, 104, 223, 0.07);
  --paper-fleck: rgba(19, 21, 26, 0.04);
  --muted: #6e6a63;
}
html.dark {
  --ink: #f2f4f8;
  --paper: #11141b;
  --milk: #1a1f2a;
  --blue: #4268df;
  --accent-foreground: #f7f8fa;
  --blue-pale: #afb9d1;
  --note-card-secondary: #cbd8f7;
  --green: #daeb94;
  --line: #475064;
  --rule: rgba(99, 130, 255, 0.08);
  --paper-fleck: rgba(242, 244, 248, 0.04);
  --muted: #b8c0d0;
}
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    var(--paper-texture), linear-gradient(var(--rule) 1px, transparent 1px),
    radial-gradient(var(--paper-fleck) 0.5px, transparent 0.7px),
    radial-gradient(var(--paper-fleck) 0.45px, transparent 0.65px);
  background-position:
    0 0,
    0 5px,
    2px 3px,
    7px 11px;
  background-size:
    auto,
    100% 32px,
    13px 17px,
    19px 23px;
  font:
    16px/1.5 'Space Grotesk',
    sans-serif;
}
body::before {
  content: '';
  position: fixed;
  z-index: 0;
  inset-block: 0;
  left: max(5.5rem, calc((100vw - 1440px) / 2 + 5.5rem));
  border-left: 1px solid var(--blue);
  opacity: 0.38;
  pointer-events: none;
}
main {
  flex: 1;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--blue);
}
.skip-link {
  position: absolute;
  left: -999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 4;
  padding: 0.5rem;
  background: var(--milk);
}
.site-header {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin: auto;
  padding: 1.1rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 1rem;
  align-items: center;
}
.maker-name {
  color: var(--ink);
  font:
    600 1.3rem/1 'Space Grotesk',
    sans-serif;
  letter-spacing: -0.07em;
  text-decoration: none;
}
.theme-toggle {
  grid-column: 4;
}
.site-nav {
  grid-column: 3;
  display: flex;
  gap: 1.35rem;
  align-items: center;
  font:
    500 0.78rem 'DM Mono',
    monospace;
  text-transform: uppercase;
}
.site-nav a {
  text-decoration: none;
}
.site-nav a[aria-current='page'] {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.menu-button {
  display: none;
  border: 0;
  background: none;
  color: var(--ink);
  font:
    500 0.78rem 'DM Mono',
    monospace;
  text-transform: uppercase;
}
.theme-toggle {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--milk);
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
}
.theme-toggle:hover {
  background: var(--green);
  color: var(--blue);
}
.theme-icon {
  position: relative;
  display: block;
  width: 1rem;
  height: 1rem;
}
.theme-icon__sun,
.theme-icon__moon {
  position: absolute;
  inset: 0;
  width: 1rem;
  height: 1rem;
  line-height: 1;
}
.theme-icon__sun {
  display: grid;
  place-items: center;
}
.theme-icon__moon {
  display: none;
  fill: currentColor;
}
html.dark .theme-icon__sun {
  display: none;
}
html.dark .theme-icon__moon {
  display: block;
}
.hero {
  min-height: 0;
  max-width: 1440px;
  margin: auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1.5rem;
  align-items: stretch;
}
.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
  padding: 2rem;
  background: var(--blue);
  color: var(--accent-foreground);
  border-radius: 10px;
  overflow: hidden;
}
.hero-copy::before {
  content: '';
  position: absolute;
  right: -5rem;
  top: -6rem;
  width: 20rem;
  height: 20rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 48% 52% 62% 38%;
  transform: rotate(22deg);
}
.availability {
  align-self: flex-end;
  margin: 0;
  color: #13151a;
  background: var(--green);
  padding: 0.55rem 0.7rem;
  font:
    500 0.68rem/1 'DM Mono',
    monospace;
  letter-spacing: -0.04em;
  transform: rotate(-3deg);
}
.section-label {
  margin: 0;
  color: var(--blue);
  font:
    500 0.72rem 'DM Mono',
    monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.note-card:nth-child(2) .section-label {
  color: var(--ink);
}
.note-card:nth-child(3) .section-label {
  color: #13151a;
}
.hero h1 {
  max-width: 760px;
  margin: 1.6rem 0;
  color: var(--accent-foreground);
  font:
    700 clamp(2.8rem, 5.4vw, 5rem)/0.91 'Space Grotesk',
    sans-serif;
  letter-spacing: -0.09em;
}
.hero-intro {
  max-width: 500px;
  margin: 0;
  font-size: 1.05rem;
}
.hero-side {
  display: block;
}
.portrait-card {
  position: relative;
  height: 100%;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  padding: 1rem;
  background: var(--blue);
  border-radius: 10px;
  overflow: hidden;
}
.portrait-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 32% 80%;
  transform: scale(2.5);
  transform-origin: 8% bottom;
}
.portrait-card p {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 0.32rem 0.48rem;
  background: var(--milk);
  font:
    0.58rem 'DM Mono',
    monospace;
  text-transform: uppercase;
}
.selected,
.home-notes,
.home-socials {
  max-width: 1440px;
  margin: auto;
  padding: 5rem 2rem;
}
.selected {
  padding-bottom: 2.5rem;
}
.home-notes {
  padding-block: 2.5rem;
}
.home-socials {
  padding-top: 2.5rem;
}
.section-heading {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  padding-bottom: 1.25rem;
}
.section-heading h2 {
  max-width: 15ch;
  margin: 0;
  font:
    700 clamp(2.2rem, 3.4vw, 4rem)/0.9 'Space Grotesk',
    sans-serif;
  letter-spacing: -0.085em;
}
.home-socials .section-heading h2 {
  max-width: none;
  white-space: nowrap;
}
.section-heading p {
  margin: 0;
  max-width: 42ch;
}
.work-summary {
  max-width: 680px;
  margin-top: 2rem;
  font-size: 1.05rem;
}
.work-summary p {
  margin: 0 0 1rem;
}
.work-summary a {
  color: var(--blue);
}
.note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.note-card {
  min-height: 245px;
  padding: 1.4rem;
  border: 0.5px solid var(--line);
  background: var(--milk);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
}
.note-card:nth-child(1) {
  order: 1;
  border-radius: 10px 0 0 10px;
}
.note-card:nth-child(2) {
  order: 2;
  background: var(--note-card-secondary);
  color: var(--card-ink);
}
.note-card:nth-child(2):hover {
  color: var(--blue);
}
.note-card:nth-child(3) {
  order: 3;
  border-radius: 0 10px 10px 0;
  background: var(--green);
}
.note-card h3 {
  max-width: 14ch;
  margin: 1rem 0;
  font:
    700 1.6rem/0.98 'Space Grotesk',
    sans-serif;
  letter-spacing: -0.06em;
}
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.social-grid a {
  min-width: 0;
  padding: 0.75rem 0.85rem;
  border: 0.5px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-radius: 8px;
  background: var(--milk);
  text-decoration: none;
}
.social-grid a:hover {
  color: var(--blue);
  background: var(--green);
}
.social-icon {
  width: 0.95rem;
  height: 0.95rem;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--ink);
}
.social-icon--mail {
  width: 1.15rem;
}
.social-icon--github {
  width: 1.12rem;
  height: 1.12rem;
}
.social-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.social-grid a:hover .social-icon {
  color: var(--blue);
}
.social-grid strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font:
    600 0.88rem 'Space Grotesk',
    sans-serif;
  letter-spacing: -0.04em;
}
.page {
  min-width: 0;
  max-width: 1440px;
  margin: auto;
  padding: 5rem 2rem 7rem;
}
.page-header {
  min-width: 0;
  max-width: none;
  margin-bottom: 4rem;
}
.page-header h1,
.note-header h1 {
  margin: 0.6rem 0 1rem;
  font:
    700 clamp(2.8rem, 5.8vw, 5.3rem)/0.86 'Space Grotesk',
    sans-serif;
  letter-spacing: -0.1em;
}
.page-header h1::after,
.note-header h1::after {
  content: '';
  display: block;
  width: 42%;
  min-width: 4rem;
  margin-top: 0.28rem;
  border-bottom: 3px solid var(--green);
  transform: rotate(-1.2deg);
}
.page-header p {
  max-width: none;
  overflow-wrap: anywhere;
  font-size: 1.05rem;
}
.coffee-header {
  margin-bottom: 2rem;
}
.content-list h2 {
  margin: 4rem 0 1rem;
  color: var(--blue);
  font:
    500 0.72rem/1 'DM Mono',
    monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.content-list li {
  padding: 0.85rem 0;
}
.content-list ul {
  padding: 0;
  list-style: none;
}
.content-list li a {
  font-weight: 600;
}
.blog-filters,
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.blog-filters {
  margin: -2rem 0 2rem;
}
.blog-filter {
  padding: 0.42rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--milk);
  color: var(--ink);
  cursor: pointer;
  font:
    500 0.68rem 'DM Mono',
    monospace;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
}
.blog-filter:hover:not(.is-active) {
  border-color: var(--line);
  background: var(--green);
  color: var(--blue);
}
.blog-filter.is-active {
  border-color: var(--blue);
  background: var(--green);
  color: var(--blue);
}
.post-tags {
  margin-bottom: 0.7rem;
}
.blog-list-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
}
.blog-list-item time {
  flex: none;
  white-space: nowrap;
  font:
    0.76rem 'DM Mono',
    monospace;
  color: var(--muted);
}
.book-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.book-year h3 {
  margin: 2rem 0 1rem;
  color: var(--blue);
  font:
    500 0.72rem/1 'DM Mono',
    monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.book-list li {
  padding: 1rem 0;
}
.book-list-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
}
.book-list-item strong,
.book-list-item a {
  font-weight: 600;
}
.book-list-item span {
  flex: none;
  white-space: nowrap;
  font:
    0.82rem 'DM Mono',
    monospace;
  color: var(--muted);
}
.coffee-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}
.coffee-card {
  display: grid;
  grid-template-columns: minmax(8rem, 0.46fr) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--milk);
}
.coffee-card__visual {
  min-height: 100%;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--green);
  color: #13151a;
  font:
    500 0.66rem 'DM Mono',
    monospace;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.coffee-card__visual:has(img) {
  padding: 0;
  overflow: hidden;
  border-radius: 11px 0 0 11px;
  background: var(--milk);
}
.coffee-card__visual p {
  width: 100%;
  height: 100%;
  margin: 0;
}
.coffee-card__visual img {
  width: 100%;
  height: 100%;
  min-height: 14rem;
  border-radius: 11px 0 0 11px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.coffee-card__visual-mark {
  align-self: center;
  font-size: 3rem;
  line-height: 1;
  filter: grayscale(1);
}
.coffee-card__body {
  min-width: 0;
  padding: 1.1rem;
}
.coffee-card__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
}
.coffee-card__heading h2 {
  flex: 1;
  margin: 0;
  color: var(--ink);
  font:
    700 1.15rem/1 'Space Grotesk',
    sans-serif;
  letter-spacing: -0.06em;
  text-transform: none;
}
.coffee-card__heading h2 a {
  text-decoration-thickness: 1px;
}
.coffee-card__rating {
  flex: none;
  padding: 0.28rem 0.4rem;
  border-radius: 999px;
  background: var(--blue-pale);
  color: var(--card-ink);
  font:
    500 0.66rem/1 'DM Mono',
    monospace;
  transform: translateY(0.1rem);
}
.coffee-card__roaster {
  margin: 0.6rem 0 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.coffee-card__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 0.75rem 1rem;
  margin: 0;
}
.coffee-card__facts div {
  min-width: 0;
}
.coffee-card__facts dt {
  color: var(--blue);
  font:
    500 0.6rem/1 'DM Mono',
    monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.coffee-card__facts dd {
  margin: 0.28rem 0 0;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}
.coffee-card__date {
  margin: 1rem 0 0;
  color: var(--muted);
  font:
    0.64rem 'DM Mono',
    monospace;
}
.coffee-card__note {
  margin: 1rem 0 0;
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.45;
}
.coffee-card__note span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--blue);
  font:
    500 0.66rem 'DM Mono',
    monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.note {
  max-width: 1440px;
  margin: auto;
  padding: 5rem 2rem 7rem;
}
.note-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
}
.note-date {
  font:
    0.76rem 'DM Mono',
    monospace;
  color: var(--muted);
}
.prose {
  max-width: none;
  font:
    1.08rem/1.75 'Space Grotesk',
    sans-serif;
}
.prose h2 {
  margin: 3rem 0 1rem;
  font:
    700 2rem/0.95 'Space Grotesk',
    sans-serif;
  letter-spacing: -0.07em;
}
.prose h3 {
  margin-top: 2rem;
  font-size: 1rem;
}
.prose img {
  display: block;
  width: auto;
  max-width: min(100%, 42rem);
  max-height: 34rem;
  height: auto;
  margin-inline: auto;
  border-radius: 12px;
}
.prose a {
  color: var(--blue);
}
.prose :not(pre) > code {
  padding: 0.12em 0.35em;
  border-radius: 0.25rem;
  background: var(--blue-pale);
  color: var(--ink);
  font:
    0.88em 'DM Mono',
    monospace;
}
.prose .code-block {
  position: relative;
  overflow: auto;
  margin: 1.8rem 0;
  padding: 2.5rem 1.1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--milk);
  color: var(--ink);
  font:
    0.84rem/1.65 'DM Mono',
    monospace;
}
.prose .code-block::before {
  content: attr(data-language);
  position: absolute;
  top: 0.65rem;
  left: 1.1rem;
  color: var(--blue);
  font:
    500 0.64rem/1 'DM Mono',
    monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.prose .code-block code {
  display: block;
  width: max-content;
  min-width: 100%;
  font: inherit;
}
.hero h1::after {
  content: '';
  display: block;
  width: 4.2rem;
  margin-top: 0.26rem;
  border-bottom: 3px solid var(--green);
  transform: rotate(-1.2deg);
}
.site-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin: auto;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  font:
    0.72rem 'DM Mono',
    monospace;
  text-transform: uppercase;
}
.page,
.hero,
.selected,
.home-notes,
.note {
  position: relative;
  z-index: 1;
}
.coming-soon {
  max-width: none;
  padding: 2rem;
  border: 1px dashed var(--blue);
  background: var(--milk);
}
.coming-soon__label {
  display: inline-block;
  margin: 0 0 1.5rem;
  padding: 0.45rem 0.65rem;
  background: var(--green);
  color: #13151a;
  font:
    500 0.68rem/1 'DM Mono',
    monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}
@media (prefers-color-scheme: dark) {
  .note-card:nth-child(3) {
    color: #13151a;
  }
  .note-card:nth-child(3):hover {
    color: var(--blue);
  }
}
html.dark .note-card:nth-child(3) {
  color: #13151a;
}
html.dark .note-card:nth-child(3):hover {
  color: var(--blue);
}
.site-footer p {
  margin: 0;
}
.site-footer div {
  display: flex;
  gap: 1rem;
}
@media (max-width: 720px) {
  body::before {
    display: none;
  }
  .site-header {
    padding: 1rem;
    grid-template-columns: auto 1fr auto;
  }
  .js .menu-button {
    display: block;
    grid-column: 2;
    grid-row: 1;
  }
  .theme-toggle {
    grid-column: 3;
    grid-row: 1;
  }
  .site-nav {
    grid-column: 1/-1;
    grid-row: 2;
    flex-direction: column;
    align-items: stretch;
    padding-top: 1rem;
  }
  .js .site-nav {
    display: none;
  }
  .js .site-nav.is-open {
    display: flex;
  }
  .site-nav a {
    padding: 0.6rem 0;
  }
  .hero {
    min-height: 0;
    padding: 1rem;
    grid-template-columns: 1fr;
  }
  .hero-copy {
    min-height: 460px;
    padding: 1.5rem;
  }
  .hero h1 {
    font-size: 3.9rem;
  }
  .portrait-card {
    min-height: 280px;
  }
  .portrait-card img {
    transform: scale(1.25);
    transform-origin: left bottom;
  }
  .selected,
  .home-notes,
  .home-socials {
    padding: 3rem 1rem;
  }
  .selected {
    padding-bottom: 2rem;
  }
  .home-notes {
    padding-block: 2rem;
  }
  .home-socials {
    padding-top: 2rem;
  }
  .section-heading {
    grid-template-columns: 1fr;
  }
  .note-grid,
  .social-grid {
    grid-template-columns: 1fr;
  }
  .note-card,
  .social-grid a,
  .social-grid a:nth-child(2n) {
    border: 0;
  }
  .page,
  .note {
    padding: 3.5rem 1rem 5rem;
  }
  .site-footer {
    padding: 1.25rem 1rem;
    justify-content: flex-end;
  }
  .coffee-grid {
    grid-template-columns: 1fr;
  }
  .coffee-header p {
    white-space: normal;
  }
}
@media (max-width: 560px) {
  .coffee-card {
    grid-template-columns: 1fr;
  }
  .coffee-card__visual {
    min-height: 7rem;
  }
  .coffee-card__visual:has(img),
  .coffee-card__visual img {
    border-radius: 11px 11px 0 0;
  }
}
@media (min-width: 721px) {
  .hero,
  .selected,
  .home-notes,
  .home-socials,
  .page,
  .note,
  .site-footer {
    padding-left: clamp(7rem, 11vw, 12rem);
  }
}
