/* ========================= Root variables for fonts and colors ========================= */

:root {
  --fs-base: clamp(0.875rem, 1vw, 1rem); 
  --fs-h1: 2rem;
  --fs-h2: 1.5rem;
  --fs-h3: 1.25rem;
  --fs-h4: 1.125rem;
  --fs-h5: 1rem;
  --fs-h6: 0.875rem;
  --color-text: #333; 
  --color-bg: #fff;   
}

/* ========================= Base html reset ========================= */

html {
  box-sizing: border-box;
  font-size: 100%; 
  font-weight: normal;
  scroll-behavior: smooth; 
  overflow-y: scroll; 
}

*, *:before, *:after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

/* ========================= Body ========================= */

body {
  font-size: var(--fs-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}


h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }
h6 { font-size: var(--fs-h6); }
h1, h2, h3, h4, h5, h6 {
  line-height: 1.5;
}

/* ========================= HTML5 Elements Reset & Layout ========================= */

html, body, body div, span, object, iframe, h1, h2, h3, h4, h5, h6, p,
blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd,
q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr,
th, td, article, aside, figure, footer, header, menu, nav, section,
time, mark, audio, video, details, summary {
  border: 0;
  vertical-align: baseline;
  background: transparent;
}

/* ========================= Form Elements ========================= */

select, input, textarea {
  font-family: inherit;
  font-size: inherit;
}


input, select {
  vertical-align: middle;
}


button, input, select, textarea {
  margin: 0;
}

/* ========================= HTML5 Display Fix ========================= */

article, aside, figure, footer, header, nav, section, details, summary {
  display: block;
}

/* ========================= Images & Media ========================= */

img, object, embed {
  max-width: 100%;
}

/* ========================= General Styling ========================= */

ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}


p {
  margin-bottom: 1rem;
}

/* ========================= Links ========================= */

a {
  color: inherit;
  text-decoration: none;
}


a:hover {
  text-decoration: underline;
}

/* ========================= Text Formatting ========================= */

del {
  text-decoration: line-through;
}


abbr[title], dfn[title] {
  border-bottom: 1px dotted #000;
  cursor: help;
}


strong {
  font-weight: bold;
}


small {
  font-size: 85%;
}


sub, sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}


pre, code, kbd, samp {
  font-family: monospace, sans-serif;
}

/* ========================= Tables ========================= */

table {
  border-collapse: collapse;
  border-spacing: 0;
  font-size: inherit;
  font: 100%;
}

th {
  font-weight: bold;
  vertical-align: bottom;
}

td {
  font-weight: normal;
  vertical-align: top;
}

td, td img {
  vertical-align: top;
}


/* ========================= Preformatted Text ========================= */

pre {
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* ========================= Input Types ========================= */

input[type="radio"] {
  vertical-align: text-bottom;
}

input[type="checkbox"] {
  vertical-align: bottom;
}


input[type=button],
input[type=submit],
input[type=file],
button,
label,
.clickable {
  cursor: pointer;
}

button, input[type=button] {
  width: auto;
  overflow: visible;
}



/* ========================= Clearfix Utility ========================= */

.clearfix:before,
.clearfix:after {
  content: "\0020";
  display: block;
  height: 0;
  overflow: hidden;
}

.clearfix:after {
  clear: both;
}

.clearfix {
  zoom: 1; 
}


fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

/* ========================= Accessibility Focus ========================= */

:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}