/* ================================================================
   screen.css — base reset & typography for Perfect Paw blog
   Adapted from Casper 2.x base stylesheet.
   ================================================================ */

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

/* ─── Root ─── */
html {
  font-size: 62.5%;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

body {
  /* font-family set in perfectpaw.css (Plus Jakarta Sans) */
  font-size: 1.5rem;
  line-height: 1.6em;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

/* ─── Typography scale ─── */
h1, h2, h3, h4, h5, h6 {
  /* font-family set in perfectpaw.css (Plus Jakarta Sans) */
  margin: 0 0 0.4em;
  font-weight: 700;
  line-height: 1.2em;
}

h1 { font-size: 4.6rem; }
h2 { font-size: 3.6rem; }
h3 { font-size: 2.8rem; }
h4 { font-size: 2.2rem; }
h5 { font-size: 2.0rem; }
h6 { font-size: 1.8rem; }

p { margin: 0 0 1.5em; }

ul, ol { margin: 0 0 1.5em; padding: 0 0 0 2em; }
li { margin: 0.5em 0; }

a { text-decoration: none; }
a:hover { text-decoration: underline; }

blockquote {
  margin: 1.5em 0;
  padding: 0 0 0 1.5em;
  border-left: 4px solid currentColor;
  font-style: italic;
}

hr {
  border: none;
  border-top: 1px solid;
  margin: 2em 0;
}

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

figure { margin: 0; }
figcaption { font-size: 1.3rem; margin-top: 0.5em; text-align: center; }

code, kbd, pre, samp {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 1.4rem;
}

pre {
  overflow-x: auto;
  padding: 1.5rem;
  border-radius: 6px;
  margin: 1.5em 0;
  line-height: 1.5;
}

code { padding: 0.2em 0.4em; border-radius: 3px; }
pre code { padding: 0; }

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5em 0;
  font-size: 1.4rem;
}
th, td {
  padding: 0.8rem 1.2rem;
  border: 1px solid;
  text-align: left;
}

/* ─── Layout helpers ─── */
.outer {
  padding: 0 max(5vw, 24px);
}

.inner {
  max-width: 1200px;
  margin: 0 auto;
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ─── Utility ─── */
.hide { display: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
