/* VOICE  a small maker's own site, cheerful
   IDEA   a street of model shops standing on a ruler
   PICTURE the street: one building for every shop, and a plot for the next
   COLOUR the logo's cream, navy, gold and sage; each shop in its own paint
   TYPE   Fredoka and Hanken Grotesk
   LAYOUT words across the top, the street under them; on a phone two shops side by side */
@font-face {
  font-family: 'Company';
  src: url('/fonts/fredoka-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

.company {
  --ink: #12213f;
  --cream: #fbf6ea; /* the logo's own ground */
  --gold: #e3b65c;
  /* Every band starts on the same line. */
  --gap: max(5vw, 16px, (100vw - 1160px) / 2);
  background: #fff;
  color: var(--ink);
  font: 400 17px/1.55 'Hanken Grotesk', Arial, sans-serif;
  overflow-x: clip;
}
.company h1,
.company h2,
.company h3,
.company svg text {
  color: var(--ink);
  font-family: 'Company', 'Trebuchet MS', sans-serif;
  font-weight: 700;
}
.company h1,
.company h2 {
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.company h1 {
  font-size: clamp(36px, 4.6vw, 60px);
}
.company h2 {
  font-size: clamp(28px, 3vw, 40px);
}
.company h3 {
  font-size: 24px;
  line-height: 1.2;
}
.company p,
.company h1,
.company h2,
.company h3,
.company ul,
.company dl,
.company dd {
  margin: 0;
  padding: 0;
}
.company ul {
  list-style: none;
}
.company a {
  color: inherit;
}
.company a:focus-visible {
  outline: 3px solid currentcolor;
  outline-offset: 3px;
  border-radius: 6px;
}

.company__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
  padding: 8px var(--gap);
  background: var(--cream);
}
.company__name {
  width: 126px;
}
.company__logo {
  display: block;
  width: 100%;
  height: auto;
}
.company__top nav {
  display: flex;
  margin-left: auto;
  gap: 20px;
}
.company__top nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}
.company__top nav a:hover {
  text-decoration: underline;
}

.company__hero {
  margin-top: -1px; /* no seam under the header */
  background: var(--cream);
}
.company__words {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 20px 64px;
  align-items: center;
  padding: 0 var(--gap);
}
.company__words > div {
  display: grid;
  gap: 16px;
}
.company__words p {
  max-width: 36em;
  font-size: 18px;
}

.company .street {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px clamp(16px, 4vw, 64px);
  align-items: end;
  margin: clamp(20px, 3vw, 40px) 0 0;
  padding: 0 var(--gap);
}
.street svg {
  display: block;
  width: 100%;
  height: auto;
}
.street a {
  display: block;
}
.street a > svg {
  transform-origin: 50% 100%;
  transition: transform 0.2s;
}
.street a:hover > svg {
  transform: scale(1.03);
}

/* A CSS inch is 96px, so the ruler is a real one. */
.ruler {
  display: flex;
  height: 60px;
  overflow: hidden;
  border-top: 3px solid var(--ink);
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 96px) 0 0 / auto 26px repeat-x,
    repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 48px) 0 0 / auto 18px repeat-x,
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 12px) 0 0 / auto 10px repeat-x,
    #f6e3b8;
}
.ruler span {
  flex: 0 0 96px;
  padding: 28px 6px 0 0;
  text-align: right;
  font-weight: 600;
  font-size: 15px;
}

.company__shops {
  display: grid;
  gap: 32px;
  padding: clamp(40px, 6vw, 80px) var(--gap);
}
.company__shops ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 40px 64px;
}
.company__shops li {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  justify-items: start;
}
.company .company__button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 8px;
  padding: 0 24px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.company .company__button:hover {
  background: #24407a;
}

.company__partners,
.company__invoice {
  padding: clamp(40px, 6vw, 80px) var(--gap);
  background: #dbe6df;
}
/* The plan of a shop, white on blue. */
.company__partners {
  background: #23405f;
  color: #fff;
}
.company__partners h2,
.company .company__partners text {
  color: inherit;
}
.company .company__partners .company__button {
  justify-self: start;
  background: var(--gold);
  color: var(--ink);
}
.company .company__partners .company__button:hover {
  background: #f0cb80;
}
.company__partners .plot {
  justify-self: center;
  width: min(100%, 300px);
}
.company__wide {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 40px 64px;
  align-items: center;
}
.company__wide > div {
  display: grid;
  gap: 16px;
  max-width: 38em;
}
.company__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}
.company__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}
/* A paper slip with a torn edge. */
.company .slip {
  padding: 24px 28px 36px;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 95% 95%, 90% 100%, 85% 95%, 80% 100%, 75% 95%, 70% 100%, 65% 95%, 60% 100%, 55% 95%, 50% 100%, 45% 95%, 40% 100%, 35% 95%, 30% 100%, 25% 95%, 20% 100%, 15% 95%, 10% 100%, 5% 95%, 0 100%);
}
.slip div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 16px;
  padding: 14px 0;
  border-bottom: 2px dotted #8b93a5;
}
.slip dd {
  font-weight: 700;
}

/* A page to read or fill in. */
.company__page {
  display: grid;
  gap: 16px;
  justify-items: start;
  max-width: calc(38em + 2 * var(--gap));
  padding: clamp(32px, 5vw, 64px) var(--gap);
}
.company__page h2 {
  margin-top: 16px;
  font-size: 24px;
}
.company__page li {
  margin-bottom: 8px;
}
.company .company__page ul:not([class]) {
  padding-left: 1.2em;
  list-style: disc;
}
.company__page form {
  display: grid;
  gap: 20px;
  width: 100%;
  margin-top: 8px;
}
.company__page form .company__button {
  justify-self: start;
  border: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.company__problem {
  padding: 12px 16px;
  border-radius: 12px;
  background: #ffd9cf;
  font-weight: 600;
}

.company__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 40px;
  padding: 28px var(--gap);
  background: var(--ink);
  color: #fff;
  font-size: 16px;
}

@media (max-width: 760px) {
  .company__words .company__logo {
    max-width: 300px;
  }
  .company__words,
  .company__wide {
    grid-template-columns: minmax(0, 1fr);
  }
  .company .street {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
  }
  .street__free:nth-child(odd) {
    display: none;
  }
  .company__foot {
    display: grid;
  }
}
@media (max-width: 430px) {
  .company__top nav a:not(:last-child) {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .street a > svg {
    transition: none;
  }
}
