/* Nabzy's careers: shop-front red, packaging type, kitchen order tickets. */

@font-face { font-family: "League Spartan"; font-weight: 600; font-display: swap; src: url("/assets/fonts/league-spartan-600.woff2") format("woff2"); }
@font-face { font-family: "League Spartan"; font-weight: 800; font-display: swap; src: url("/assets/fonts/league-spartan-800.woff2") format("woff2"); }
@font-face { font-family: "League Spartan"; font-weight: 900; font-display: swap; src: url("/assets/fonts/league-spartan-900.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url("/assets/fonts/figtree-400.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 500; font-display: swap; src: url("/assets/fonts/figtree-500.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-display: swap; src: url("/assets/fonts/figtree-700.woff2") format("woff2"); }

:root {
  --red: #c51d23;
  --red-deep: #8f1217;
  --amber: #ffa000;
  --ink: #212121;
  --paper: #fff6ea;
  --white: #fff;
  --line: #d9cbb6;
  --display: "League Spartan", "Futura", sans-serif;
  --body: "Figtree", "Avenir Next", sans-serif;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-underline-offset: .18em; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: .98; margin: 0 0 .6em; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
section[id], form[id] { scroll-margin-top: 1rem; }

.wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 20; background: var(--white); padding: .6rem 1rem; }

/* Buttons */
.btn {
  display: inline-block; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--amber); color: var(--ink); cursor: pointer; text-decoration: none; text-transform: uppercase;
  font: 800 1rem/1 var(--display); letter-spacing: .04em; padding: .95em 1.5em .8em;
  box-shadow: 4px 4px 0 var(--ink); transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn--big { font-size: 1.15rem; }
.btn--small { font-size: .85rem; box-shadow: 3px 3px 0 var(--ink); }
.btn[disabled] { opacity: .65; cursor: progress; }

/* Header */
.top { background: var(--red); color: var(--white); border-bottom: 1px solid rgb(255 255 255 / .22); }
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; font: 800 .95rem/1.05 var(--display); text-transform: uppercase; letter-spacing: .05em; }
.brand img { width: 126px; }
.brand span { border-left: 2px solid rgb(255 255 255 / .4); padding-left: .9rem; }
.brand small { font-size: .8rem; font-weight: 600; color: #ffd48a; }
.top nav { display: flex; align-items: center; gap: 1.4rem; font-weight: 700; }
.top nav a:not(.btn) { text-decoration: none; }
.top nav a:not(.btn):hover { text-decoration: underline; }

/* Red surfaces with a printed-dot texture */
.hero, .jobhead, .message {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(rgb(0 0 0 / .17) 1.4px, transparent 1.8px) 0 0 / 14px 14px,
    radial-gradient(110% 130% at 80% 0%, #e0282f 0%, var(--red) 45%, var(--red-deep) 100%);
}

/* Hero */
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3rem, 7vw, 6rem); }
.eyebrow { display: inline-block; margin: 0 0 1.25rem; padding: .5em .9em .35em; background: var(--ink); color: var(--white); font: 800 .85rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; transform: rotate(-1.5deg); }
.hero h1 { font-size: clamp(3.6rem, 10vw, 8.2rem); text-transform: uppercase; letter-spacing: -.02em; line-height: .88; }
.hero h1 em { display: block; font-style: normal; color: var(--amber); text-shadow: 5px 5px 0 var(--ink); }
.lede { max-width: 34rem; font-size: 1.2rem; font-weight: 500; }
.hero__photo { position: relative; }
.hero__photo img { width: 100%; border: 10px solid var(--white); box-shadow: 14px 16px 0 rgb(33 33 33 / .85); transform: rotate(2.5deg); }
.sticker {
  position: absolute; left: -2.2rem; bottom: -2.2rem; width: 8.5rem; aspect-ratio: 1; display: grid; place-content: center;
  border: 3px solid var(--ink); border-radius: 50%; background: var(--amber); color: var(--ink); text-align: center;
  font: 800 1.1rem/1 var(--display); text-transform: uppercase; transform: rotate(-12deg);
}
.sticker strong { display: block; font-size: 1.85rem; font-weight: 900; }

.hero__copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) backwards; }
.hero__copy > :nth-child(2) { animation-delay: .08s; }
.hero__copy > :nth-child(3) { animation-delay: .16s; }
.hero__copy > :nth-child(4) { animation-delay: .24s; }
.hero__photo { animation: rise .8s .2s cubic-bezier(.2, .7, .2, 1) backwards; }
.sticker { animation: stamp .45s .85s cubic-bezier(.2, 1.6, .4, 1) backwards; }
@keyframes rise { from { opacity: 0; translate: 0 26px; } }
@keyframes stamp { from { opacity: 0; scale: 1.9; } }

/* Ticker */
.ticker { overflow: hidden; background: var(--ink); color: var(--white); white-space: nowrap; border-block: 4px solid var(--amber); }
.ticker div { display: inline-flex; animation: slide 38s linear infinite; }
.ticker span { padding: .85rem 0 .6rem; font: 800 1.05rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.ticker span::after { content: "★"; color: var(--amber); padding-inline: 1.6rem; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--dark { background: var(--ink); color: var(--white); }
.title { font-size: clamp(2.4rem, 5.5vw, 4.2rem); text-transform: uppercase; }
.title::after { content: ""; display: block; width: 3.2rem; height: .45rem; margin-top: .35em; background: var(--red); }

/* Job tickets */
.tickets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 2rem; }
.ticket {
  --tooth: 9px;
  position: relative; max-width: 760px; padding: 2rem clamp(1.4rem, 4vw, 2.6rem) 2.4rem; background: var(--white);
  /* torn receipt edges */
  mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--tooth) * 2) 51% repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(var(--tooth) * 2) 51% repeat-x;
  transition: transform .2s;
}
.tickets > li:only-child { grid-column: 1 / -1; }
.ticket:hover { transform: rotate(-.6deg) translateY(-4px); }
.ticket__no { display: flex; justify-content: space-between; margin: 0 0 1.4rem; padding-bottom: .9rem; border-bottom: 2px dashed var(--line); font: 800 .85rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.live { color: var(--red); }
.live::before { content: ""; display: inline-block; width: .55em; height: .55em; margin-right: .5em; border-radius: 50%; background: currentColor; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.ticket h3 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
.ticket h3 a { text-decoration: none; }
.ticket h3 a::after { content: ""; position: absolute; inset: 0; } /* whole ticket is clickable */
.ticket__cta { margin: 1.6rem 0 0; }
.empty { max-width: 36rem; padding: 1.5rem; border: 2px dashed var(--line); }

.facts { display: flex; flex-wrap: wrap; gap: .8rem 2.4rem; margin: 1.5rem 0 0; padding-top: 1.1rem; border-top: 2px dashed var(--line); }
.facts dt { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6f6559; }
.facts dd { margin: 0; font-weight: 700; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about__photo img { border-radius: 4px; box-shadow: -14px 14px 0 var(--red); }
.stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 1rem 0 0; padding: 0; border-top: 1px solid #4a4a4a; }
.stats li { padding: 1.8rem 1.5rem 0 0; }
.stats strong { display: block; font: 900 clamp(3.5rem, 9vw, 7rem)/.9 var(--display); color: var(--amber); }
.stats span { display: block; max-width: 18rem; }

.vision { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.vision img { border-radius: 50% 50% 6px 6px / 38% 38% 6px 6px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 62% center; width: 100%; max-height: 560px; }
.motto { font: 800 1.7rem/1.1 var(--display); color: var(--red); text-transform: uppercase; }

/* Job page */
.jobhead { padding-block: 2rem clamp(3rem, 6vw, 4.5rem); }
.jobhead h1 { font-size: clamp(3rem, 8.5vw, 6.8rem); text-transform: uppercase; max-width: 11ch; text-shadow: 5px 5px 0 var(--ink); }
.back { font-weight: 700; text-decoration: none; }
.back:hover { text-decoration: underline; }
.jobhead > .wrap > p:first-child { margin: 0 0 2.2rem; }
.job { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.job__body h2 { margin-top: 2.2rem; font-size: 1.9rem; }
.job__body .facts { margin: 0; padding: 0 0 1.2rem; border-top: 0; border-bottom: 2px dashed var(--line); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: .8rem 0 .8rem 2.2rem; border-bottom: 1px solid var(--line); }
.ticks li::before { content: "★"; position: absolute; left: .15rem; color: var(--red); font-size: 1.15rem; }

/* Application form */
.slip { background: var(--white); border: 2px solid var(--ink); border-top: 12px solid var(--red); box-shadow: 10px 10px 0 var(--ink); padding: clamp(1.3rem, 3vw, 2rem); }
.slip h2 { font-size: 2.1rem; text-transform: uppercase; margin-bottom: .25em; }
.slip__note { margin: 0 0 1.4rem; font-size: .9rem; color: #6f6559; }
.slip .btn + .slip__note { margin: 1.1rem 0 0; }
.field { display: block; margin-bottom: 1.1rem; }
.field span { display: block; margin-bottom: .35rem; font-weight: 700; font-size: .95rem; }
.field input:not([type="file"]), .field textarea { width: 100%; padding: .75rem .85rem; border: 2px solid var(--line); border-radius: 4px; background: #fffdf9; color: inherit; font: inherit; transition: border-color .15s; }
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field textarea { resize: vertical; }
.drop input { width: 100%; padding: 1.2rem 1rem; border: 2px dashed var(--ink); border-radius: 4px; background: var(--paper); font: inherit; font-size: .95rem; cursor: pointer; }
.drop input::file-selector-button { margin-right: .9rem; padding: .55em 1em .45em; border: 0; border-radius: 999px; background: var(--ink); color: var(--white); font: 800 .85rem/1 var(--display); text-transform: uppercase; cursor: pointer; }
.drop.is-over input { background: #ffe7bd; }
.drop small { display: block; margin-top: .35rem; color: #6f6559; }
.error { margin: .45rem 0 0; color: var(--red); font-weight: 700; }
.consent { display: flex; gap: .75rem; align-items: flex-start; margin: 0 0 1.6rem; font-size: .95rem; line-height: 1.5; }
.consent input { width: 1.2rem; height: 1.2rem; margin: .15rem 0 0; flex: none; accent-color: var(--red); }
.slip .btn { width: 100%; }
.hp { position: absolute; left: -9999px; }

/* Message + prose pages */
.message { padding-block: clamp(5rem, 14vw, 10rem); }
.message h1 { font-size: clamp(3rem, 9vw, 6.5rem); text-transform: uppercase; }
.message .lede { margin-bottom: 2rem; }
.prose { max-width: 820px; padding-block: clamp(3rem, 7vw, 5rem); }
.prose h1 { font-size: clamp(2.4rem, 6vw, 4rem); text-transform: uppercase; }
.prose h2 { margin-top: 2.2rem; font-size: 1.6rem; }

/* Footer */
.foot { background: var(--red-deep); color: var(--white); padding-block: 3.5rem 2rem; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.foot img { width: 168px; }
.foot h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .1em; color: #ffd48a; }
.foot ul { list-style: none; margin: 0; padding: 0; line-height: 2.1; }
.foot__line { font-weight: 700; }
.foot__legal { margin-top: 2.5rem; font-size: .85rem; opacity: .85; }
.foot__legal p { margin: 0; padding-top: 1.3rem; border-top: 1px solid rgb(255 255 255 / .25); }

@media (max-width: 900px) {
  .hero__grid, .about, .vision, .job, .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__photo { margin: 0 .6rem 1.5rem 1rem; }
  .sticker { width: 7rem; left: -1.2rem; bottom: -2rem; font-size: .95rem; }
  .sticker strong { font-size: 1.45rem; }
  .stats { grid-template-columns: 1fr; }
  .vision img { aspect-ratio: 4 / 3; border-radius: 6px; }
}

@media (max-width: 560px) {
  .brand span, .top nav a:not(.btn) { display: none; }
  .brand img { width: 108px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
