/* Reset CSS: https://meyerweb.com/eric/tools/css/reset/ */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

/* Site fonts; theme colors are owned by the shared semantic tokens. */
:root {
  --zenbu-font-editorial: "More Thin", "Roboto", sans-serif;
  --zenbu-font-playful: "More", "More Thin", sans-serif;
  --zenbu-sys-font-family-ui: var(--zenbu-font-editorial);
  --zenbu-sys-font-family-content: var(--zenbu-font-editorial);
}

/* Compatibility for older article/resume markup, never a private palette. */
:root {
  --main-width: var(--zenbu-sys-width-reading);
  --gray: var(--zenbu-sys-color-text-secondary);
  --white: var(--zenbu-sys-color-surface-default);
  --black: var(--zenbu-sys-color-text-primary);
  --darkgray: var(--zenbu-sys-color-border-strong);
  --lightgray: var(--zenbu-sys-color-border-subtle);
  --gray-light: var(--zenbu-sys-color-border-subtle);
  --green: var(--zenbu-sys-color-success-foreground);
  --orange: var(--zenbu-sys-color-action-primary-background-hover);
  --purple: var(--zenbu-sys-color-action-primary-background);
  --red: var(--zenbu-sys-color-danger-foreground);
  --blue: var(--zenbu-sys-color-info-foreground);
  --darktext: var(--zenbu-sys-color-text-secondary);
  --text: var(--zenbu-sys-color-text-primary);
  --graytext: var(--zenbu-sys-color-text-secondary);
  --lighttext: var(--zenbu-sys-color-text-tertiary);
  --awesome: var(--zenbu-sys-color-action-danger-background);
  --accent: var(--zenbu-sys-color-text-link);
  --accent-dark: var(--zenbu-sys-color-action-primary-background-pressed);
  --gray-dark: var(--zenbu-sys-color-text-primary);
  --gray-gradient: linear-gradient(
    var(--zenbu-sys-color-surface-page),
    var(--zenbu-sys-color-surface-default)
  );
  --box-shadow: var(--zenbu-sys-shadow-raised);
}

/* --- fonts --- */
/* 
@font-face {
  font-family: "Atkinson";
  src: url("/public/fonts/atkinson-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Atkinson";
  src: url("/public/fonts/atkinson-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
}
*/
@font-face {
  font-family: "Roboto";
  src: url("/public/fonts/Roboto-Regular.ttf");
}
@font-face {
  font-family: "Roboto Light";
  src: url("/public/fonts/Roboto-Thin.ttf");
}
@font-face {
  font-family: "More Thin";
  src: url("/public/fonts/more-sugar.thin.otf");
}
@font-face {
  font-family: "More";
  src: url("/public/fonts/more-sugar.regular.otf");
}

/* -- HTML Tags only --*/
/* One opaque surface, including the canvas exposed beyond the body. */
html, body {
  background: var(--zenbu-sys-color-surface-page);
}

html {
  min-height: 100%;
}

a {
  color: inherit; /* blue colors for links too */
  text-decoration: inherit; /* no underline */
}

body {
  min-height: 100vh;
  font-family: var(--zenbu-sys-font-family-content);
  margin: 0;
  padding: 0;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: var(--zenbu-sys-color-text-primary);
  font-size: var(--zenbu-sys-font-size-xl);
  line-height: var(--zenbu-sys-line-height-lg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  box-sizing: border-box;
  background: transparent;
  width: var(--main-width);
  max-width: calc(100% - 2em);
  margin: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.5rem 0;
  color: var(--zenbu-sys-color-text-primary);
  font-weight: var(--zenbu-sys-font-weight-strong);
  line-height: 1.2;
}

h1 {
  font-size: var(--zenbu-sys-type-page-title-size);
}

h2 {
  font-size: var(--zenbu-sys-font-size-3xl);
}

h3 {
  font-size: var(--zenbu-sys-font-size-2xl);
}

h4 {
  font-size: var(--zenbu-sys-font-size-xl);
}

h5 {
  font-size: var(--zenbu-sys-font-size-lg);
}

strong,
b {
  font-weight: 700;
}

p {
  margin-bottom: 1em;
}

.prose p {
  margin-bottom: 2em;
}

textarea {
  width: 100%;
  font-size: 16px;
}

zen-button[appearance="plain"][size] > :where(button, a) {
  display: inline-flex;
  min-height: var(--zenbu-control-height);
  align-items: center;
  justify-content: center;
  gap: var(--zenbu-control-gap);
  padding:
    var(--zenbu-control-padding-block)
    var(--zenbu-control-padding-inline);
  font-size: var(--zenbu-control-font-size);
  font-family: inherit;
  font-weight: var(--zenbu-sys-font-weight-strong);
  line-height: var(--zenbu-control-line-height);
}

input {
  font-size: 16px;
}

:where(input, textarea)::placeholder {
  color: var(--zenbu-sys-color-text-placeholder);
  opacity: 1;
}

table {
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

code {
  padding: 0 var(--zenbu-sys-space-icon-label);
  border-radius: var(--zenbu-sys-radius-control-small);
  background: var(--zenbu-sys-color-surface-subtle);
  color: var(--zenbu-sys-color-text-primary);
  font-family: var(--zenbu-sys-type-code-family);
  font-size: var(--zenbu-sys-type-code-size);
}

pre {
  overflow: auto;
  margin-bottom: var(--zenbu-sys-space-group);
  padding: var(--zenbu-sys-padding-lg);
  border-radius: var(--zenbu-sys-radius-panel);
  background: var(--zenbu-sys-color-code-surface);
  color: var(--zenbu-sys-color-code-text);
  font-family: var(--zenbu-sys-font-family-code);
  scrollbar-gutter: stable;
}

pre code {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

pre:has(> code.hljs) {
  padding: 0;
  background: transparent;
}

pre > code.hljs {
  border-radius: inherit;
}

blockquote {
  border-left: 4px solid var(--zenbu-sys-color-text-link);
  padding: 0 0 0 20px;
  margin-bottom: 1.25em;
  font-size: var(--zenbu-sys-font-size-lg);
  line-height: var(--zenbu-sys-line-height-lg);
}

ul,
ol {
  margin-bottom: 1.25em;
  padding-inline-start: var(--zenbu-sys-space-content);
}

ul > li,
ol > li {
  padding-inline-start: var(--zenbu-sys-space-related);
}

.blog-title {
  margin-bottom: var(--zenbu-sys-space-container);
}

.blog-list {
  padding-inline-start: 0;
  list-style: none;
}

.blog-list > li {
  margin-bottom: var(--zenbu-sys-space-container);
  padding-inline-start: 0;
}

hr {
  border: none;
  border-top: var(--zenbu-sys-stroke-width) solid
    var(--zenbu-sys-color-border-subtle);
}

.center {
  display: flex;
  justify-content: center;
}

a {
  text-decoration: underline;
}

zen-link[effect="paw"] > a {
  text-decoration: none;
}

/* Reserve the decoration before the component module upgrades static links. */
zen-link[effect="paw"] > a:not(:has(> [data-zen-link-decoration]))::before {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-inline-end: var(--zenbu-sys-space-related);
  content: "";
  vertical-align: -0.125em;
}

:where(html, textarea, pre, #output) {
  scrollbar-color:
    var(--zenbu-sys-color-action-primary-background)
    var(--zenbu-sys-color-surface-sunken);
  scrollbar-width: thin;
}

:where(html, textarea, pre, #output)::-webkit-scrollbar {
  width: var(--zenbu-sys-space-control);
  height: var(--zenbu-sys-space-control);
}

:where(html, textarea, pre, #output)::-webkit-scrollbar-track {
  border-radius: var(--zenbu-sys-radius-pill);
  background: var(--zenbu-sys-color-surface-sunken);
}

:where(html, textarea, pre, #output)::-webkit-scrollbar-thumb {
  border: var(--zenbu-sys-stroke-width) solid
    var(--zenbu-sys-color-surface-sunken);
  border-radius: var(--zenbu-sys-radius-pill);
  background: var(--zenbu-sys-color-action-primary-background);
  background-clip: padding-box;
}

:where(html, textarea, pre, #output)::-webkit-scrollbar-thumb:hover {
  background: var(--zenbu-sys-color-action-primary-background-hover);
  background-clip: padding-box;
}

/* -- mobile -- */
@media (max-width: 720px) {
  body {
    font-size: var(--zenbu-sys-font-size-lg);
    line-height: var(--zenbu-sys-line-height-md);
  }

  main {
    padding: var(--zenbu-sys-padding-lg) var(--zenbu-sys-padding-md);
  }

  h1 {
    font-size: var(--zenbu-sys-font-size-3xl);
  }

  h2 {
    font-size: var(--zenbu-sys-font-size-2xl);
  }

  h3 {
    font-size: var(--zenbu-sys-font-size-xl);
  }

  h4 {
    font-size: var(--zenbu-sys-font-size-lg);
  }

  h5 {
    font-size: var(--zenbu-sys-font-size-md);
  }

  p {
    margin-bottom: 1.25em;
  }

  /* Better touch targets for mobile */
  a {
    padding: 0.25em 0;
    display: inline-block;
  }

  input, textarea, select {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  /* Improve blockquote readability */
  blockquote {
    font-size: var(--zenbu-sys-font-size-md);
    padding: 0.5em 0 0.5em 1em;
  }

  /* Better code block sizing */
  code {
    font-size: var(--zenbu-sys-font-size-sm);
  }

  pre {
    padding: var(--zenbu-sys-padding-md);
  }
}


/* Plain site controls and native links retain keyboard focus in every theme. */
:where(a, button, input, textarea, select, summary):focus-visible {
  outline: var(--zenbu-sys-focus-width) solid
    var(--zenbu-sys-color-focus-outer);
  outline-offset: var(--zenbu-sys-focus-offset);
}

::selection {
  background: var(--zenbu-sys-color-selection-background);
  color: var(--zenbu-sys-color-selection-foreground);
}
