/* ==========================================================================
   Jackson Hedden — shared site styles
   Type scale and grid follow the original Squarespace theme:
   fluid sizes = (scale - 1) * 1.2vw + 1rem, 3vw site gutter, 24-column
   fluid-engine grid (8 columns on mobile).
   ========================================================================== */

:root {
  --black: #000;
  --white: #fff;
  --accent: #d9d9d9;
  --light-accent: #f5f5f5;
  --dark-accent: #797979;
  --font: "futura-pt", "Jost", "Futura", "Century Gothic", system-ui, sans-serif;

  /* Variables the per-section fluid-engine grid CSS expects. */
  --sqs-site-gutter: 3vw;
  --sqs-mobile-site-gutter: 6vw;
  --sqs-site-max-width: 1900px;

  --gutter: 3vw;
  --header-h: 68px;

  --fs-h1: min(calc(3.6vw + 1rem), 84.4px);
  --fs-h2: min(calc(2.16vw + 1rem), 57.04px);
  --fs-h3: min(calc(1.44vw + 1rem), 43.36px);
  --fs-h4: min(calc(.72vw + 1rem), 29.68px);
  --fs-lg: min(calc(.48vw + 1rem), 25.12px);
  --fs-sm: min(calc(1rem - .12vw), 14.4px);
  --fs-base: 1rem;
}

@media (max-width: 767px) {
  :root {
    --gutter: 6vw;
    --unit: min(1.2vh, 10.8px);
    --fs-h1: calc(3 * var(--unit) + 1rem);
    --fs-h2: calc(1.8 * var(--unit) + 1rem);
    --fs-h3: calc(1.2 * var(--unit) + 1rem);
    --fs-h4: calc(.6 * var(--unit) + 1rem);
    --fs-lg: calc(.4 * var(--unit) + 1rem);
    --fs-sm: calc(1rem - .1 * var(--unit));
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: capitalize;
}
h1 { font-size: var(--fs-h1); line-height: 1.056; }
h2 { font-size: var(--fs-h2); line-height: 1.114; }
h3 { font-size: var(--fs-h3); line-height: 1.142; }
h4 { font-size: var(--fs-h4); line-height: 1.2; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--white);
  color: var(--black);
}
.skip-link:focus { left: 8px; top: 8px; }

/* Themes ------------------------------------------------------------------ */

.theme-default, .theme-black, [data-header-theme="default"], [data-header-theme="black"] { --bg: var(--black); --fg: var(--white); }
.theme-white, [data-header-theme="white"]                   { --bg: var(--white); --fg: var(--black); }
.theme-light, [data-header-theme="light"]                   { --bg: var(--light-accent); --fg: var(--black); }
.theme-dark, [data-header-theme="dark"]                     { --bg: var(--dark-accent); --fg: var(--white); }
.theme-bright, [data-header-theme="bright"]                 { --bg: var(--accent); --fg: var(--black); }
.theme-bright-inverse, [data-header-theme="bright-inverse"] { --bg: var(--black); --fg: var(--accent); }

.theme-default, .theme-black, .theme-white, .theme-light, .theme-dark, .theme-bright, .theme-bright-inverse {
  background: var(--bg);
  color: var(--fg);
}

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 1.6rem;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font: 700 16px/1.4 var(--font);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.btn--small  { padding: 1rem 1.3rem; }
.btn--medium { padding: 1.2rem 1.6rem; }
.btn--large  { padding: 1.4rem 2.2rem; font-size: 18px; }
.btn:hover { background: var(--fg, currentColor); color: var(--bg, var(--black)); }
.btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Header ------------------------------------------------------------------ */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: var(--bg);
  color: var(--fg);
  transition: transform .4s ease, background-color .3s ease;
}
[data-header-overlay] .header:not(.is-scrolled) { background: transparent; }
.header.is-hidden { transform: translateY(-100%); }
.header .btn:hover { background: var(--fg); color: var(--bg); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 2.3rem;
  height: var(--header-h);
  padding-inline: var(--gutter);
}

.header__logo {
  margin-right: auto;
  font-size: 24.64px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.header__nav { display: flex; gap: 2.3rem; }
.header__nav a {
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .25s ease;
}
.header__nav a:hover, .header__nav a[aria-current] { background-size: 100% 1px; }

.header__cta { width: 120px; padding-inline: 0; white-space: nowrap; }

.header__burger {
  display: none;
  position: relative;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.header__burger span {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  background: currentColor;
  transition: transform .3s ease, top .3s ease;
}
.header__burger span:first-child { top: 13px; }
.header__burger span:last-child  { top: 21px; }
.header__burger[aria-expanded="true"] span:first-child { top: 17px; transform: rotate(45deg); }
.header__burger[aria-expanded="true"] span:last-child  { top: 17px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  padding: calc(var(--header-h) + 2rem) 6vw 2rem;
  background: var(--bg, var(--white));
  color: var(--fg, var(--black));
  overflow-y: auto;
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 1.25rem; }
.mobile-menu a:not(.btn) {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.mobile-menu .btn { margin-top: 1rem; }

@media (max-width: 1100px) {
  .header__nav, .header__inner { gap: 1.4rem; }
}
@media (max-width: 960px) {
  .header__nav, .header__cta { display: none; }
  .header__burger { display: block; }
}

/* Sections ---------------------------------------------------------------- */

.section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.section.va-top    { justify-content: flex-start; }
.section.va-bottom { justify-content: flex-end; }
.section { --sh: 33; }
.section.h-small   { min-height: 33vh; }
.section.h-medium  { min-height: 66vh; --sh: 66; }
.section.h-large   { min-height: 100vh; --sh: 100; }
.section.h-custom  { min-height: var(--section-h, 33vh); }

.section__bg { position: absolute; inset: 0; overflow: hidden; }
.section__bg > img, .section__bg > video, .section__bg > canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.section__overlay { position: absolute; inset: 0; background: var(--bg); }
.section__yt { position: absolute; inset: 0; container-type: size; pointer-events: none; }
.section__yt iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100cqw, 177.78cqh);
  height: max(56.25cqw, 100cqh);
  border: 0;
  transform: translate(-50%, -50%);
}

.section__content {
  position: relative;
  width: 100%;
  /* Squarespace scales section padding with the section-height setting. */
  padding-block: calc(var(--sh) * var(--gutter) / 30);
}
main > .section:first-child { padding-top: var(--header-h); }

/* Fluid engine (per-section grid placement comes from inline page CSS) */

.fluid-engine { position: relative; }
.fe-block { position: relative; min-width: 0; }
.blk {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

/* Text */
.rte { width: 100%; }
.rte > :first-child { margin-top: 0; }
.rte > :last-child { margin-bottom: 0; }
.rte p, .rte li { white-space: pre-wrap; }
.rte p { margin: 1rem 0; }
.rte h1, .rte h2, .rte h3, .rte h4 { margin: 2rem 0; white-space: pre-wrap; }
.rte a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.rte ul, .rte ol { margin: 1rem 0; padding-left: 2.5rem; }
.rte li > p { margin: 0; }
.rte li + li { margin-top: .5rem; }
.rte blockquote { margin: 2rem 0; padding-left: 1.5rem; border-left: 2px solid currentColor; }
.rte table { border-collapse: collapse; width: 100%; }
.rte th, .rte td { padding: .5rem .75rem; border: 1px solid currentColor; text-align: left; vertical-align: top; }
.text-lg { font-size: var(--fs-lg); }
.text-sm { font-size: var(--fs-sm); }
.text-accent { color: var(--accent); }

/* Images */
.blk--image .blk-align { position: absolute; inset: 0; overflow: hidden; }
.blk--image a { display: block; height: 100%; }
.blk--image img { width: 100%; height: 100%; object-fit: cover; }
.blk--image figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem; font-size: var(--fs-sm); }

.blk--figure figure { margin: 0 auto; width: 100%; }
.blk--figure img { width: 100%; height: auto; }
.blk--figure figcaption { margin-top: .75rem; font-size: var(--fs-sm); }

/* Buttons */
.btn-wrap { display: flex; width: 100%; height: 100%; }
.btn-wrap--left   { justify-content: flex-start; }
.btn-wrap--center { justify-content: center; }
.btn-wrap--right  { justify-content: flex-end; }
.btn-wrap--stretch .btn { width: 100%; height: 100%; }

/* Video */
.video { position: relative; width: 100%; overflow: hidden; background: #111; }
.video video, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.blk--video { justify-content: center; }

/* Code embeds */
.blk--code { display: block; overflow-wrap: anywhere; }
.blk--code iframe { width: 100%; border: 0; }

/* Accordion */
.accordion__item { border-top: 1px solid currentColor; }
.accordion__item:last-child { border-bottom: 1px solid currentColor; }
.accordion__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  cursor: pointer;
  list-style: none;
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__title { margin: 0; font-size: var(--fs-h4); }
h3.accordion__title { font-size: var(--fs-h3); }
.accordion__icon { position: relative; flex: 0 0 20px; width: 20px; height: 20px; }
.accordion__icon::before, .accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  margin-top: -1px;
  background: currentColor;
  transition: transform .25s ease;
}
.accordion__icon::after { transform: rotate(90deg); }
.accordion__item[open] .accordion__icon::after { transform: rotate(0deg); }
.accordion__body { padding: 0 0 1.5rem; }

/* Text marquee */
.blk--marquee { justify-content: center; overflow: hidden; }
.tmarquee {
  --marquee-px: min(calc((var(--marquee-size) - 1) * 1.2vw + 1rem), calc((var(--marquee-size) - 1) * 22.8px + 1rem));
  overflow: hidden;
  font-size: var(--marquee-px);
  line-height: 1.2;
  white-space: nowrap;
}
.tmarquee--heading-1 { font-weight: 700; letter-spacing: -0.02em; text-transform: capitalize; }
.tmarquee__track { display: flex; width: max-content; animation: marquee var(--marquee-duration, 30s) linear infinite; }
.tmarquee[data-direction="right"] .tmarquee__track { animation-direction: reverse; }
.tmarquee__item { padding-right: var(--marquee-gap); }
@media (max-width: 767px) {
  .tmarquee { --marquee-px: calc((var(--marquee-size) - 1) * var(--unit) + 1rem); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Misc blocks */
.blk--hr { justify-content: center; }
.blk--hr hr { width: 100%; margin: 0; border: 0; border-top: 1px solid currentColor; }
.blk--map iframe { width: 100%; height: 100%; min-height: 300px; border: 0; }
.blk--social { flex-direction: row; gap: 8px; }
.blk--social a, .footer__social a { display: block; width: 32px; height: 32px; }
.blk--social svg, .footer__social svg { width: 100%; height: 100%; fill: currentColor; transform: scale(1.6); }

/* Form */
.form { display: grid; gap: 1.25rem; width: 100%; }
.form__row { display: grid; gap: .4rem; margin: 0; padding: 0; border: 0; }
.form fieldset { display: grid; gap: .75rem; }
.form legend { margin-bottom: .4rem; }
.form__row--split { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.form label { display: grid; gap: .4rem; font-size: var(--fs-sm); }
.form input, .form select, .form textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: 600 16px/1.4 var(--font);
}
.form select option { color: var(--black); }
.form__submit { display: flex; justify-content: center; }

/* Classic 12-column layout (article bodies) */
.classic .row { display: flex; gap: 0 22px; }
.classic .col { flex: 0 0 calc(var(--span) / 12 * 100% - 22px * (12 - var(--span)) / 12); min-width: 0; }
.classic .col:only-child { flex-basis: 100%; }
.classic .blk { height: auto; padding-block: 17px; }
.classic .blk--figure + .blk--figure { padding-top: 0; }

/* Masonry (galleries, blog lists) ----------------------------------------- */

.masonry, .blog-list__grid {
  --mgap: 4.72vw;
  columns: var(--cols, 2);
  column-gap: var(--mgap);
}
.masonry.is-laid-out, .blog-list__grid.is-laid-out { columns: auto; display: flex; gap: var(--mgap); align-items: flex-start; }
.masonry__col { display: flex; flex: 1; flex-direction: column; gap: var(--mgap); min-width: 0; }
.masonry__item { margin: 0 0 var(--mgap); break-inside: avoid; }
.is-laid-out .masonry__item, .is-laid-out .bcard { margin: 0; }
.masonry__item img { width: 100%; height: auto; }
.masonry__item figcaption { margin-top: .75rem; font-size: var(--fs-sm); }
.section__content--gallery { padding: var(--gutter); }

/* Portfolio grid (Our Work) ----------------------------------------------- */

.section--portfolio { padding: calc(var(--gutter) * 1.1) var(--gutter); }
.portfolio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 45px 65px; }
.portfolio__item { text-decoration: none; }
.portfolio__img { aspect-ratio: 4 / 3; overflow: hidden; }
.portfolio__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.portfolio__item:hover .portfolio__img img { transform: scale(1.03); }
.portfolio__title { margin: 15px 0 0; font-size: var(--fs-h4); line-height: 1.2; }

/* Project / article prev-next ------------------------------------------- */

.item-pagination {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: var(--gutter);
}
.item-pagination__link { display: flex; align-items: center; gap: 1.5rem; text-decoration: none; }
.item-pagination__link--next { margin-left: auto; text-align: right; }
.item-pagination__link > span { display: flex; flex-direction: column; }
.item-pagination__label { font-size: var(--fs-sm); }
.item-pagination__title { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.02em; line-height: 1; text-transform: capitalize; }
.item-pagination svg { flex: 0 0 44px; width: 44px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Blog list (Iterate) ----------------------------------------------------- */

.section--blog-list { padding: calc(var(--gutter) * 1.1 + 15px) var(--gutter) calc(var(--gutter) * 1.1); }
.blog-list__header { margin-bottom: 4rem; text-align: center; }
.blog-list__header h1 { margin: 0; }
.blog-list__grid { --mgap: 150px; }
.blog-list__grid.is-laid-out { gap: 150px; }
.blog-list__grid .masonry__col { gap: 100px; }
.bcard { margin: 0 0 100px; text-align: center; break-inside: avoid; }
.bcard__img { display: block; aspect-ratio: 7 / 4; margin-bottom: 25px; overflow: hidden; }
.bcard__img img { width: 100%; height: 100%; object-fit: cover; }
.bcard__meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 .6rem; margin-bottom: 20px; }
.bcard__meta a { text-decoration: none; }
.bcard__meta > * + *::before { content: "·"; margin-right: .6rem; }
.bcard__title { margin: 0 0 5px; font-size: var(--fs-h3); line-height: 1.2; }
.bcard__title a { text-decoration: none; }
.bcard__more { font-size: var(--fs-sm); text-decoration: none; }
.bcard__more:hover, .bcard__title a:hover { text-decoration: underline; }
.list-pagination { display: flex; justify-content: space-between; margin-top: 2rem; }
.list-pagination a { text-decoration: none; }
.list-pagination a:hover { text-decoration: underline; }

/* Article (Iterate post) -------------------------------------------------- */

.section--article { padding: calc(var(--gutter) * 1.1 + 15px) var(--gutter) calc(var(--gutter) * 2); }
.article { width: min(100%, 47vw); margin: 0 auto; }
.article__title { margin: 0 0 1.5rem; line-height: 1.2; }
.article__meta { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin-bottom: 2.5rem; }
.article__meta a { text-decoration: none; }
.article__meta a:hover { text-decoration: underline; }
.article__date-author { display: flex; gap: .6rem; }
.article__date-author > * + *::before { content: "—"; margin-right: .6rem; }
.article__body .rte h2 { font-size: var(--fs-h2); }
.article__author { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid currentColor; }
.article__author a { display: inline-flex; align-items: center; gap: 1rem; text-decoration: none; }
.article__author img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }

/* Store ------------------------------------------------------------------- */

.section--products, .section--related { padding: calc(var(--gutter) * 1.1) var(--gutter); }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 3rem 2rem; }
.product-card { text-decoration: none; }
.product-card__img { aspect-ratio: 1; margin-bottom: 1rem; overflow: hidden; background: #111; }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover img { transform: scale(1.03); }
.product-card__meta { display: flex; justify-content: space-between; gap: 1rem; }
.related__title { margin: 0 0 2rem; font-size: var(--fs-h3); }

.section--product { padding: calc(var(--gutter) * 1.1 + 15px) var(--gutter) calc(var(--gutter) * 1.1); }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 4vw; }
.product__crumbs { grid-column: 1 / -1; font-size: var(--fs-sm); }
.product__crumbs a { text-decoration: none; }
.product__gallery { display: grid; gap: 1rem; align-content: start; }
.product__gallery img { width: 100%; height: auto; }
.product__title { margin: 0 0 1rem; font-size: var(--fs-h2); }
.product__price { margin: 0 0 1rem; font-size: var(--fs-lg); }
.product__buy { width: 100%; margin-top: 1.5rem; }

/* Footer ------------------------------------------------------------------ */

.footer__grid {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  column-gap: 11px;
  padding: 95px var(--gutter) 157px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer p, .footer li { margin: 0; font-size: var(--fs-lg); font-weight: 600; line-height: 1.5; }
.footer li + li { margin-top: 16px; }
.footer a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.footer a:hover { text-decoration-thickness: 2px; }
.footer a.plain { text-decoration: none; }
.footer__col--nav     { grid-column: 1 / span 4; }
.footer__col--legal   { grid-column: 5 / span 5; }
.footer__col--contact { grid-column: 15 / span 10; }
.footer__col--contact p + p { margin-top: 136px; }
.footer__social { display: flex; gap: 8px; margin-top: 46px; margin-left: 12px; }

/* Mobile ------------------------------------------------------------------ */

@media (max-width: 767px) {
  .portfolio { grid-template-columns: 1fr; gap: 40px; }
  .blog-list__grid { columns: 1; }
  .bcard { margin-bottom: 64px; }
  .article { width: 100%; }
  .classic .row { flex-direction: column; }
  .classic .col { flex-basis: auto; }
  .product { grid-template-columns: 1fr; }
  .item-pagination__title { font-size: var(--fs-h4); }
  .footer__grid { grid-template-columns: 1fr; row-gap: 40px; padding: 64px var(--gutter) 80px; }
  .footer__grid > * { grid-column: 1 / -1 !important; }
  .footer__col--contact p + p { margin-top: 24px; }
  .footer__social { margin-top: 28px; }
  .form__row--split { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .tmarquee__track, .marquee__track { animation: none; }
  .header { transition: none; }
}

/* 404 */
.notfound { padding-inline: var(--gutter); text-align: center; }
.notfound h1 { margin: 0 0 1.5rem; }
.notfound p { margin: 0 0 2rem; }
.notfound .btn { margin: .5rem; }
