/* ==========================================================================
   Nozama Logistics — public site
   One stylesheet, no build step. Edit values in :root to retheme.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-italic.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken";
  src: url("fonts/hanken.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand — from the logo file */
  --navy: #123b78;
  --slate: #5a79a8;
  /* Supporting */
  --night: #0a1f44;
  --ground: #f2f4f7;
  --paper: #ffffff;
  --ink: #16223a;
  --mute: #5b6577;
  --line: rgba(18, 59, 120, 0.16);
  --line-strong: rgba(18, 59, 120, 0.38);
  --line-on-dark: rgba(255, 255, 255, 0.18);
  /* Used once on purpose */
  --hazard: #fff200;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Hanken", "Helvetica Neue", Arial, sans-serif;

  --measure: 62ch;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 1200px;
  --space-section: clamp(5rem, 12vw, 9rem);
  --radius: 4px;
}

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

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-optical-sizing: auto;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - var(--gutter) * 2, var(--max));
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 480;
  letter-spacing: -0.018em;
  line-height: 1;
  margin: 0;
  color: var(--navy);
  font-variation-settings: "opsz" 144;
}

h1 {
  font-size: clamp(2.75rem, 7.6vw, 7rem);
  line-height: 0.96;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.75rem);
  text-wrap: balance;
}

h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-variation-settings: "opsz" 72;
}

p {
  margin: 0 0 1em;
  max-width: var(--measure);
}

.lede {
  font-size: clamp(1.15rem, 1.6vw, 1.375rem);
  line-height: 1.45;
  color: var(--ink);
}

.mute {
  color: var(--mute);
}

.small {
  font-size: 0.9375rem;
}

/* Things Al still has to supply. Visible on purpose; removed once filled. */
.fill {
  display: inline;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0.05em 0.45em;
  border: 1.5px dashed var(--slate);
  border-radius: 3px;
  color: var(--navy);
  background: rgba(90, 121, 168, 0.08);
  font-weight: 500;
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.6em;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  color: var(--paper);
  background: var(--navy);
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}
.btn:hover {
  background: var(--night);
  border-color: var(--night);
}
.btn-ghost {
  color: var(--navy);
  background: transparent;
}
.btn-ghost:hover {
  color: var(--paper);
  background: var(--navy);
}
.btn-light {
  color: var(--navy);
  background: var(--paper);
  border-color: var(--paper);
}
.btn-light:hover {
  background: var(--ground);
  border-color: var(--ground);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.75rem;
}

.brand {
  display: inline-block;
  line-height: 0;
}
.brand img {
  height: 26px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.nav a {
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover,
.nav a[aria-current="page"] {
  border-bottom-color: var(--navy);
}
.nav .nav-login {
  color: var(--mute);
  font-size: 0.9375rem;
}

.nav-toggle {
  display: none;
  font: inherit;
  font-weight: 600;
  color: var(--navy);
  background: none;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-block;
  }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .nav[data-open="true"] {
    display: flex;
  }
  .nav a {
    padding: 1rem var(--gutter);
    border-bottom: 1px solid var(--line);
  }
  .nav a:hover,
  .nav a[aria-current="page"] {
    background: var(--ground);
    border-bottom-color: var(--line);
  }
}

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */

.hero {
  padding-block: clamp(4rem, 10vw, 8rem) clamp(3rem, 8vw, 6rem);
  background: var(--ground);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 7fr 5fr;
    align-items: end;
    gap: 4rem;
  }
}

.hero h1 {
  max-width: 13ch;
}

.hero-copy {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.75rem;
  max-width: 34rem;
}

.hero-copy .lede {
  margin: 0;
}

.hero-side {
  display: grid;
  gap: 1.5rem;
}

/* The route line: Newington to the customer. Draws once on load. */
.route {
  width: 100%;
  height: auto;
  color: var(--navy);
}
.route .route-path {
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 6 9;
  stroke-linecap: round;
}
.route .route-stop {
  fill: var(--navy);
}
.route .route-end {
  fill: var(--hazard);
  stroke: var(--navy);
  stroke-width: 2;
}
.route text {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  fill: var(--mute);
}

@media (prefers-reduced-motion: no-preference) {
  .hero h1,
  .hero-copy > * {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .hero-copy > *:nth-child(1) {
    animation-delay: 140ms;
  }
  .hero-copy > *:nth-child(2) {
    animation-delay: 240ms;
  }
  .route .route-path {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: draw 1600ms 300ms ease-out forwards;
  }
  .route .route-end {
    opacity: 0;
    animation: rise 400ms 1700ms ease-out forwards;
  }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
    stroke-dasharray: 6 9;
  }
}

/* Photo slots — a place for real photography, not stock. */
.slot {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border: 1.5px dashed var(--slate);
  border-radius: var(--radius);
  color: var(--navy);
  background: repeating-linear-gradient(
    -45deg,
    rgba(90, 121, 168, 0.1) 0 8px,
    transparent 8px 22px
  );
}
.slot-wide {
  aspect-ratio: 21 / 9;
}
.slot-tall {
  aspect-ratio: 3 / 4;
}
.slot span {
  padding: 0.5rem 0.9rem;
  background: var(--paper);
  border-radius: 3px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: center;
  max-width: 28ch;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding-block: var(--space-section);
}

.section-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
@media (min-width: 900px) {
  .section-head {
    grid-template-columns: 5fr 7fr;
    align-items: end;
  }
  .section-head p {
    margin: 0;
  }
}

/* Day / night diptych */
.diptych {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .diptych {
    grid-template-columns: 1fr 1fr;
  }
}

.panel {
  padding: clamp(3rem, 7vw, 6rem) var(--gutter);
}
.panel-inner {
  max-width: 34rem;
}
@media (min-width: 900px) {
  .panel-day .panel-inner {
    margin-left: auto;
    padding-right: clamp(2rem, 5vw, 4rem);
  }
  .panel-night .panel-inner {
    padding-left: clamp(2rem, 5vw, 4rem);
  }
}

.panel-day {
  background: var(--ground);
}
.panel-night {
  background: var(--night);
  color: rgba(255, 255, 255, 0.86);
}
.panel-night h2,
.panel-night h3 {
  color: var(--paper);
}
.panel-night .slot {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.45);
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.08) 0 8px,
    transparent 8px 22px
  );
}
.panel-night .slot span {
  background: var(--navy);
}
.panel-night .fill {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.panel-time {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--slate);
  margin-bottom: 1rem;
}
.panel-night .panel-time {
  color: var(--slate);
}
.panel h2 {
  margin-bottom: 1.5rem;
}
.panel .slot {
  margin-top: 2.5rem;
}

/* Ruled columns — three trust points */
.ruled {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 760px) {
  .ruled {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
  }
}
.ruled > div {
  padding-top: 1.5rem;
  border-top: 1.5px solid var(--navy);
}
.ruled h3 {
  margin-bottom: 1rem;
}
.ruled p {
  margin: 0;
}

/* Founded strip */
.founded {
  background: var(--ground);
}
.founded .wrap {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .founded .wrap {
    grid-template-columns: 5fr 7fr;
    align-items: center;
    gap: 4rem;
  }
}
.founded h2 {
  margin-bottom: 1.25rem;
}

/* Call to action band */
.band {
  background: var(--navy);
  color: var(--paper);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.band .wrap {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 760px) {
  .band .wrap {
    grid-template-columns: 1fr auto;
  }
}
.band h2 {
  color: var(--paper);
}
.band p {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.78);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding-block: 3.5rem 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}
.site-footer .wrap {
  display: grid;
  gap: 2rem;
}
@media (min-width: 760px) {
  .site-footer .wrap {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.site-footer .brand img {
  height: 22px;
}
.site-footer address {
  font-style: normal;
  line-height: 1.6;
  margin-top: 1rem;
  color: var(--mute);
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.site-footer a {
  text-decoration: none;
  color: var(--ink);
}
.site-footer a:hover {
  text-decoration: underline;
}
.footer-note {
  grid-column: 1 / -1;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--mute);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
}
.footer-note p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Careers page
   -------------------------------------------------------------------------- */

.page-hero {
  padding-block: clamp(4rem, 9vw, 7rem) clamp(3rem, 7vw, 5rem);
  background: var(--ground);
}
.page-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.5rem, 6.4vw, 5.5rem);
}
.page-hero .lede {
  margin-top: 2rem;
  max-width: 36rem;
}
.page-hero .actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Roles ledger */
.ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1.5px solid var(--navy);
}
.ledger li {
  display: grid;
  gap: 0.75rem 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 760px) {
  .ledger li {
    grid-template-columns: 5fr 5fr 2fr;
    align-items: baseline;
    padding: 2.25rem 0;
  }
}
.ledger h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
}
.ledger p {
  margin: 0;
  max-width: 40ch;
}
.ledger .role-meta {
  color: var(--mute);
  font-size: 0.9375rem;
}
@media (min-width: 760px) {
  .ledger .role-meta {
    text-align: right;
  }
}

/* Checklist — mirrors what an applicant actually has to clear */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  max-width: 40rem;
}
.checklist li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.75rem;
  align-items: start;
}
.checklist li::before {
  content: "";
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.1em;
  border: 1.5px solid var(--navy);
  border-radius: 50%;
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M3.5 8.5l3 3 6-6" fill="none" stroke="%23123b78" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg>')
      center / 70% no-repeat;
}

.two-col {
  display: grid;
  gap: 3rem;
}
@media (min-width: 900px) {
  .two-col {
    grid-template-columns: 5fr 7fr;
    gap: 5rem;
    align-items: start;
  }
}
.two-col .sticky {
  position: sticky;
  top: 6rem;
}

/* --------------------------------------------------------------------------
   Application form
   -------------------------------------------------------------------------- */

.apply {
  background: var(--ground);
}

.form {
  display: grid;
  gap: 1.5rem;
  max-width: 44rem;
}

.form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 1.5rem;
}
.form legend {
  font-family: var(--display);
  font-variation-settings: "opsz" 48;
  font-size: 1.375rem;
  color: var(--navy);
  padding: 0;
  margin-bottom: 1rem;
}

.row {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 620px) {
  .row {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: grid;
  gap: 0.4rem;
}
.field label {
  font-weight: 600;
  font-size: 0.9375rem;
}
.field .hint {
  font-size: 0.875rem;
  color: var(--mute);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--navy);
  outline: none;
  box-shadow: 0 0 0 3px rgba(18, 59, 120, 0.18);
}
.field textarea {
  min-height: 8rem;
  resize: vertical;
}
.field input[type="file"] {
  padding: 0.6rem 0.9rem;
  background: var(--paper);
}
.field input[type="file"]::file-selector-button {
  font: inherit;
  font-weight: 600;
  color: var(--navy);
  background: var(--ground);
  border: 1.5px solid var(--line-strong);
  border-radius: 3px;
  padding: 0.4rem 0.8rem;
  margin-right: 0.9rem;
  cursor: pointer;
}

/* Only complain after the person has tried the field */
.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid {
  border-color: #b3261e;
}
.field .error {
  display: none;
  font-size: 0.875rem;
  color: #b3261e;
}
.field input:user-invalid ~ .error,
.field select:user-invalid ~ .error,
.field textarea:user-invalid ~ .error {
  display: block;
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1.25rem;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.consent input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  accent-color: var(--navy);
}
.consent p {
  margin: 0;
  max-width: none;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}
.form-actions .small {
  margin: 0;
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media print {
  .site-header,
  .nav-toggle,
  .band {
    display: none;
  }
}
