:root {
  --paper: #f5f0e7;
  --cream: #fffdf8;
  --ink: #171713;
  --muted: #756e63;
  --line: #cec5b7;
  --hot: #ee5b3a;
  --hero-point: #d7dfd1;
  --cut: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { overflow-x: hidden; }
body { min-width: 320px; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: "Yossi", Arial, sans-serif; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--hot); outline-offset: 4px; }
.shell { width: min(1240px, calc(100% - 56px)); }

/* The shared header works like a compact printed masthead. */
.site-header { min-height: 92px; border-bottom: 3px solid var(--ink); }
.point-wordmark { font-size: clamp(44px, 4.1vw, 66px); line-height: .68; letter-spacing: -.105em; }
.point-wordmark .holam { width: .27em; height: .27em; top: -.27em; border-width: .052em; }
.nav { gap: clamp(16px, 2.5vw, 34px); font-size: 16px; font-weight: 800; }
.nav a { position: relative; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--hot); }
.cart-link {
  min-height: 44px;
  padding: 8px 15px;
  gap: 8px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--cream);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
}
.cart-link::before { content: ""; width: 13px; height: 13px; border: 4px solid var(--hot); border-radius: 50%; }
.cart-link span, .cart-link span[hidden] { display: grid !important; min-width: auto; height: auto; padding: 0; color: var(--ink); background: transparent; font-size: 14px; font-weight: 800; }

.eyebrow { margin-bottom: 17px; color: var(--hot); font-size: 15px; font-weight: 800; letter-spacing: .22em; }
.page-hero {
  min-height: 430px;
  grid-template-columns: minmax(0, 1.08fr) minmax(240px, .62fr);
  gap: clamp(42px, 8vw, 130px);
  padding: 52px 0 58px;
  border-bottom: 3px solid var(--ink);
}
.page-hero h1 { max-width: 820px; font-size: clamp(76px, 10.7vw, 156px); line-height: .77; letter-spacing: -.1em; }
.page-hero p { max-width: 360px; margin-bottom: 16px; color: var(--ink); font-size: clamp(18px, 2vw, 24px); font-weight: 500; line-height: 1.33; }
.page-hero h1 span { color: var(--hot); }
.paper-divider { position: relative; height: 36px; }
.paper-divider::after {
  content: "";
  position: absolute;
  right: 50%;
  top: -3px;
  width: 74px;
  height: 12px;
  background: var(--ink);
  clip-path: polygon(0 0, 28% 0, 50% 100%, 72% 0, 100% 0, 100% 100%, 0 100%);
  transform: translateX(50%);
}

.cut-corner { clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)); }
.tester { padding: 38px 0 96px; }
.tester-layout { grid-template-columns: 332px minmax(0, 1fr); gap: 14px; border: 0; }
.tester-controls {
  padding: 0 27px 26px;
  border: 2px solid var(--ink);
  background: var(--cream);
  box-shadow: 4px 4px 0 rgba(21, 21, 19, .06);
}
.tester-controls h2, .tester-controls-heading {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 -27px 25px;
  padding: 11px 22px;
  color: var(--cream);
  background: var(--ink);
  font: 400 32px/.8 "Lehava Display", Arial, sans-serif;
  letter-spacing: -.06em;
  text-align: center;
  white-space: nowrap;
}
.tester-controls label { gap: 6px; margin-bottom: 15px; color: var(--ink); font-size: 14px; font-weight: 800; }
.tester-controls select, .tester-controls input[type="color"] {
  height: 39px;
  padding: 0 11px;
  border: 2px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: var(--cream);
}
.tester-controls input[type="color"] { padding: 3px; }
.tester-controls input[type="range"] { width: 100%; height: 20px; margin: 0; padding: 0; accent-color: var(--hot); }
.tester-controls input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: var(--ink); }
.tester-controls input[type="range"]::-webkit-slider-thumb { width: 15px; height: 15px; margin-top: -5px; border: 0; border-radius: 50%; background: var(--hot); appearance: none; }
.tester-range { color: var(--muted); font-size: 12px; font-weight: 700; }
.tester-presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-top: 5px; }
.tester-presets button, .cart-action {
  min-height: 35px;
  padding: 7px 9px;
  border: 2px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: var(--cream);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
}
.tester-presets button:first-child { grid-column: 1 / -1; }
.tester-presets button:hover, .cart-action:hover { border-color: var(--hot); color: var(--hot); background: #fff; }
.tester-stage {
  min-height: 575px;
  padding: 26px 31px 22px;
  border: 2px solid var(--ink);
  background: var(--cream);
  box-shadow: 4px 4px 0 rgba(21, 21, 19, .06);
}
.tester-stage-bar { padding-bottom: 16px; border-bottom: 2px solid var(--ink); color: var(--ink); font-size: 14px; font-weight: 700; }
.tester-stage-bar output { color: var(--muted); }
.tester-preview { min-height: 438px; padding: 42px 0 14px; font-size: 62px; line-height: 1.18; color: var(--ink); }
.tester-preview:focus { box-shadow: inset 0 0 0 2px var(--hot); border-radius: 0; }
.tester-hint { color: var(--muted); font-size: 13px; font-weight: 500; }

.page-content, .cart-page { padding: 68px 0 104px; }
.page-content h2 { font-size: clamp(54px, 7vw, 96px); line-height: .79; letter-spacing: -.09em; }
.page-copy { max-width:760px; font-size: 21px; }
.steps { border-top: 2px solid var(--ink); }
.steps li { padding: 21px 0; border-bottom: 2px solid var(--ink); font-size: 18px; }
.steps b { color: var(--hot); font-size: 15px; }
.info-grid { margin-top: 50px; border: 0; gap: 14px; }
.info-grid article { min-height: 210px; padding: 28px; border: 2px solid var(--ink); background: var(--cream); clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)); }
.info-grid h3 { font-size: 42px; }
.info-grid p { color: var(--ink); }

.cart-layout { gap: 14px; border: 0; }
.cart-items { min-height: 320px; }
.cart-item, .cart-empty, .cart-summary { border: 2px solid var(--ink); background: var(--cream); }
.cart-item + .cart-item { margin-top: 12px; }
.cart-item h2 { font-size: 52px; }
.cart-item a { display: inline-block; margin-top: 12px; color: var(--hot); font-weight: 800; }
.cart-summary { padding: 28px; clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)); }
.cart-summary h2 { font-size: 49px; }
.summary-row { border-top: 2px solid var(--ink); }
.checkout-link { border: 2px solid var(--ink); color: var(--cream); background: var(--ink); clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); }
.checkout-link:hover { background: var(--hot); border-color: var(--hot); }

/* Home page: preserve the original opening composition. */
.hero {
  min-height: 610px;
  grid-template-columns: 1.2fr .8fr;
  align-items: end;
  gap: 40px;
  padding: 72px 0 56px;
  border-bottom: 0;
  overflow: hidden;
}
.hero::before {
  display: block;
  z-index: -1;
  width: min(51vw, 640px);
  top: 8%;
  left: -8%;
  border-radius: 50%;
  background: var(--hero-point);
  pointer-events: none;
}
.hero-copy { max-width: 760px; position: relative; z-index: 1; }
.hero-side { position: relative; z-index: 1; align-self: center; padding-top: 16px; border-top: 1px solid var(--ink); }
h1 { font: 400 clamp(68px, 11vw, 146px)/.78 "Lehava Display", Arial, sans-serif; letter-spacing: -.085em; }
.hero-text { max-width: 510px; margin: 30px 0 0; font-size: clamp(19px, 2.1vw, 27px); line-height: 1.42; }
.hero-side p { font-size: clamp(31px, 4vw, 58px); line-height: .94; letter-spacing: -.055em; }
.hero-side small { display: block; margin-top: 17px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.cta { min-height: 49px; border: 1px solid var(--ink); border-radius: 999px; clip-path: none; }
.cta:hover { transform: translateY(-2px); color: var(--paper); background: var(--ink); }
.cta.primary { border-color: var(--hot); background: var(--hot); }
.ticker { padding: 16px 0; border-top: 0; border-bottom: 3px solid var(--ink); color: var(--ink); font-size: 13px; }
.ticker span::before { color: var(--hot); }
.catalog { padding: 84px 0 100px; }
.section-top h2, .story h2 { font-size: clamp(58px, 7.4vw, 108px); line-height: .78; letter-spacing: -.09em; }
.section-top p { color: var(--ink); font-size: 19px; }
.font-grid { gap: 14px; border: 0; }
.font-card { min-height: 430px; padding: 25px; border: 2px solid var(--ink); background: var(--cream); clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)); }
.font-card:hover { background: #fffdf8; }
.font-meta, .font-bottom { color: var(--ink); }
.font-bottom { border-top: 2px solid var(--ink); }
.font-description, .font-name-en, .font-bottom span { color: var(--muted); }
.font-card-main-link { display: block; color: inherit; text-decoration: none; }
.font-card-sample-link { display: flex; flex: 1; }
.font-card-sample-link .font-sample { flex: 1; }
.font-story-link, .download-link, .purchase-link, .cart-add { color: var(--hot); }
.font-story-link { font-weight: 800; text-decoration: none; }
.font-story-link:hover { text-decoration: underline; }

.site-footer { position: relative; margin-top: 0; border-top: 3px solid var(--ink); color: var(--cream); background: var(--ink); }
.site-footer::before { content: ""; position: absolute; top: -1px; right: 0; left: 0; height: 16px; background: var(--paper); clip-path: polygon(0 0, 4% 100%, 9% 0, 15% 100%, 21% 0, 27% 100%, 33% 0, 39% 100%, 45% 0, 51% 100%, 57% 0, 63% 100%, 69% 0, 75% 100%, 81% 0, 87% 100%, 93% 0, 100% 100%, 100% 0); }
.footer-inner { position: relative; padding-top: 70px; }
.footer-logo { font-size: clamp(78px, 10vw, 140px); line-height: .68; }
.footer-copy { color: #e6ddcf; font-size: 17px; font-weight: 700; }
.footer-links { font-size: 15px; font-weight: 800; }
.footer-links a { color: var(--cream); text-decoration-color: var(--hot); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.footer-links a:hover { color: var(--hot); }
.footer-base { border-color: #7e786f; color: #ded5c8; }

@media (max-width: 800px) {
  .shell { width: min(100% - 28px, 1240px); }
  .site-header { min-height: 75px; gap: 16px; }
  .point-wordmark { font-size: 42px; }
  .nav { gap: 10px; font-size: 12px; }
  .cart-link { min-height: 34px; padding: 6px 8px; }
  .cart-link::before { width: 10px; height: 10px; border-width: 3px; }
  .page-hero { min-height: 0; grid-template-columns: 1fr; gap: 30px; padding: 58px 0 42px; }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 42px; padding: 64px 0 46px; }
  .hero::before { width: 78vw; top: 0; left: -30%; }
  .page-hero h1 { font-size: clamp(70px, 19vw, 112px); }
  .hero h1 { font-size: clamp(68px, 11vw, 146px); }
  .page-hero p { max-width: 400px; margin: 0; font-size: 18px; }
  .paper-divider { height: 26px; }
  .tester { padding: 28px 0 68px; }
  .tester-layout { grid-template-columns: 1fr; gap: 12px; }
  .tester-controls { padding: 0 18px 20px; }
  .tester-controls h2, .tester-controls-heading { min-height: 50px; margin-right: -18px; margin-left: -18px; margin-bottom: 20px; font-size: 29px; }
  .tester-stage { min-height: 460px; padding: 20px; }
  .tester-preview { min-height: 330px; padding-top: 28px; font-size: 44px; }
  .tester-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-content, .cart-page { padding: 52px 0 72px; }
  .page-content h2, .section-top h2, .story h2 { font-size: clamp(54px, 15vw, 88px); }
  .info-grid, .cart-layout, .font-grid { gap: 12px; }
  .font-card { min-height: 330px; }
  .hero-side { width: min(100%, 430px); justify-self: end; }
  .ticker { gap: 10px 16px; }
  .catalog { padding: 64px 0 70px; }
  .footer-inner { padding-top: 59px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
