@import url("fonts.css");

/*── RESET & BOX SIZING ─────────────────────────────────────────────────────*/
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

/*── BASE TYPOGRAPHY ───────────────────────────────────────────────────────*/
:root {
  --background: #f7f1e5;
  --foreground: #333;
  --background-secondary: #f7f1e5;
  --background-section: #fefefe;
  --accent-1: #d8232a;
  --accent-2: #1a1a1a;
  --accent-3: #525e3d;
  --highlight: #ea4271;
}

html {
  font-size: 100%;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Switzer";
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--foreground);
  background: var(--background);
}

strong, bold {
  font-weight: 595;
  color: var(--accent-2);
}

/*── SCROLL CONTAINER & SNAP ───────────────────────────────────────────────*/
html, body {
/*   height: 100%; */
  overflow: hidden;
}

#section-container {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y proximity;
  scroll-padding-bottom: 5vh; /* reserves snapping space */
  border-left: 9px var(--accent-1) solid;
}

#section-container > * {
  scroll-snap-align: start;
}

#section-container > :last-child {
  scroll-snap-align: end;
}


.section-card {
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: opacity .4s ease, transform .4s ease;
  opacity: 0;
  transform: translateY(20px);
}

/*── CONTENT WRAPPER ──────────────────────────────────────────────────────*/

#top {
/*   height: 100vh; */
  background: var(--background-secondary);
  padding-bottom: 2rem;
  scroll-margin-top: 1rem;
}

.section-card__content {
  overflow-y: auto;
  flex: 1 1 auto;
  position: relative;
  scroll-margin-top: 1rem;
  z-index: 3;
  max-width: 800px;
  background: var(--background-section);
  padding-top: 2rem;
  padding-right: 1rem;
  padding-bottom: 1rem;
  padding-left: 1rem;
}

.section-content__body {
  max-width: 30em;
}

/*── TYPOGRAPHY ──────────────────────────────────────────────────────*/

#top h1 {
  font-size: 56px;
  font-family: "Antique Serie";
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1;
  color: var(--accent-1);
  margin-top: 1rem;
  margin-left: 1.5rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

#top #top-text {
  font-size: 16px;
  font-family: "Fragment Mono";
  color: var(--accent-2);
  max-width: 27rem;
  margin-left: 1.75rem;
  padding-right: 1em;
}

.content__header {
  max-width: 45rem;
}

.section-card__content h1 {
  font-family: "Public Sans";
  text-transform: uppercase;
  font-size: 28px;
  font-weight: 500;
  color: var(--accent-3);
  line-height: 1.3;
  margin-top: .125em;
  margin-bottom: 0;
}

.section-card__content p {
  margin-bottom: 1em;
}

.section-content__quote + p {
  margin-top: 1em;
}

.section-content__quote
{
  padding-left: .75em;
  padding-top: .75em;
  padding-bottom: .25em;
  margin-right: 0;
  width: 97%;
}
 
.section-content__quote p {
  color: var(--accent-2);
  font-family: "Fragment Mono", sans-serif;
  font-size: 16px;
  letter-spacing: -0.04em;
  line-height: 1.44;
  margin-bottom: 15px;
}

.quote-from
{
  margin: 0.1rem 0 0.5rem 0;
  padding: 0.25rem 2.6em;
  line-height: 1.45;
  position: relative;
}

.quote-from:before
{
  content: "\2014";
  padding-right: .4ex;
}

img {
  width: 100%;
}

ul,
ol {
  margin: 0;
  padding: 0;
  margin-left: 1.5rem;
}

li {
  font-size: 1em;
}

ul { list-style-type: disc; }
ol { list-style-type: decimal; }

ul ul,
ol ol {
  margin-left: 1.5rem;        /* further indent */
}
ul ul   { list-style-type: disc; }
ol ol   { list-style-type: lower-alpha; }

ul ul ul,
ol ol ol {
  margin-left: 1.5rem;
}

ul ul ul { list-style-type: square; }
ol ol ol { list-style-type: lower-roman; }

li + li {
  margin-top: 0.25em;         /* ~5.25px desktop, ~4.5px mobile */
}

#combo {margin-top: .25em; margin-bottom: 2em; margin-left: .5em;}
#combo p {margin-bottom: 0;}
#combo #bold {font-weight: 400; font-size: 1rem; font-family: "Fragment Mono";}
#combo #light {font-weight: 300; font-size: 1rem;}
#combo #normal {font-weight: 400;}

hr
{
  margin-top: 1.25em;
  margin-bottom: 1.75em;
  border-color: white;
}

/*── HTMX SENTINEL ─────────────────────────────────────────────────────────*/
.section-sentinel {
  height: 1px;
}

/*── RESPONSIVE ───────────────────────────────────────────────────*/
@media (min-width: 720px) {

    #top h1 {
    font-size: 84px;
    margin-left: 1.5rem;
  }
  
  #top #top-text {
    font-size: 18px;
    margin-left: 2.5rem;
    max-width: 36rem;
  }
  
  .section-card__content {
    margin: 3rem;
    border: 3px var(--accent-2) solid;
    font-size: 1.3125rem;
}

  .section-card__content h1 {
    font-size: 63px;
  }
  
  .section-content__quote p {
    font-size: 18px;
    margin-bottom: 18px;
  }
}

@media (min-width: 1024px) {

}
