/* Daily Shift Brief. Static site. No build step. */

:root {
  --ink: #161616;
  --muted: #2c2c2c;
  --paper: #e4dfd4;
  --paper-legal: #f3f0e8;
  --card: #f7f4ee;
  --steel: #5c656e;
  --black: #111111;
  --yellow: #f0c400;
  --line: #cfcabc;
  --focus: #111111;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.5;
}

body.legal {
  background: var(--paper-legal);
}

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

a {
  color: var(--ink);
  text-underline-offset: 0.15em;
}

a:hover {
  color: #000;
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 20;
  background: #fff;
  color: #000;
  padding: 0.5rem 0.75rem;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(100% - 2rem, 42rem);
  margin-inline: auto;
}

.wrap-wide {
  width: min(100% - 2rem, 60rem);
  margin-inline: auto;
}

.site-header {
  background: var(--black);
  color: #fff;
  border-bottom: 4px solid var(--yellow);
}

.site-header a {
  color: #fff;
  text-decoration: none;
}

.site-header a:focus-visible {
  outline-color: var(--yellow);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.25rem;
  padding-block: 0.35rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.mark {
  display: block;
  flex: 0 0 auto;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.2rem 0.45rem;
  border-bottom: 3px solid transparent;
}

.nav-list a[aria-current="page"] {
  border-bottom-color: var(--yellow);
}

.nav-list a:hover {
  border-bottom-color: #fff;
}

main {
  padding: 0 0 3rem;
}

.page-body {
  padding-top: 2rem;
}

body.marketing .page-body h2 {
  margin-top: 2.25rem;
  padding-top: 0.9rem;
  border-top: 1px solid #c9c3b6;
}

body.marketing .pay-card h2,
body.marketing .release-box h2,
body.marketing .sample-brief h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

body.marketing .page-body h2::before {
  content: "";
  display: block;
  width: 4.75rem;
  height: 0.42rem;
  margin: 0 0 0.7rem;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow) 0 5px,
    var(--steel) 5px 7px,
    transparent 7px 10px
  );
}

body.marketing .pay-card h2::before,
body.marketing .release-box h2::before,
body.marketing .sample-brief h2::before {
  content: none;
}

/* Plant-floor photograph, AI-generated by Daily Shift Brief for this site.
   image-set() is the CSS form of the same 960 / 1920 choice as the img srcset.
   :has(img) clears it so the photo is fetched once. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
  min-height: 34rem;
}

.hero-photo,
.page-banner {
  background-color: #171a1d;
  background-image: image-set(
    url("../assets/hero/plant-floor-960.webp") type("image/webp"),
    url("../assets/hero/plant-floor-960.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: 78% 40%;
}

@media (min-width: 761px) {
  .hero-photo,
  .page-banner {
    background-image: image-set(
      url("../assets/hero/plant-floor-1920.webp") type("image/webp"),
      url("../assets/hero/plant-floor-1920.jpg") type("image/jpeg")
    );
    background-position: 70% center;
  }
}

.hero-photo:has(img),
.page-banner:has(img) {
  background-image: none;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-photo picture,
.hero-photo img,
.page-banner picture,
.page-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-photo img,
.page-banner img {
  object-fit: cover;
  object-position: 70% center;
  display: block;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(10, 12, 14, 0.78) 0%,
    rgba(12, 14, 16, 0.75) 56%,
    rgba(18, 22, 26, 0.46) 76%,
    rgba(22, 26, 30, 0.26) 100%
  );
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 38rem);
  margin-left: max(1rem, calc((100% - 60rem) / 2));
  padding: 3rem 0 3.25rem;
}

.hero h1,
.page-banner h1 {
  color: #fff;
  border-bottom-color: var(--yellow);
}

.hero p,
.hero a:not(.btn) {
  color: #fff;
}

.hero .btn-solid {
  background: #121416;
  color: #fff;
  border-color: var(--yellow);
}

.hero .btn-line {
  background: rgba(12, 14, 16, 0.82);
  color: #fff;
  border-color: #fff;
}

.hero .btn-solid:hover,
.hero .btn-line:hover {
  background: var(--yellow);
  color: #141414;
  border-color: var(--yellow);
}

.hero :focus-visible,
.page-banner :focus-visible {
  outline-color: var(--yellow);
}

.page-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 9.25rem;
  color: #fff;
}

.page-banner-shade {
  position: absolute;
  inset: 0;
  background: rgba(14, 16, 18, 0.72);
}

.banner-title {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 42rem);
  margin-inline: auto;
  padding: 2.5rem 0 1.35rem;
}

.page-banner.wide .banner-title {
  width: min(100% - 2rem, 60rem);
}

.page-banner h1 {
  margin: 0;
}

@media (max-width: 760px) {
  .hero {
    min-height: 0;
    align-items: flex-end;
  }

  .hero-photo {
    overflow: hidden;
  }

  .hero-photo img {
    width: 230%;
    height: 230%;
    max-width: none;
    object-fit: fill;
    left: -118%;
    top: -72%;
  }

  .page-banner img {
    object-position: 76% 40%;
  }

  .hero-shade {
    background: linear-gradient(
      180deg,
      rgba(10, 12, 14, 0.30) 0%,
      rgba(10, 12, 14, 0.40) 7.5rem,
      rgba(8, 10, 12, 0.80) 12rem,
      rgba(8, 10, 12, 0.82) 100%
    );
  }

  .hero-copy {
    width: auto;
    margin-left: 1rem;
    margin-right: 1rem;
    padding: 9.25rem 0 1.75rem;
  }
}

h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  border-bottom: 6px solid var(--yellow);
  padding-bottom: 0.45rem;
}

h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.4rem;
  line-height: 1.25;
}

h3 {
  margin: 0 0 0.35rem;
  font-size: 1.12rem;
  line-height: 1.3;
}

p {
  margin: 0 0 0.9rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.35rem;
}

.lede {
  font-size: 1.25rem;
  line-height: 1.4;
}

.who-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.who-list li {
  background: var(--card);
  border: 1px solid var(--black);
  border-top: 4px solid var(--black);
  padding: 0.9rem 1rem 0.3rem;
}

.who-list h3 {
  margin-bottom: 0.3rem;
}

.steps {
  padding-left: 1.3rem;
}

.steps li {
  margin-top: 0.55rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0 0.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1rem;
  border: 2px solid var(--black);
  font: inherit;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-solid {
  background: var(--black);
  color: #fff;
}

.btn-solid:hover {
  background: #2a2a2a;
  color: #fff;
}

.btn-line {
  background: var(--card);
  color: var(--black);
}

.btn-line:hover {
  background: var(--yellow);
  color: var(--black);
}

.btn-pending {
  background: #fff;
  color: var(--black);
  border-style: dashed;
}

.btn-pending:hover {
  background: var(--yellow);
  color: var(--black);
}

.btn-locked {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.agree-box {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--black);
  padding: 0.9rem 1rem;
  margin: 0 0 1rem;
}

.agree-box input {
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.25rem;
  flex: 0 0 auto;
}

.agree-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.agree-stack .agree-box {
  margin: 0;
}

.release-inline {
  margin: 0.35rem 0 0;
}

.release-inline summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.release-box {
  border: 3px solid var(--black);
  background: var(--card);
  padding: 1rem 1.1rem 0.4rem;
  margin: 1.25rem 0 1.5rem;
}

.release-box h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.agreement-version {
  margin: 0 0 0.85rem;
  font-weight: 700;
}

.legal-warn {
  border: 3px solid var(--black);
  background: var(--card);
  padding: 0.9rem 1rem 0.2rem;
  margin: 0 0 1.25rem;
}

.legal-caps {
  font-weight: 800;
  letter-spacing: 0.01em;
}

.order-fields {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1rem;
}

.order-fields label {
  display: grid;
  gap: 0.25rem;
  font-weight: 700;
}

.order-fields input {
  font: inherit;
  min-height: 48px;
  padding: 0.4rem 0.6rem;
  border: 2px solid var(--black);
  background: #fff;
  width: 100%;
}

.btn-block {
  width: 100%;
}

.includes {
  background: var(--card);
  border: 1px solid var(--black);
  padding: 0.9rem 1rem 0.9rem 1.6rem;
  margin: 0.4rem 0 0;
}

.pay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
  margin-top: 0.5rem;
}

.pay-card {
  background: var(--card);
  border: 1px solid var(--black);
  padding: 1.15rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pay-card h2 {
  margin: 0 0 0.2rem;
}

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

.plan {
  margin-top: 0.85rem;
}

.addon-note {
  margin: 1.1rem 0 0;
}

.callout {
  background: var(--card);
  border: 1px solid #3a4046;
  border-left: 4px solid var(--yellow);
  padding: 0.85rem 1rem 0.15rem;
}

.amount {
  margin: 0 0 0.45rem;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.pay-card .aside-link {
  margin-top: auto;
  padding-top: 1rem;
}

.questions {
  margin-top: 1.25rem;
}

.sample-brief {
  background: var(--card);
  border: 1px solid var(--black);
  margin-top: 0.5rem;
}

.sample-flag {
  margin: 0;
  padding: 0.8rem 1rem;
  background: var(--yellow);
  color: var(--black);
  border-bottom: 3px solid var(--black);
  font-weight: 700;
}

.brief-body {
  padding: 1rem 1rem 1.25rem;
}

.brief-kicker {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brief-meta {
  margin: 0 0 1rem;
  font-variant-numeric: tabular-nums;
}

.placeholder {
  border: 1px dashed var(--black);
  padding: 0.65rem 0.75rem;
  background: #fffdf6;
}

.sample-brief ol {
  margin-bottom: 0.4rem;
}

.sample-brief a {
  overflow-wrap: anywhere;
}

.sample-brief img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.sample-brief figure {
  margin: 1rem 0 1.25rem;
}

.sample-brief figcaption {
  margin-top: 0.45rem;
  font-size: 0.95rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.brief-download {
  margin: 0;
  padding: 0.85rem 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.brief-download-bottom {
  padding-bottom: 1rem;
}

.sheet {
  background: #fff;
  color: #161616;
  border: 1px solid #3a4046;
  padding: 1rem 1rem 1.15rem;
}

.sheet-brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.2rem;
  font-weight: 700;
}

.sheet-brand .mark {
  width: 22px;
  height: 22px;
}

.sheet-title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  line-height: 1.2;
  border-bottom: 4px solid #111;
  padding-bottom: 0.25rem;
}

.sheet-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 1rem;
  margin: 0 0 0.7rem;
}

.field {
  display: grid;
  gap: 0.15rem;
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
}

.field .line {
  display: block;
  border-bottom: 1px solid #111;
  min-height: 1.35rem;
}

.sheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.sheet-table th,
.sheet-table td {
  border: 1px solid #222;
  text-align: left;
  padding: 0.28rem 0.4rem;
  font-weight: 600;
}

.sheet-table .num {
  width: 2.2rem;
  text-align: right;
}

.sheet-foot {
  margin: 0.7rem 0 0;
  font-size: 0.95rem;
}

@media (max-width: 560px) {
  .sheet-fields {
    grid-template-columns: 1fr;
  }

  .sheet-table {
    font-size: 0.85rem;
  }
}

.signoff-lines {
  overflow-wrap: anywhere;
}

.signoff {
  margin-top: 1.1rem;
  border-top: 3px solid var(--black);
  padding-top: 0.8rem;
}

.sign-row {
  display: grid;
  grid-template-columns: minmax(8.5rem, 11rem) 1fr;
  gap: 0.35rem 0.75rem;
  align-items: end;
  margin: 0.55rem 0;
}

.sign-line {
  border-bottom: 1px solid var(--black);
  min-height: 1.5rem;
}

@media (max-width: 420px) {
  .sign-row {
    grid-template-columns: 1fr;
  }
}

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

.security-sheet h2 {
  margin-top: 1.4rem;
}

.sheet-list {
  margin-top: 0.2rem;
}

.draft-banner {
  margin: 0 0 1.1rem;
  padding: 0.8rem 1rem;
  background: var(--yellow);
  color: var(--black);
  border: 3px solid var(--black);
  font-weight: 700;
}

.legal-slot {
  border: 1px dashed var(--black);
  padding: 0.75rem 1rem;
  font-weight: 700;
  background: #fff;
}

.site-footer {
  background: var(--black);
  color: #fff;
  padding: 1.5rem 0 2rem;
}

.site-footer a {
  color: #fff;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer-name {
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.footer-note {
  margin: 0.4rem 0 0;
  max-width: 38rem;
}

@media (min-width: 800px) {
  .who-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .pay-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page {
    size: letter;
    margin: 0.6in;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11.5pt;
    line-height: 1.4;
  }

  .skip,
  .site-header,
  .site-footer,
  .no-print {
    display: none !important;
  }

  main {
    padding: 0;
  }

  .wrap,
  .wrap-wide {
    width: auto;
    margin: 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  h1 {
    font-size: 18pt;
  }

  .sample-brief,
  .security-sheet,
  .who-list li,
  .pay-card,
  .includes,
  .draft-banner,
  .legal-slot,
  .placeholder {
    background: #fff;
  }

  .sample-flag,
  .draft-banner {
    background: #fff;
    border: 2px solid #000;
  }

  .sample-brief {
    break-inside: avoid;
    border: 1px solid #000;
  }

  .btn {
    border-color: #000;
  }

  .btn-solid {
    background: #fff;
    color: #000;
  }

  .hero-photo,
  .hero-shade,
  .page-banner picture,
  .page-banner-shade {
    display: none !important;
  }

  .hero,
  .page-banner {
    background: #fff;
    color: #000;
    min-height: 0;
  }

  .hero h1,
  .page-banner h1,
  .hero p,
  .hero a,
  .hero .btn,
  .hero .btn-solid,
  .hero .btn-line {
    color: #000;
    background: transparent;
    border-color: #000;
  }

  body.sheet-page {
    background: #fff;
    color: #000;
    font-size: 9pt;
    line-height: 1.15;
  }

  body.sheet-page main {
    padding: 0;
  }

  body.sheet-page .sheet {
    width: auto;
    margin: 0;
  }

  body.sheet-page .sheet-title {
    font-size: 13pt;
    margin: 0 0 0.08in;
    border: 0;
    padding: 0;
  }

  body.sheet-page .sheet-fields {
    margin-bottom: 0.08in;
  }

  body.sheet-page .sheet-table td {
    height: 0.268in;
    padding: 0 0.06in;
  }

  body.sheet-page .sheet-foot {
    margin: 0.06in 0 0;
  }

  @page sheet {
    size: letter;
    margin: 0.38in 0.48in;
  }

  body.sheet-page .sheet {
    page: sheet;
  }
}
