/* Compact release page. Paper is a very light tint of the brand cream. */
:root {
  color-scheme: light;
  --paper: #faf9f6;
  --cream: #ede5d3;
  --navy: #3b4967;
  --red: #a24857;
  --muted: #666962;
  --rule: rgba(59, 73, 103, .18);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--paper); color: var(--navy); font: 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--navy); color: var(--paper); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .3em; }
a, button, input, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--red); outline-offset: 5px; }
button, input { font: inherit; border-radius: 0; }
button, summary { cursor: pointer; }
button:disabled { cursor: default; }
img, svg { display: block; max-width: 100%; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
.page-width { width: min(100% - var(--gutter) * 2, 72rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: 1rem; left: 1rem; z-index: 5; padding: .75rem 1rem; background: var(--navy); color: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.site-header { display: grid; grid-template-columns: 1fr 9rem 1fr; align-items: center; min-height: 158px; padding-block: .65rem; }
.site-header nav { display: flex; align-items: center; gap: 1.75rem; font-size: .875rem; }
.site-header nav a { padding-block: .6rem; text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.nav-right { justify-content: flex-end; }
.cart-link { position: relative; display: inline-flex; padding: .35rem; margin-right: -.35rem; }
.cart-count { position: absolute; top: -.1rem; right: -.35rem; min-width: 1.05rem; height: 1.05rem; padding: 0 .25rem; border-radius: .55rem; background: var(--red); color: var(--paper); font: 600 .625rem/1.05rem var(--sans); text-align: center; }
.cart-count[hidden] { display: none; }
/* Shopify's floating cart tab is replaced by the header cart icon. */
.shopify-buy-frame--toggle { display: none !important; }
.cart-link:hover { color: var(--red); }
/* The cart icon only shows once shop.js opens sales (launch time reached and not paused). */
.cart-link { display: none; }
.sales-open .cart-link { display: inline-flex; }
.brand-center { justify-self: center; }
.emblem-control { display: block; position: relative; padding: .2rem .8rem; color: var(--navy); }
.emblem-scene { display: block; perspective: 650px; width: 86px; height: 124px; }
.emblem-rotor { display: block; position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateY(0deg); }
.emblem-rotor.is-animated { animation: logo-turn 14s linear infinite; }
.emblem-control:hover .emblem-rotor, .emblem-control:focus-visible .emblem-rotor { animation-play-state: paused; }
.emblem-face { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.emblem-front { transform: translateZ(1px); }
.emblem-back { transform: rotateY(180deg) translateZ(1px); }
.lifestyle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.lifestyle img { width: 100%; height: auto; aspect-ratio: 4 / 5; max-height: 92vh; object-fit: cover; background: #f0efeb; }
.lifestyle .lifestyle-tote { object-position: 50% 30%; }
.lifestyle .lifestyle-harbor { object-position: 50% 25%; }
.release { width: calc(100% - var(--gutter) * 2); padding-block: 2.5rem 2.75rem; }
.release-title { margin-bottom: 1.75rem; font: 400 clamp(1.5rem, 2.4vw, 1.875rem)/1.2 var(--sans); letter-spacing: .02em; text-transform: uppercase; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.product-image-well { position: relative; background: #f0efeb; height: clamp(180px, 30vw, 380px); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-image-well img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.product-badge { position: absolute; top: .75rem; right: .75rem; padding: .45rem .7rem; background: #fff; font: .75rem/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.product-caption { padding-top: .9rem; }
.product-caption h2 { font: 400 1.125rem/1.4 var(--sans); }
.product-price { margin-top: .2rem; font: .875rem/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .08em; }
.product-link { display: block; text-decoration: none; }
.product-link:hover .product-caption h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; }
/* Product pages: photo gallery beside name and price. */
.product-page { padding-block: 1.25rem 3.5rem; }
.back-link { display: inline-block; margin-bottom: 1.25rem; padding-block: .3rem; font-size: .875rem; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.gallery-stage { position: relative; background: #f0efeb; }
.gallery.is-ready .gallery-stage { width: 100%; aspect-ratio: 4 / 5; overflow: hidden; }
@media (min-width: 701px) { .product-layout { grid-template-columns: minmax(0, max(24rem, calc((100vh - 20rem) * .8))) minmax(16rem, 28rem); } }
.gallery-slide { margin: 0; }
.gallery.is-ready .gallery-slide { position: absolute; inset: 0; }
.gallery-slide[hidden] { display: none; }
.gallery-slide img { width: 100%; height: auto; }
.gallery.is-ready .gallery-slide img { height: 100%; object-fit: contain; }
.gallery-slide--placeholder { display: flex; align-items: center; justify-content: center; min-height: 12rem; font-size: .875rem; color: var(--muted); }
.gallery-arrow { position: absolute; top: 50%; display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; transform: translateY(-50%); border: 0; border-radius: 50%; background: rgba(255, 255, 255, .85); color: var(--navy); }
.gallery-arrow[hidden] { display: none; }
.gallery-arrow:hover { background: #fff; color: var(--red); }
.gallery-arrow--prev { left: .75rem; }
.gallery-arrow--next { right: .75rem; }
.gallery-count { position: absolute; bottom: .75rem; left: 50%; transform: translateX(-50%); padding: .3rem .6rem; background: #fff; font: .75rem/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .08em; }
.gallery-count:empty { display: none; }
.gallery.is-ready .gallery-slide img { cursor: zoom-in; }
.gallery-expand { position: absolute; top: .75rem; right: .75rem; display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .85); color: var(--navy); }
.gallery-expand:hover { background: #fff; color: var(--red); }
.gallery-expand svg { width: 18px; height: 18px; }
/* Full-screen photo viewer on the hat pages. */
html.has-lightbox { overflow: hidden; }
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--navy); }
.lightbox::backdrop { background: var(--paper); }
.lightbox-figure { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; margin: 0; padding: 4.5rem 5.5rem; }
.lightbox-image { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--navy); }
.lightbox-close:hover { color: var(--red); }
.lightbox .gallery-arrow { background: #fff; }
.lightbox .gallery-arrow--prev { left: 1.25rem; }
.lightbox .gallery-arrow--next { right: 1.25rem; }
.lightbox .gallery-count { bottom: 1.25rem; }
.gallery-thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 5rem); justify-content: start; gap: .5rem; margin-top: .5rem; }
.gallery-thumbs:empty, .gallery-thumbs[hidden] { display: none; }
.gallery-thumb { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; padding: 0; overflow: hidden; border: 1px solid transparent; background: #f0efeb; color: var(--muted); font-size: .75rem; opacity: .7; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb[aria-current="true"] { border-color: var(--navy); opacity: 1; }
.product-info { position: sticky; top: 1.5rem; }
.product-kicker { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.product-name { margin-top: .4rem; font: 400 clamp(1.75rem, 3vw, 2.5rem)/1.15 var(--sans); letter-spacing: .01em; }
.product-info .product-price { margin-top: .6rem; font-size: 1rem; }
.product-colors { display: flex; align-items: center; gap: .6rem; margin-top: 1.25rem; }
.color-swatch { display: block; width: 1.5rem; height: 1.5rem; border: 1px solid var(--rule); outline-offset: 3px; }
.color-swatch--blue { background: #3f68a8; }
.color-swatch--white-red { background: linear-gradient(#f7f6f2 50%, #c0282d 50%); }
.color-swatch:hover { outline: 1px solid var(--muted); }
.color-swatch[aria-current="page"] { outline: 1.5px solid var(--navy); }
.color-name { margin-left: .4rem; font: .875rem/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .04em; }
.product-description { max-width: 28rem; margin-top: 1.25rem; line-height: 1.7; }
.product-availability { margin-top: 1.5rem; font-size: .875rem; color: var(--red); }
.product-buy { margin-top: .75rem; }
.product-buy .shopify-buy-frame, .product-buy iframe { width: 100% !important; max-width: 100% !important; }
.product-cta { display: block; width: 100%; padding: .9rem 1rem; border: 0; font-family: inherit; background: var(--navy); color: var(--paper); font-size: .875rem; letter-spacing: .06em; text-align: center; text-decoration: none; text-transform: uppercase; }
.product-cta:hover { background: var(--red); }
.product-cta:disabled { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
/* Early access page. */
.early-access .release-title { margin-top: .4rem; }
.early-intro { max-width: 34rem; margin: -.75rem 0 1.75rem; line-height: 1.7; }
.early-color { margin-top: .1rem; font-size: .8125rem; color: var(--muted); }
.early-access .product-buy { margin-top: 1rem; }
.newsletter { display: grid; grid-template-columns: 1fr 1.25fr; align-items: start; gap: 2.5rem; border-top: 1px solid var(--rule); padding-block: 1rem; }
.newsletter h2 { font: 400 1rem/1.6 var(--sans); padding-block: .55rem; }
.email-row { display: flex; gap: .75rem; border-bottom: 1px solid var(--rule); }
.email-row input { min-width: 0; flex: 1; border: 0; background: transparent; color: var(--navy); padding: .55rem 0; }
.email-row input::placeholder { color: var(--muted); opacity: 1; }
.email-row button { border: 0; background: transparent; color: var(--navy); padding: .55rem 0 .55rem .75rem; font-size: .875rem; flex-shrink: 0; }
.email-row button span { margin-left: .8rem; }
.email-row button:hover:not(:disabled) { color: var(--red); }
.email-row button:disabled { opacity: .55; }
.signup-consent { margin-top: .5rem; font-size: .75rem; color: var(--muted); }
/* Hidden spam trap for /api/subscribe: off-screen, so people never fill it in. */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.signup-consent a { color: inherit; }
.signup-status { margin-top: .4rem; font-size: .875rem; }
.signup-status:empty { margin: 0; }
/* About page: photo beside the brand story. */
.about-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.75rem, 5vw, 4.5rem); align-items: center; padding-block: 2.5rem 3.5rem; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; max-height: calc(100vh - 14rem); object-fit: cover; background: #f0efeb; }
.about-copy { max-width: 34rem; }
.about-title { margin-top: .5rem; font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 1.1; letter-spacing: -.03em; }
.about-lede { margin-top: .75rem; font: italic 1.125rem/1.5 var(--serif); color: var(--red); }
.about-copy p:not(.product-kicker):not(.about-lede) { margin-top: 1.25rem; line-height: 1.8; }
.about-copy .founders { font-family: var(--serif); }
.about-places { margin: 1.75rem 0 0; padding: .15rem 0 .15rem 1.1rem; border-left: 2px solid var(--red); list-style: none; }
.about-places li { font: italic 1.25rem/1.65 var(--serif); }
.about-shop { display: inline-block; margin-top: 2rem; padding-block: .3rem; font-size: .875rem; text-decoration: none; border-bottom: 1px solid currentColor; }
.about-shop:hover { color: var(--red); }
.about-shop span { margin-left: .5rem; }
.nav-left a[aria-current="page"] { text-decoration: underline; }
/* Policy pages: long-form text at a readable measure. */
.policy-page { padding-block: 2.5rem 3.5rem; }
.policy-page > * { max-width: 44rem; }
.policy-title { font: 400 clamp(1.75rem, 3vw, 2.5rem)/1.15 var(--sans); letter-spacing: .01em; }
.policy-updated { margin-top: .5rem; font-size: .8125rem; color: var(--muted); }
.policy-page h2 { margin-top: 2.25rem; font: 600 .8125rem/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.policy-page h1 + .policy-updated + p { margin-top: 1.75rem; }
.policy-page p, .policy-page ul, .policy-page ol { margin-top: .75rem; line-height: 1.75; }
.policy-page ul, .policy-page ol { padding-left: 1.25rem; }
.policy-page li + li { margin-top: .35rem; }
.policy-fill { padding: 0 .2em; background: rgba(162, 72, 87, .14); }
.policy-page a { text-decoration-thickness: 1px; }
.contact-page .contact-intro { margin-top: 1.25rem; font-size: 1.0625rem; }
.contact-page .contact-email { font: 400 clamp(1.25rem, 2.4vw, 1.625rem)/1.3 var(--serif); color: var(--navy); }
.contact-page .contact-email:hover { color: var(--red); }
.footer-links a[aria-current="page"] { color: var(--navy); }
.site-footer { border-top: 1px solid var(--rule); padding-block: 1.5rem 2.5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin: 0; padding: 0; list-style: none; font-size: .8125rem; }
.footer-links a { display: inline-block; padding-block: .3rem; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--navy); text-decoration: underline; }
@keyframes logo-turn { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
@media (max-width: 700px) {
  .site-header { grid-template-columns: 1fr 6rem 1fr; min-height: 130px; }
  .site-header nav { font-size: .875rem; }
  .site-header nav { flex-direction: column; gap: 0; }
  .site-header nav a { padding-block: .3rem; }
  .site-header .nav-left { align-items: flex-start; }
  .site-header .nav-right { align-items: flex-end; }
  .emblem-scene { width: 67px; height: 97px; }
  .lifestyle { gap: 2px; }
  .release { padding-block: 1.75rem 1.75rem; }
  .release-title { margin-bottom: 1.1rem; font-size: 1.375rem; }
  .product-grid { gap: .85rem; }
  .product-badge { top: .5rem; right: .5rem; padding: .3rem .45rem; font-size: .625rem; letter-spacing: .05em; }
  .product-caption { padding-top: .55rem; }
  .product-caption h2 { font-size: 1rem; }
  .product-price { font-size: .8125rem; }
  .product-page { padding-block: .75rem 2.5rem; }
  .back-link { margin-bottom: .75rem; }
  .product-layout { grid-template-columns: 1fr; gap: 1.25rem; }
  .gallery-arrow { width: 2.25rem; height: 2.25rem; }
  .gallery-thumbs { grid-auto-columns: minmax(0, 1fr); gap: .35rem; }
  .lightbox-figure { padding: 4rem .75rem; }
  .lightbox .gallery-arrow--prev { left: .5rem; }
  .lightbox .gallery-arrow--next { right: .5rem; }
  .product-info { position: static; }
  .product-name { font-size: 1.625rem; }
  .newsletter { grid-template-columns: 1fr; gap: .3rem; padding-block: .9rem; }
  .newsletter h2 { font-size: .9375rem; padding: 0; }
  .email-row { gap: .65rem; }
  .email-row button { padding-inline: .5rem 0; }
  .email-row button span { margin-left: .6rem; }
  .site-footer { padding-block: 1.1rem 2rem; }
  .footer-links { gap: .25rem 1.25rem; }
  .policy-page { padding-block: 1.5rem 2.5rem; }
  .about-page { grid-template-columns: 1fr; padding-block: 1.25rem 2.5rem; }
  .about-photo img { max-height: none; }
  .policy-title { font-size: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .emblem-rotor.is-animated { animation: none; }
  *, *::before, *::after { transition: none !important; }
}
