:root {
  --ink: #282828;
  --paper: #FFFFFF;
  --beige-50: #F8F4F0;
  --beige-100: #F1E9E2;
  --beige-200: #E5D7CC;
  --beige-400: #CDB7A6;
  --muted: rgb(40 40 40 / 0.7);
  --display: 'freight-display-pro', 'Freight Display Pro', Georgia, serif;
  --text: 'freight-text-pro', 'Freight Text Pro', Georgia, serif;
  --sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 80px);
  --section: clamp(112px, 11vw, 176px);
  --wide: 1280px;
  --measure: 32em;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 20px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
em { font-style: italic; }
cite { font-style: normal; }

:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 30;
  padding: 12px 18px; background: var(--ink); color: var(--paper); font-size: 15px;
}
.skip:focus { top: 16px; }

/* Magazine style: menu, buttons, facts, names */

.header-menu, .menu-sheet-links, .menu-sheet-foot, .button, .fact, .link, .footer-links, .field-label, .cart-head th, .remove {
  font: 600 12.5px/1.4 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Header */

.header { position: sticky; top: 0; z-index: 20; background: var(--paper); }

.header-bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 80px; padding: 0 clamp(20px, 3vw, 44px);
}
.header-logo img, img.header-logo { width: 272px; height: auto; }
.header-logo { justify-self: center; }
.header-actions { justify-self: end; display: flex; gap: 16px; }

.header-menu { display: flex; justify-content: center; gap: 56px; padding: 0 0 22px; }
.header-menu a { padding: 6px 0; background: linear-gradient(currentColor, currentColor) 50% 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease); }
.header-menu a:hover, .header-menu a[aria-current="page"] { background-size: 100% 1px; }

.icon { display: grid; place-items: center; width: 36px; height: 36px; margin: 0 -8px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.icon svg, .menu-sheet-foot svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round;
}
.header-menu-button { display: none; }

/* Menu sheet (phone) */

.menu-sheet {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0 0 40px;
  border: 0; background: var(--paper); color: var(--ink);
  flex-direction: column;
}
.menu-sheet[open] { display: flex; }
.menu-sheet::backdrop { background: var(--paper); }
.menu-sheet .header-bar { padding: 0 20px; }
.menu-sheet-links { display: flex; flex-direction: column; align-items: center; gap: 32px; margin: auto 0; font-size: 14px; }
.menu-sheet-links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.6em; }
.menu-sheet-foot { display: flex; justify-content: center; gap: 40px; }
.menu-sheet-foot a { display: flex; align-items: center; gap: 10px; }

/* Type */

.display {
  font: 500 clamp(46px, 5.6vw, 84px)/1.02 var(--display);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.display span, .title span { display: block; }

.title {
  font: 500 clamp(38px, 4vw, 60px)/1.06 var(--display);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.standfirst { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.5; text-wrap: balance; }
.body { max-width: var(--measure); text-wrap: pretty; }

.link {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.6em;
  text-decoration-color: var(--beige-400);
  transition: text-decoration-color 0.3s;
}
.link:hover { text-decoration-color: currentColor; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 40px; border: 0;
  background: var(--ink); color: var(--paper); cursor: pointer;
  transition: background-color 0.3s;
}
.button:hover { background: #000; }

/* Closing */

.closing {
  display: flex; flex-direction: column; align-items: center;
  padding: var(--section) var(--gutter);
  background: var(--beige-50); text-align: center;
}
.closing .button { margin-top: 56px; }
.closing .link { margin-top: 28px; }

/* Footer */

.footer {
  display: flex; flex-direction: column; align-items: center; gap: 32px;
  padding: 88px var(--gutter) 40px;
  text-align: center;
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 48px; }
.footer-links a:hover, .footer-email:hover { text-decoration: underline; text-decoration-color: var(--beige-400); text-underline-offset: 0.4em; text-decoration-thickness: 1px; }
.footer-email { font-size: 20px; }
.footer-base {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  width: 100%; margin-top: 56px; padding-top: 28px;
  border-top: 1px solid var(--beige-100);
  font-size: 15px; line-height: 1;
}
.footer-base img { width: 141px; height: auto; }

/* Policy pages: Shopify renders the title and body; the theme styles them */

.shopify-policy__container {
  max-width: calc(34em + 2 * var(--gutter)); margin: 0 auto;
  padding: clamp(72px, 8vw, 128px) var(--gutter) var(--section);
}
.shopify-policy__title { text-align: center; }
.shopify-policy__title h1 { font: 500 clamp(44px, 5vw, 72px)/1.04 var(--display); letter-spacing: -0.012em; }
.shopify-policy__body { margin-top: clamp(56px, 6vw, 88px); padding-top: clamp(40px, 4vw, 56px); border-top: 1px solid var(--beige-400); }

.rte { line-height: 1.65; text-wrap: pretty; }
.rte > * + * { margin-top: 1em; }
.rte h2 {
  margin-top: 2.4em;
  font: 500 clamp(26px, 2.2vw, 32px)/1.15 var(--display); letter-spacing: -0.005em;
}
.rte h2 + * { margin-top: 0.6em; }
.rte > :first-child { margin-top: 0; }
.rte ul { padding-left: 1.2em; list-style: disc; }
.rte li + li { margin-top: 0.4em; }
.rte li::marker { color: var(--beige-400); }
.rte a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; text-decoration-color: var(--beige-400); }
.rte a:hover { text-decoration-color: currentColor; }
.rte .placeholder { color: var(--muted); font-style: italic; }

/* Conversation: the policy pages' closing, a photo filling its column */

.conversation { display: grid; grid-template-columns: 1fr 1fr; background: var(--beige-100); }
.conversation-photo { aspect-ratio: 5 / 4; }
.conversation-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.conversation-text {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 28px;
  padding: 80px clamp(40px, 7vw, 128px);
}
.conversation-text .title { max-width: 11em; }
.conversation-text .button { margin-top: 12px; }

/* Cart: Horizon's arrangement, items left and the summary column extended to the edge */

.cart { display: grid; grid-template-columns: minmax(0, 1fr) min(36%, 520px); }
.cart-main { padding: clamp(56px, 6vw, 96px) clamp(40px, 6vw, 96px) var(--section) max(var(--gutter), (100vw - var(--wide)) / 2); }
.cart-title { display: flex; align-items: flex-start; gap: 10px; font: 500 clamp(44px, 4.4vw, 64px)/1 var(--display); letter-spacing: -0.012em; }
.cart-count { font: 600 13px/1 var(--sans); letter-spacing: 0.08em; margin-top: 0.4em; }

.cart-items { width: 100%; margin-top: clamp(40px, 4vw, 64px); border-collapse: collapse; }
.cart-head th { padding: 0 0 16px; color: var(--muted); text-align: left; border-bottom: 1px solid var(--beige-400); }
.cart-head th:last-child, .cart-line-total { text-align: right; }
.cart-line td { padding: 32px 0; vertical-align: top; border-bottom: 1px solid var(--beige-400); }
.cart-line-media { width: 160px; padding-right: 32px !important; }
.cart-line-media img { width: 160px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 32% 50%; }
.cart-line-name { font: 500 clamp(26px, 2.2vw, 32px)/1.1 var(--display); letter-spacing: -0.005em; }
.cart-line-name a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease); }
.cart-line-name a:hover { background-size: 100% 1px; }
.cart-line-price { margin-top: 10px; font-size: 18px; }
.cart-line-details { margin: 16px 0 0; }
.cart-line-details div { display: flex; gap: 8px; }
.cart-line-details dt, .cart-line-details dd { margin: 0; font: 600 12.5px/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
.cart-line-details dt { color: var(--muted); }
.cart-line-qty { width: 176px; }
.cart-line-total { width: 120px; font-size: 18px; }

.quantity { display: inline-grid; grid-template-columns: 40px 40px 40px; height: 44px; border: 1px solid var(--beige-400); }
.quantity button { display: grid; place-items: center; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.quantity button:disabled { color: var(--beige-400); cursor: default; }
.quantity svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; }
.quantity input { width: 40px; padding: 0; border: 0; background: none; color: inherit; font: 400 18px/1 var(--text); text-align: center; -moz-appearance: textfield; }
.quantity input::-webkit-inner-spin-button, .quantity input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.remove { display: block; margin-top: 16px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.6em; text-decoration-color: var(--beige-400); }
.remove:hover { color: var(--ink); }

.cart-more { display: inline-block; margin-top: 40px; }

.cart-summary {
  display: flex; flex-direction: column;
  padding: clamp(56px, 6vw, 96px) max(var(--gutter), (100vw - var(--wide)) / 2) var(--section) clamp(40px, 4vw, 72px);
  background: var(--beige-50);
}
.cart-summary-inner { position: sticky; top: 160px; display: flex; flex-direction: column; max-width: 400px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--beige-400); }
.cart-total dt { font: 500 clamp(26px, 2.2vw, 32px)/1.1 var(--display); }
.cart-total dd { margin: 0; font: 500 clamp(26px, 2.2vw, 32px)/1.1 var(--display); }
.cart-tax { margin-top: 16px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.cart-next { margin-top: 36px; font-size: 18px; line-height: 1.55; text-wrap: pretty; }
.cart-summary .button { margin-top: 32px; width: 100%; }
.cart-help { margin-top: 24px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.cart-help a, .sign-in-note a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; text-decoration-color: var(--beige-400); transition: text-decoration-color 0.3s; }
.cart-help a:hover, .sign-in-note a:hover { text-decoration-color: currentColor; }

/* Search */

.search-head { padding: clamp(64px, 7vw, 112px) var(--gutter) 0; text-align: center; }
.search-form { display: flex; align-items: center; gap: 16px; width: min(760px, 100%); margin: 0 auto; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.search-form input {
  flex: 1; min-width: 0; padding: 0; border: 0; background: none; color: inherit;
  font: 500 clamp(40px, 4.6vw, 64px)/1.15 var(--display); letter-spacing: -0.012em;
}
.search-form input:focus { outline: none; }
.search-form input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-form:focus-within { border-bottom-width: 2px; padding-bottom: 13px; }
.search-form .icon { margin: 0; width: 44px; height: 44px; }
.search-form .icon svg { width: 26px; height: 26px; stroke-width: 1.1; }
.search-count { margin-top: 28px; color: var(--muted); }

.results { width: min(1120px, 100%); margin: clamp(64px, 6vw, 96px) auto 0; padding: 0 var(--gutter) var(--section); }
.result {
  display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: clamp(32px, 4vw, 64px); align-items: center;
  padding: 40px 0; border-top: 1px solid var(--beige-400);
}
.result:last-child { border-bottom: 1px solid var(--beige-400); }
.result-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.result-photo-client img { object-position: 80% 40%; }
.result-text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.result-name { font: 500 clamp(30px, 2.8vw, 40px)/1.1 var(--display); letter-spacing: -0.008em; }
.result-name a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease); }
.result:hover .result-name a { background-size: 100% 1px; }
.result-excerpt { max-width: 30em; font-size: 18px; line-height: 1.55; text-wrap: pretty; }
.result-lead { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); padding-block: 48px; }
.result-lead .result-photo img { aspect-ratio: 3 / 2; object-position: 50% 30%; }
.result-lead .result-name { font-size: clamp(40px, 4vw, 56px); }
.result-lead .button { margin-top: 8px; }

/* Not found */

.missing { display: grid; grid-template-columns: 1fr 1fr; background: var(--beige-100); }
.missing-photo { position: relative; min-height: clamp(560px, 50vw, 760px); }
.missing-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 56% 50%; }
.missing-text {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 96px clamp(40px, 7vw, 128px);
}
.missing .display { max-width: 9em; }
.missing .body { margin-top: 32px; max-width: 22em; }
.missing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 36px; margin-top: 44px; }

/* Account: the customer accounts sign-in */

.sign-in { display: grid; place-items: center; padding: clamp(96px, 10vw, 160px) var(--gutter); background: var(--beige-50); }
.sign-in-panel { display: flex; flex-direction: column; width: min(440px, 100%); text-align: center; }
.sign-in .standfirst { margin-top: 16px; font-size: 19px; }
.sign-in-form { display: flex; flex-direction: column; margin-top: 48px; text-align: left; }
.field-label { margin-bottom: 12px; }
.field {
  width: 100%; height: 56px; padding: 0 18px;
  border: 1px solid var(--beige-400); border-radius: 0; background: var(--paper); color: inherit;
  font: 400 19px/1 var(--text);
}
.field:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.sign-in-form .button { margin-top: 16px; width: 100%; }
.sign-in-note { margin-top: 36px; color: var(--muted); font-size: 16px; line-height: 1.5; text-wrap: balance; }
.sign-in-note + .sign-in-note { margin-top: 12px; }

/* Tablet and phone */

@media (max-width: 1100px) {
  .header-menu { gap: 36px; }

  .cart { grid-template-columns: 1fr; }
  .cart-main { padding: 56px var(--gutter) 64px; }
  .cart-summary { padding: 56px var(--gutter) 88px; }
  .cart-summary-inner { position: static; max-width: none; }
}

@media (max-width: 900px) {
  .header-menu, .icon-desktop { display: none; }
  .header-menu-button { display: grid; justify-self: start; }
  .header-bar { height: 64px; padding: 0 20px; }
  .header-logo img, img.header-logo { width: 198px; }
  .header { border-bottom: 1px solid var(--beige-100); }

  .conversation, .missing { grid-template-columns: 1fr; }
  .conversation-text { padding: 64px var(--gutter) 88px; gap: 24px; }
  .missing { min-height: 0; }
  .missing-photo { min-height: 0; aspect-ratio: 4 / 5; }
  .missing-text { padding: 64px var(--gutter) var(--section); }

  .result-lead { grid-template-columns: 240px minmax(0, 1fr); padding-block: 40px; }
  .result-lead .result-photo img { aspect-ratio: 4 / 5; }
  .result-lead .result-name { font-size: clamp(30px, 2.8vw, 40px); }
}

@media (max-width: 640px) {
  :root { --section: 96px; }
  body { font-size: 18px; }
  .display { font-size: 44px; }
  .title { font-size: 36px; }
  .button { align-self: stretch; }

  .shopify-policy__container { padding-top: 56px; }
  .shopify-policy__title h1 { font-size: 44px; }
  .shopify-policy__body { margin-top: 40px; padding-top: 32px; }
  .rte h2 { margin-top: 2em; font-size: 26px; }

  .conversation-photo { aspect-ratio: 4 / 3; }

  .cart-title { font-size: 44px; }
  .cart-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cart-items, .cart-items tbody { display: block; margin-top: 32px; }
  .cart-items { border-top: 1px solid var(--beige-400); }
  .cart-line { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--beige-400); }
  .cart-line td { display: block; padding: 0; border: 0; width: auto; }
  .cart-line-media { grid-row: 1 / span 3; padding-right: 0 !important; }
  .cart-line-media img { width: 112px; }
  .cart-line-name { font-size: 26px; }
  .cart-line-price { margin-top: 6px; font-size: 17px; }
  .cart-line-qty { grid-column: 2; margin-top: 20px; }
  .cart-line-total { display: none !important; }
  .cart-total dt, .cart-total dd { font-size: 26px; }

  .search-head { padding-top: 48px; }
  .search-form input { font-size: 40px; }
  .search-count { margin-top: 20px; font-size: 17px; }
  .results { margin-top: 48px; }
  .result, .result-lead { grid-template-columns: 1fr; row-gap: 24px; padding: 32px 0 40px; }
  .result-photo img, .result-lead .result-photo img { aspect-ratio: 3 / 2; }
  .result-name, .result-lead .result-name { font-size: 30px; }
  .result-excerpt { font-size: 17px; }
  .result-lead .button { align-self: stretch; }

  .missing-photo { aspect-ratio: 4 / 5; }
  .missing-photo img { object-position: 78% 50%; }
  .missing-text { padding-bottom: 72px; }
  .missing-actions { align-self: stretch; flex-direction: column; flex-wrap: nowrap; align-items: stretch; text-align: center; gap: 28px; }
  .missing-actions .link { align-self: center; }

  .sign-in { min-height: 0; padding-block: 64px 88px; }
  .sign-in-form { margin-top: 40px; }

  .footer { padding-top: 80px; }
  .footer-links { flex-direction: column; gap: 18px; }
  .footer-base { flex-direction: column; gap: 16px; margin-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .header-menu a, .button, .link, .result-name a, .cart-line-name a, .cart-help a, .sign-in-note a { transition: none; }
}
