/* fonts: self-hosted variable WOFF2 in static/fonts/, subset to Latin.
   Archivo (display, set wide and heavy) and Work Sans (body), both SIL Open
   Font License; the OFL text sits next to the files. */

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Work Sans';
  src: url('/fonts/work-sans-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Work Sans';
  src: url('/fonts/work-sans-italic-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* color scheme */

:root {
  /* gobal colors */
  /* --color-primary: #376691; */
  /* --color-primary: #062f75; */
  --color-primary: 	#395066;
  --color-grey-light: #c9c9c9;
  --color-grey-dark: #7b7b7b;
  --color-white: #efe6d2;
  --color-shadow: #0003;
  --color-focus-outline: dodgerblue;
  --color-magenta: #de047c;
  --color-orange: #f55f02;

  /* light mode */
  --color-background-light: #e3d7bd; /* parchment cream */
  --color-text-light: #241d19; /* warm ink */
  --color-primary-light: #376691;

  /* Newburgh palette (brick rowhouses, slate roofs, the river, a little gold leaf).
     Used by the skyline drawing in both modes and by the dark theme below. */
  --paper: #e3d7bd;
  --paper-2: #d6c8a8;
  --brick: #9d3c2c;
  --slate: #34505f;
  --slate-soft: #587384;
  --gold: #c69640;
  --line: #cdbfa7;

  /* dark mode: cream ink on deep slate, from the 2026-09-14 design mockup */

  --color-darkmode-bkgd-base: #1b2128;
  --color-darkmode-bkgd-base-2: #222a33;
  --color-darkmode-bkgd-shadow: #2c3640;
  --color-darkmode-bkgd-primary: #1b2128;
  --color-darkmode-bkgd-primary-2: #222a33;
  --color-darkmode-bkgd-primary-3: #2c3640;
  --color-darkmode-text: #efe6d5;

  /* dark mode old */
  --color-background-dark: #1b2128;
  --color-text-dark: #efe6d5;
  --color-primary-dark: #9dbccf;
  --color-black-dark: #0a0a0a;

  /* type */
  --font-display: 'Archivo', 'Arial Black', Impact, sans-serif;
  --font-body: 'Work Sans', system-ui, sans-serif;
}

html.dark {
  --paper: #1b2128;
  --paper-2: #222a33;
  --brick: #d4694f;
  --slate: #9dbccf;
  --slate-soft: #7d9aad;
  --gold: #dcae58;
  --line: #3a4753;
  --color-grey-light: #bcae9a;
  --color-grey-dark: #3a4753;
}

/* html */

html {
  font-size: 100%;
  background-color: var(--color-background-light);
  color: var(--color-text-light);
}

html.dark {
    background-color: var(--color-darkmode-bkgd-base);
    color: var(--color-text-dark);
}

/* body */

body {
  font-family: var(--font-body);
  font-size: 1.2rem;
  padding: 25px 50px;
  max-width: 1200px;
  margin: auto;
}

/* main */

main {
  max-width: 80ch;
  margin: auto;
}

/* paragraph */

p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.margin-bottom-none {
  margin-bottom: 0;
}

.txt-center {
  text-align: center;
}

.underline {
  text-decoration-line: underline;
}
/* headings */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 115%;
  letter-spacing: -.01em;
  line-height: 1.4rem;
  margin: 0 0 1rem;
  padding: 0;
  word-wrap: break-word;
  margin-top: 1.8rem;
  margin-bottom: 1rem;
}

.dark h1,
.dark h2,
.dark h3,
.dark h4,
.dark h5,
.dark h6 {
  color: var(--slate);
}

h1 {
  font-size: 2.2rem;
  line-height: 2.6rem;
}


h2 {
  font-size: 1.8rem;
  line-height: 2.2rem;
}

h3 {
  font-size: 1.6rem;
  line-height: 2rem;
}

h4 {
  font-size: 1.4rem;
  line-height: 1.8rem;
}

h5 {
  font-size: 1.3rem;
  line-height: 1.7rem;
}

/* lists */

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

li {

  /* margin-bottom: 0.5rem; */
}

.nav-margins {
  margin: 0;
  padding: 0;
}

/* input & textarea */

input {
  color: var(--color-text-light);
  background-color: var(--color-text-dark);
  border-radius: .4rem;
  padding: .3rem .8rem;
}

input::placeholder {
  color: var(--color-grey-dark);
}

textarea {
  background-color: var(--color-text-dark);
  border-radius: .4rem;
  padding: .3rem .8rem;
}

textarea:focus-visible {
  padding: 3px 3px 3px 3px;
  outline-offset: 3px;
  outline: 3px solid var(--color-focus-outline);
  border-radius: .5rem;
}

textarea::placeholder {
  color: var(--color-grey-dark);
  color: var(--color-grey-dark);
}

/* links */

/* all links */

a {
  color: var(--color-text-light);
  border-color: var(--color-background-dark);
  text-decoration: none;
}

.dark a {
  color: var(--color-text-dark);
}

.dark .nav-links {
  border-color: var(--color-text-dark);
  color: var(--color-text-dark);
}

/* tab selected links */
a:focus-visible {
  padding: 3px 3px 3px 3px;
  outline-offset: 3px;
  outline: 3px solid var(--color-focus-outline);
  border-radius: .5rem;
}

/* mouse over link & when you click or hold */
a:hover,
a:active {
  border-color: var(--color-text-light);
  text-decoration: underline;
}

.dark a:hover,
.dark a:active {
  border-color: var(--color-text-dark);
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
}

.dark hr {
  border-color: var(--line);
}

/* images */

/**
 * Prevent img, video, and svg elements from spilling outside of the page on smaller screens.
 */
img,
video,
svg {
    max-width: 100%;
    border-radius: 25px;
}

img,
video {
    height: auto;
}

.headshot {
    display: block;
    margin: 1rem auto 2rem;
    margin-top: 1.5rem;
   /* box-shadow: 0px 0px 5px 2px var(--color-grey-dark); */
}

/* nav */

/* nav elements */

.container-nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.container-nav-top {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.list-nav {
  display: flex;
  flex-direction: row;
  margin: auto;
  text-align: center;
}

.list-items {
  padding: 0 .4rem;
}

.container-nav-theme {
  min-width: 10rem;
  margin: auto;
}

.list-nav {
  list-style: none;
}

.title-nav {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 115%;
  font-size: 1.5rem;
  letter-spacing: -.01em;
}

.title-nav:hover,
.title-nav:active {
  text-decoration: none;
}

.wordmark .dot {
  color: var(--brick);
}

/* the wordmark keeps the nav's colors wherever it appears, including the
   home page heading, which would otherwise go slate blue in dark mode */
.dark h1 .wordmark {
  color: var(--color-text-dark);
}

/* theme toggle: a small outlined pill, label set by theme.js */

.container-nav-theme-switch {
  margin-top: .75rem;
}

.toggle {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  color: var(--color-grey-dark);
  background: transparent;
  border: 1px solid var(--color-grey-light);
  border-radius: 999px;
  padding: .2rem .7rem;
  margin: 0;
  box-shadow: none;
  cursor: pointer;
  line-height: 1.4;
}

.dark .toggle,
.dark .toggle:hover,
.toggle:hover {
  background: transparent;
  box-shadow: none;
}

.toggle:hover {
  color: var(--color-text-light);
  border-color: var(--color-text-light);
}

.dark .toggle {
  color: var(--color-grey-light);
  border-color: var(--line);
}

.dark .toggle:hover {
  color: var(--color-text-dark);
  border-color: var(--color-text-dark);
}

.toggle:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* nav styles for tablet & desktop */

@media screen and (min-width: 775px) {

  /* nav container */

  .container-nav {
    display: block;
    flex-direction: column;
    justify-content: space-between;
    column-gap: 3rem;
    align-items: center;
  }

  .container-nav-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .container-nav-theme-switch {
    display: flex;
    justify-content: flex-end;
    min-width: 8rem;
  }

  .container-nav-title {
    margin: 0%;
    min-width: 15rem;
  }

  .container-nav-list {
    display: flex;
    flex-direction: row;
    margin: 0%;
  }

  /* nav list */

  .list-nav {
    list-style: none;
    display: flex;
    column-gap: .3rem;
  }

}


  /* taxonomy container */

.taxonomy-cloud {
  margin: auto;
  margin-top: 1.5rem;
  max-width: 80vw;
  display: flex; 
  flex-direction: row; 
  flex-wrap: wrap; 
  justify-content: center;
  border: 2px solid var(--color-text-dark);
  padding-top: .75rem;
  padding-bottom: 1rem;
  border-radius: 1rem;
}

.taxonomy-items {
  margin: .5rem;
}

/* form container */

.container-form {
  margin: 20px;
  padding: 15px;
  border: 2px solid var(--color-text-light);
  border-radius: .5rem;
  max-width: 25rem;
  margin-left: auto;
  margin-right: auto;
}

.dark .container-form {
  border: 1.5px solid var(--color-text-dark);
}

/* form input fields */

.field-form {
  margin: 15px;
  display: flex;
  flex-direction: column;
}

/* buttons */

button,
.btn {
  border-color: none;
  background-color: var(--color-background-light);
  /* border: 0.125rem solid var(--color-primary); */
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.2;
  margin-right: 0.3125rem;
  margin-bottom: 0.3125rem;
  padding: 0.5rem 0.6875rem;
  box-shadow: 0px 0px 5px var(--color-darkmode-bkgd-base);
}

.dark button,
.dark .btn {
  background-color: var(--color-darkmode-bkgd-base);
  color: var(--color-text-dark);
  box-shadow: 0px 0px 5px var(--color-grey-light);
  /* border-color: none; */
}

button:hover,
button:active,
.btn:hover,
.btn:active {
  color: var(--color-text-light);
  background-color: var(--color-white);
  border-color: var(--color-text-light);
  text-decoration: none;
}

.btn-center {
  display: table;
  margin: auto;
}

.dark button:hover,
.dark button:active,
.dark .btn:hover,
.dark .btn:active {
  color: var(--color-text-light);
  background-color: var(--color-text-dark);
  border-color: var(--color-text-dark);
}

button:focus-visible,
.btn:focus-visible {
  padding: 3px 3px 3px 3px;
  outline-offset: 3px;
  outline: 3px solid var(--color-focus-outline);
  border-radius: .5rem;
}

.margin-bottom-sm {
  margin-bottom: 0.3rem;
}

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

/* blog post card */

.blog-post-card {
  /* margin: 1rem; */
  margin: 3rem 0;
  padding: 1rem;
  border-radius: 20px;
}

.dark .blog-post-card {
  padding: 1rem;
  border-radius: 20px;
  background: var(--color-darkmode-bkgd-base-2);
}

.dark .parent {
  box-shadow: 0px 0px 0px 1.5px var(--line);
}

.dark .taxonomy-cloud {
  border-color: var(--line);
}

.dark .container-form {
  border-color: var(--line);
}

.margin-top-none {
  margin: 0;
}

.parent {
   position: relative;
   border-radius: 20px;
   box-shadow: 0px 0px 5px 2px var(--color-grey-dark);
}

/* pagination */

.pagination {
  display: flex;
  list-style: none;
  margin: 0;
  margin-top: .75rem;
  justify-content: center;
}

.page-item {
  padding: 1rem;
}

/* footer */

.footer-container {
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-address {
  font-style: normal;
  line-height: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding-bottom: .3rem;
}

.footer-business {
  font-size: 1.15rem;
  margin-bottom: .15rem;
}

.footer-est {
  max-width: fit-content;
  margin: auto;
  margin-bottom: 0;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .8;
}

#mail {
  padding-top: .5rem;
}

.footer-links {
  text-align: center;
}
@media screen and (min-width: 800px) {
  
  .footer-container {
    flex-direction: row;
  }

  .footer-address {
    text-align: left;
    padding-bottom: .5rem;
  }

  #mail {
    padding-top: 0;
  }

  .footer-links {
    text-align: right;
  }

}

/* home page skyline: ink-line rowhouses, the Dutch Reformed Church, and the Hudson.
   Inline SVG in partials/skyline.html; colors follow the palette variables so it
   recolors itself in dark mode. */

.skyline {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 1rem auto 1.5rem;
  border-radius: 0;
}

.skyline .ink { stroke: var(--color-text-light); fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.dark .skyline .ink { stroke: var(--color-text-dark); }
.skyline .brick { fill: var(--brick); opacity: .85; }
.skyline .slate { fill: var(--slate); opacity: .8; }
.skyline .paper { fill: var(--paper-2); }
.skyline .gold { fill: var(--gold); }
.skyline .water { stroke: var(--slate-soft); fill: none; stroke-width: 1.6; opacity: .7; }
