/* Free stand-ins for the Adobe fonts the original site used (Europa and Brandon Grotesque), which still take precedence when TYPEKIT_ID is set. */
@font-face { font-family: Outfit; font-weight: 100 900; font-display: swap; src: url(/fonts/outfit.woff2) format("woff2"); }
@font-face { font-family: Urbanist; font-weight: 900; font-display: swap; src: url(/fonts/urbanist.woff2) format("woff2"); }

:root {
  --canvas-pad: 60px;
  --gutter: 17px;
  --page-width: 960px;
  --thumb-height: 400px;
  --thumb-gap: 18px;
  --sidebar-width: 200px;
  --sidebar-gap: 60px;
  --text: #666;
  --muted: #9c9c9c;
  --faint: #aaa;
  --heading: #111;
  --rule: #e6e6e6;
  --field-bg: #fafafa;
  --field-border: #a9a9a9;
  --font-body: europa, Outfit, "Helvetica Neue", Arial, sans-serif;
  /* Outfit is darker than Europa at the same weight, so it is set two steps lighter. */
  --weight-text: 100;
  --weight-nav: 200;
  --weight-bold: 500;
  --font-accent: brandon-grotesque, Urbanist, "Helvetica Neue", Arial, sans-serif;
}

/* Set by the layout when the Adobe fonts are configured: Europa's own weights. */
.adobe-fonts { --weight-text: 300; --weight-nav: 400; --weight-bold: 700; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  /* em, not unitless: descendants inherit the computed 25.2px whatever their own font size. */
  font: var(--weight-text) 14px/1.8em var(--font-body);
  letter-spacing: .04em;
}
a { color: #000; text-decoration: none; }
a:hover { color: #444; }
h1, h2, h3 {
  margin: 1em 0 .5em;
  color: var(--heading);
  font-size: 26px;
  font-weight: var(--weight-bold);
  line-height: 1.2em;
  letter-spacing: .01em;
}
h1 a, h2 a, h3 a { color: var(--heading); }
h2 { font-size: 20.8px; }
h3 { font-size: 14px; }
/* Set on p itself, not inherited, so paragraphs keep these ratios inside differently sized parents. */
p { margin: 0 0 1em; line-height: 1.8em; letter-spacing: .04em; }
b, strong { font-weight: var(--weight-bold); }
ul, ol { margin: 1em 0; padding: 0 0 0 40px; }
img { border: 0; vertical-align: middle; }
figure { margin: 0; }
hr { border: 0; }

/* Shell */
.canvas { padding: var(--canvas-pad); }
.header { position: relative; z-index: 999; display: flow-root; padding-bottom: 60px; }
.logo { float: left; height: 40px; margin: 0 30px 0 0; line-height: 0; }
.logo img { width: auto; max-height: 100%; }
.page { position: relative; max-width: var(--page-width); margin-top: 45px; }
.intro { margin-bottom: 30px; }
.footer { margin-top: 105px; }
.social { margin-top: var(--gutter); }
.social a { display: inline-block; width: 16px; height: 16px; margin: 0 4.72px; }
.social a:first-child { margin-left: 0; }
.social a:last-child { margin-right: 0; }
.social svg { display: block; width: 100%; height: 100%; }

/* Navigation */
.nav { float: left; }
/* Spacing is set on the links so it scales with each link's own font size. */
.nav a, .mobile-nav :is(a, summary) { font-weight: var(--weight-nav); letter-spacing: .06em; }
.nav ul, .mobile-nav ul { margin: 0; padding: 0; list-style: none; }
.nav > ul > li { position: relative; float: left; margin-right: 30px; }
.nav a { display: inline-block; padding: 6px 0; color: var(--muted); line-height: 28px; }
.nav a:hover, .nav .active > a { color: #000; }
.nav .subnav { position: absolute; top: 100%; left: -15px; z-index: 100; display: none; margin-top: -6px; padding: 7.5px 0; background: #fff; }
.nav .folder:hover .subnav, .nav .folder:focus-within .subnav { display: block; }
.subnav a { display: block; padding: 3.75px 15px; line-height: normal; white-space: nowrap; }
.mobile-nav, .menu-link, .close { display: none; }

/* Gallery */
.gallery-page .page { max-width: none; margin-top: 0; }
.gallery-page .footer { margin-top: 60px; }
.thumbs { position: relative; display: flow-root; overflow: hidden; font-size: 0; }
.thumb { position: relative; display: block; float: left; height: var(--thumb-height); margin: 0 var(--thumb-gap) var(--thumb-gap) 0; }
.thumb img { width: auto; height: 100%; }
/* Set by site.js once thumbnails are positioned into justified rows. */
.thumbs.justified .thumb { position: absolute; float: none; margin: 0; }
.thumbs.justified img { width: 100%; object-fit: cover; }
.thumb:hover { background: #000; }
.thumb:hover img { opacity: .6; }
.thumb-title {
  position: absolute;
  top: 50%;
  display: none;
  width: 80%;
  padding: 0 10%;
  transform: translateY(-50%);
  color: #fff;
  font: 900 14px/1.2 var(--font-accent);
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
}
.thumb:hover .thumb-title { display: block; }
.viewer { display: none; }
.stage { position: relative; height: max(600px, 100vh - 260px); overflow: hidden; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .3s ease-in; }
.slide.current { opacity: 1; }
.controls { margin-top: 20px; color: var(--muted); text-align: center; user-select: none; }

/* Content blocks */
.layout > .row { margin: 0 calc(-1 * var(--gutter)); }
.row { display: flex; }
.col { flex: none; width: calc(var(--span) / 12 * 100%); min-width: 0; }
.block { position: relative; padding: var(--gutter); }
.col > .block:first-child { padding-top: 0; }
.col > .block:first-child:last-child { padding-bottom: 0; }
.spacer { height: calc(var(--size) * 34px); }
.spacer.line { height: 1.8em; }
.text > :first-child { margin-top: 0; }
.text > :last-child { margin-bottom: 0; }
.text :is(p, h1, h2, h3), figcaption p, .card p { white-space: pre-wrap; overflow-wrap: break-word; }
.text p > a, .text p em > a, .footer p > a { text-decoration: underline; }
:is(.text, .card, figcaption) p:empty::before { display: inline-block; content: ""; }
.image > * { max-width: var(--max-width, none); margin-inline: auto; }
.frame { position: relative; overflow: hidden; }
.frame img, .frame iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
figcaption { padding-top: 18px; }
figcaption p { font-size: 12px; line-height: 1.68em; }
figcaption p:last-child:empty { display: none; }
.embed > div { min-height: 300px; }

/* Card: image beside text that scales with the card's width */
.card { display: flex; justify-content: space-between; }
.card.reverse { flex-direction: row-reverse; }
.card-image { width: 49%; }
.card-image img { display: block; width: 100%; height: auto; }
.card-text { display: flex; align-items: center; width: 49%; }
.card-body { box-sizing: border-box; width: 100%; padding: 10%; container-type: inline-size; }
.card-title { color: #000; font-size: max(12px, 10cqw); font-weight: var(--weight-bold); line-height: 1.1; letter-spacing: 0; }
.card-title p { display: inline; margin: 0; line-height: inherit; letter-spacing: inherit; }
.card-subtitle { margin-top: 6cqw; color: #737373; font-size: max(12px, 3.8cqw); line-height: 1.7; letter-spacing: .01em; }
.card-subtitle p { line-height: inherit; letter-spacing: inherit; }
.card-subtitle p:last-child { margin-bottom: 0; }

/* Forms */
.form { line-height: normal; }
.form fieldset { margin-inline: 0; padding: 0; border: 0; }
.form legend { padding: 0; }
.form .field { margin-block: 0 18px; }
.field .title { display: flex; align-items: baseline; column-gap: 1ex; padding-bottom: 4px; }
.field .required, .field .description, .pair label { font-size: 12px; }
.field .required, .field .description { opacity: .7; }
.field .description { display: block; margin: 0 0 4px; padding: .5em 0; line-height: 1.8em; }
.pair { display: flex; column-gap: 10px; padding-top: 2px; }
.pair label { flex: 1; }
.pair .required { margin-left: 1ex; }
.form :is(input:not([type=checkbox]), textarea) {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--field-border);
  border-radius: 0;
  background: var(--field-bg);
  color: #000;
  font: 400 14px sans-serif;
  letter-spacing: normal;
}
.form .pair input { margin-top: 1px; }
.form textarea { min-height: 100px; resize: vertical; }
.option { display: flex; align-items: center; column-gap: 6px; height: 16.8px; margin: 6px 0 4px; font-size: 13px; }
.option input { width: 16px; height: 16px; margin: 0; border: 1px solid var(--field-border); border-radius: 0; background: var(--field-bg); appearance: none; }
.option input:checked { background: #000 linear-gradient(#000, #000); box-shadow: inset 0 0 0 3px var(--field-bg); }
.honeypot { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.form-error { color: #db3642; }
.button {
  padding: 1em 2.5em;
  border: 0;
  border-radius: 0;
  background: #272727;
  color: #fff;
  font: 900 14px var(--font-accent);
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity .1s linear;
}
.button:hover { opacity: .8; }

/* Blog */
.blog-page .page { display: grid; grid-template-columns: minmax(0, 1fr) var(--sidebar-width); grid-template-rows: auto 1fr; column-gap: var(--sidebar-gap); }
.blog-page .sidebar { grid-area: 1 / 2 / 3 / 3; }
.post-title { margin-top: 0; }
.meta, .meta a { color: var(--faint); }
.promoted { margin-bottom: 34px; }
.post-body { margin: 1em 0; }
/* The bottom padding keeps the line the original gave to its share and like buttons. */
.post-footer { display: flow-root; margin-top: 2em; padding: 1em 0 1.8em; }
.terms { float: left; margin-right: 1em; }
.post-divider { height: 1px; margin: 50px 0; }
.pagination { display: flow-root; margin: 34px 0 68px; padding: 17px 0; border: solid var(--rule); border-width: 1px 0; }
.pagination a { display: block; float: left; width: 50%; }
.pagination .older { float: right; text-align: right; }
.sidebar h2 { margin: 0; }
.search { padding: 34px 0 17px; }
.search input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 20px;
  margin: 0;
  padding: 12px 12px 12px 45px;
  border: 1px solid var(--faint);
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.4' d='M12.6 12.6 18 18M8.2 2.4a5.8 5.8 0 1 1 0 11.6 5.8 5.8 0 0 1 0-11.6Z'/%3E%3C/svg%3E") no-repeat 15px 50% / 20px;
  color: inherit;
  font: 14px sans-serif;
  opacity: .7;
  -webkit-appearance: textfield;
  appearance: textfield;
}
.search input::placeholder { color: #666; }
.archive { margin: 17px 0 0; background: rgb(110 110 110 / .05); line-height: 1.6; }
.archive summary { display: flex; justify-content: space-between; padding: 12px 18px; list-style: none; cursor: pointer; user-select: none; }
.archive summary::-webkit-details-marker { display: none; }
.archive summary::after { width: 5px; height: 5px; margin: 6px 3px 0 0; transform: rotate(45deg); border: solid currentColor; border-width: 0 1.5px 1.5px 0; content: ""; }
.archive ul { margin: 0; padding: 0 18px 12px; list-style: none; }
.sidebar .featured-heading { margin-top: 102px; }
.featured { margin: 0; padding: 34px 0 0; list-style: none; }
.featured li { width: 75%; margin-bottom: 17px; padding-bottom: 17px; }
.featured-title { display: block; margin-bottom: 2px; font-size: 20px; line-height: 1.2; }
.featured time { display: block; font-size: 13px; line-height: 1.4; opacity: .7; }

@media (min-width: 801px) {
  .full-view :is(.nav, .thumbs, .footer, .intro) { display: none; }
  .full-view .viewer { display: block; }
  .full-view .close { position: absolute; top: 0; right: 0; display: block; margin: -20px; padding: 20px; color: var(--text); font-size: 20px; }
}

@media (max-width: 800px) {
  .mobile-nav { display: grid; grid-template-rows: 0fr; margin-bottom: 15px; background: #f0f0f0; text-align: center; transition: grid-template-rows .5s ease-in-out; }
  .menu-toggle:checked + .mobile-nav { grid-template-rows: 1fr; }
  .mobile-nav > ul { min-height: 0; overflow: hidden; }
  .mobile-nav > ul::before, .mobile-nav > ul::after { display: block; height: 14px; content: ""; }
  .mobile-nav :is(a, summary) { display: block; color: rgb(156 156 156 / .7); font-size: 16px; line-height: 2.5; }
  .mobile-nav summary { margin-left: .4em; list-style: none; cursor: pointer; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary::after { content: " +"; }
  .mobile-nav [open] > summary::after { content: " –"; }
  .mobile-nav details ul { background: #fdfdfd; }
  .mobile-nav .active > a { color: var(--muted); }
  .menu-link { display: block; padding-bottom: 15px; color: var(--muted); font-size: 16px; font-weight: var(--weight-nav); letter-spacing: .84px; text-align: center; cursor: pointer; }
  .canvas { padding: 20px; }
  .header { position: static; }
  .logo { float: none; margin: 0 0 30px; text-align: center; }
  .nav { display: none; }
  .gallery-page .footer { margin-top: 20px; }
  .thumb, .thumbs.justified .thumb { position: static; float: none; width: auto !important; height: auto !important; margin: 0 4px 4px 0; }
  .thumb img, .thumbs.justified img { display: block; width: 100%; height: auto; }
  .row { display: block; }
  .col { width: auto; }
  .layout .col > .block:first-child { padding-top: var(--gutter); }
  .layout .col > .block:is(:last-child, :first-child:last-child) { padding-bottom: var(--gutter); }
  .spacer { display: none; }
  .card { display: block; }
  .card-image, .card-text { width: auto; }
  .card-text { margin-top: 2%; }
  .blog-page .page { display: block; }
  .blog-page .sidebar { margin-top: 117px; padding-bottom: var(--gutter); }
  .sidebar .featured-heading { margin-top: 34px; }
}
