/* Message Merch — local preview. Black + white. System sans. */

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

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #111;
  background: #fff;
  font-family: ui-sans-serif, Inter, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #111;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.75rem;
  z-index: 10;
  padding: 0.4rem 0.7rem;
  background: #fff;
  color: #111;
}

.skip:focus {
  left: 0.75rem;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.logo {
  display: block;
  text-decoration: none;
  flex: 0 1 auto;
}

.logo img {
  display: block;
  height: 2rem;
  width: auto;
}

.site-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current] {
  text-decoration: underline;
}

/* Footer */

.site-footer {
  margin-top: auto;
  padding: 2rem 1.5rem 2.25rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
}

.site-footer p {
  margin: 0;
}

/* Shirt mock */

.tee {
  --tee: #17253a;
  position: relative;
  width: min(17.5rem, 72vw);
  aspect-ratio: 17 / 20;
  margin: 0 auto;
  background: var(--tee);
  clip-path: polygon(
    4% 16%,
    29% 17%,
    35% 10%,
    41% 20%,
    59% 20%,
    65% 10%,
    71% 17%,
    96% 16%,
    100% 28%,
    84% 36%,
    74% 32%,
    76% 97%,
    24% 97%,
    26% 32%,
    16% 36%,
    0% 28%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24% 20% 12%;
}

.tee-print {
  color: #fff;
  font-family: ui-sans-serif, Inter, Helvetica, Arial, sans-serif;
  font-size: clamp(0.95rem, 3.8vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-align: center;
}

/* Home */

.home {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1.5rem 3.5rem;
}

.home .tee {
  width: min(19rem, 78vw);
}

.home h1 {
  margin: 1.75rem 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.home .note {
  margin: 0;
  font-size: 1rem;
}

.home .see {
  margin: 1.15rem 0 0;
  font-weight: 500;
}

/* Product */

.product {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
}

/* large product picture: full width of the content column */
.product-visual {
  width: 100%;
}
.product-visual .mockup {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 675;
  object-fit: cover;
}

.product-copy {
  width: 100%;
  max-width: 42rem;
}

.product-copy h1 {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.lede {
  margin: 0 0 2rem;
  font-size: 1rem;
}

/* Printed card insert */

.card {
  max-width: 38rem;
  padding: 2.15rem 1.85rem 2.25rem;
  border: 1px solid #111;
}

.card-brand {
  margin: 0 0 1.6rem;
}

.card-brand img {
  display: block;
  width: 200px;
  height: auto;
}

.card-url {
  margin: 2rem 0 0;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.card > :first-child {
  margin-top: 0;
}

.card > :last-child {
  margin-bottom: 0;
}

.card p {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.65;
}

.card h2 {
  margin: 1.85rem 0 0.7rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.card .tight p {
  margin-bottom: 0.35rem;
}

.card .tight p:last-child {
  margin-bottom: 0;
}

.card blockquote {
  margin: 1rem 0;
  padding: 0;
  border: 0;
  font-style: normal;
}

.card blockquote p {
  margin: 0;
}

.hold {
  margin: 2rem 0 0;
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .product {
    gap: 1.5rem;
    padding-top: 1rem;
  }

  /* edge to edge on phones */
  .product-visual {
    width: auto;
    margin: 0 -1.5rem;
  }
  .product-visual .mockup {
    border-radius: 0;
  }

  .card {
    padding: 1.6rem 1.2rem 1.75rem;
  }
}

/* homepage about block */
.about {
  max-width: 34rem;
  margin: 2.5rem auto 0;
  text-align: left;
}
.about p {
  margin: 0 0 1rem;
  line-height: 1.6;
}
.excerpt {
  margin: 1.5rem 0;
  padding: 0 0 0 1rem;
  border-left: 2px solid currentColor;
}
.excerpt p {
  margin: 0;
}
.notify {
  font-size: 0.95rem;
  font-weight: 500;
}
.site-footer .contact {
  margin-bottom: 0.5rem;
  font-weight: 400;
}

/* mockup photo */
.mockup {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.home .mockup {
  width: min(40rem, 100%);
}

/* two-shirt homepage grid */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.shirts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 2rem;
  width: min(64rem, 100%);
}
.shirts li {
  text-align: center;
}
.shirts a[tabindex="-1"] {
  display: block;
}
.home .shirts .mockup {
  width: 100%;
}
.shirts h2 {
  margin: 1.25rem 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.home .shirts .see {
  margin-top: 0.75rem;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.25rem;
}
@media (max-width: 700px) {
  .shirts {
    grid-template-columns: 1fr;
  }
}

/* binary rows on the Jesus card */
.card .bytes {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.card .bytes li {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
  line-height: 1.5;
}
.card .bytes code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.95em;
  letter-spacing: 0.04em;
  margin-right: 0.35rem;
}

.site-footer p + p {
  margin-top: 0.25rem;
  font-weight: 400;
}

@media (max-width: 700px) {
  .site-header {
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
  }
  .logo img {
    height: 1.5rem;
  }
  .site-nav {
    justify-content: flex-start;
  }
}

/* homepage: mission, then designs, then notify */
.home .intro {
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: center;
}
.home > .notify {
  max-width: 36rem;
  margin: 2.75rem auto 0;
  text-align: center;
}

/* products page and homepage link */
.products-page h1 {
  margin: 0 0 2rem;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.home .see-all {
  margin: 2.25rem 0 0;
  font-weight: 500;
}

/* old hex page: links to the two versions */
.moved {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  line-height: 2;
}

/* Available on: one card per product */
.available {
  margin: 1rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid #ddd;
}
.available h2 {
  margin: 0 0 1.25rem;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.range {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem 1.25rem;
}
.range .pick {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 6px;
}
.range .pick img {
  outline: 2px solid transparent;
  outline-offset: 3px;
}
.range .pick[aria-pressed="true"] img {
  outline-color: #111;
}
.range .pick:focus-visible {
  outline: 2px solid #111;
  outline-offset: 8px;
}
.range img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 4px;
  background: #eeece8;
}
.range h3 {
  margin: 0.75rem 0 0.1rem;
  font-size: 1rem;
  font-weight: 500;
}
.range p {
  margin: 0;
  font-size: 0.9rem;
}
.range .range-status {
  margin-top: 0.3rem;
  color: #555;
}
.range .range-link {
  display: inline-block;
  margin-top: 0.3rem;
  font-weight: 500;
}
.product > .hold {
  margin: 0;
}
@media (max-width: 700px) {
  .range {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1rem;
  }
}

/* T-shirt colors line; opens to show the colors picture */
.range .colors {
  margin: 0.1rem 0 0;
  font-size: 0.9rem;
}
.range .colors summary {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.range .colors img {
  margin-top: 0.5rem;
}

/* Homepage: Share your story */
.story {
  max-width: 36rem;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid #ddd;
  text-align: center;
}
.story h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.story p {
  margin: 0;
}

/* T-shirt color swatches */
.range .swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.35rem 0 0.2rem;
}
.range .swatch {
  width: 1.625rem;
  height: 1.625rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.25);
  background: var(--c);
  cursor: pointer;
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.range .swatch[aria-pressed="true"] {
  outline-color: #111;
}
.range .swatch:focus-visible {
  outline: 2px solid #1a5fd0;
}
.range .swatch-name {
  font-size: 0.9rem;
}

/* Odd design count: center the last one */
.shirts li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - 1rem);
}

/* Design pages: the insert card that ships with every order */
.insert {
  margin: 2.5rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid #ddd;
}
.insert h2 {
  margin: 0 0 1.25rem;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.insert img {
  display: block;
  width: 100%;
  max-width: 36rem;
  height: auto;
  border-radius: 4px;
}
