:root {
  color-scheme: light;
  --paper: #fbf8f2;
  --paper-solid: #fffdf9;
  --ink: #242321;
  --muted: #716d67;
  --faint: #a19a90;
  --line: rgb(53 49 44 / 0.14);
  --accent: #dd492c;
  --accent-dark: #a92e1a;
  --accent-soft: #f8dfd7;
  --shadow: 0 24px 70px rgb(57 44 34 / 0.09), 0 3px 12px rgb(57 44 34 / 0.05);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgb(251 248 242 / 0.86), rgb(251 248 242 / 0.86)),
    url('/assets/project-field.jpg') center / cover fixed;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.page-shell {
  width: min(100% - 2rem, 74rem);
  min-height: 100svh;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 3.25rem) 0 1.5rem;
  display: flex;
  flex-direction: column;
}

.masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.company-mark {
  width: clamp(10.5rem, 20vw, 15.5rem);
  display: block;
}

.company-mark img {
  width: 100%;
  height: auto;
  display: block;
}

main {
  display: grid;
  align-items: center;
  margin-top: clamp(1.5rem, 3.2vw, 2.75rem);
}

.project-parent {
  margin: 0;
  color: var(--accent-dark);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.projects { display: grid; gap: 1.15rem; }

.section-heading {
  padding-inline: .25rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: var(--muted);
}

.section-heading h1,
.section-heading span {
  margin: 0;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1rem;
}

.project-card {
  position: relative;
  min-height: 30rem;
  overflow: hidden;
  padding: clamp(1.3rem, 3vw, 2.2rem);
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  background: rgb(255 253 249 / 0.82);
  box-shadow: 0 9px 30px rgb(57 44 34 / 0.04);
  backdrop-filter: blur(12px);
}

.project-card--featured {
  border-color: rgb(221 73 44 / 0.26);
  background:
    radial-gradient(32rem 20rem at 100% 100%, var(--accent-soft), transparent 75%),
    rgb(255 253 249 / 0.94);
  box-shadow: var(--shadow);
}

.project-card--coming-soon {
  isolation: isolate;
  border-color: rgb(53 49 44 / .18);
  background:
    linear-gradient(145deg, rgb(255 253 249 / .88), rgb(248 223 215 / .56)),
    var(--paper-solid);
}

.project-card--coming-soon::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 78% 22%, rgb(221 73 44 / .14), transparent 34%),
    radial-gradient(circle at 16% 88%, rgb(161 154 144 / .14), transparent 38%);
}

.coming-soon-mark {
  position: absolute;
  z-index: -1;
  top: 24%;
  left: -18%;
  width: 140%;
  height: auto;
  opacity: .16;
  filter: blur(18px) saturate(.65);
  transform: rotate(-7deg) scale(1.08);
  user-select: none;
}

.project-copy--coming-soon h3 {
  max-width: 7ch;
}

.project-copy--coming-soon > p:last-child {
  color: rgb(78 72 67 / .72);
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.project-number {
  color: var(--faint);
  font: 700 .72rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--accent-dark);
  font-size: .72rem;
  font-weight: 750;
}

.status i {
  width: .48rem;
  height: .48rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 .28rem rgb(221 73 44 / 0.12);
}

.status--quiet { color: var(--muted); }
.status--quiet i { background: var(--faint); box-shadow: 0 0 0 .28rem rgb(113 109 103 / .1); }

.project-copy {
  align-self: center;
  padding-block: 2rem;
}

.project-copy h3 {
  margin: .65rem 0 .9rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1;
}

.project-wordmark {
  width: min(100%, 20rem);
  height: auto;
  margin: .75rem 0 1rem;
  display: block;
}

.project-copy > p:last-child {
  max-width: 40ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.project-link {
  min-height: 3rem;
  padding: 0 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: .75rem;
  color: white;
  background: var(--accent);
  font-size: .88rem;
  font-weight: 750;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.project-link:hover { background: var(--accent-dark); transform: translateY(-1px); }
.project-link:focus-visible { outline: 3px solid rgb(221 73 44 / 0.28); outline-offset: 3px; }

.project-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(10rem, .62fr);
  gap: .65rem;
}

.project-link--pending {
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgb(255 253 249 / .62);
  cursor: not-allowed;
}

.project-link--pending em {
  color: var(--faint);
  font-size: .69rem;
  font-style: normal;
  letter-spacing: .03em;
}

.action-label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}

.action-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}

.action-icon--x {
  width: .9rem;
  height: .9rem;
}

.project-link--quiet {
  border: 1px solid rgb(53 49 44 / .16);
  color: var(--ink);
  background: rgb(255 253 249 / .56);
  backdrop-filter: blur(12px);
}

.project-link--quiet:hover { color: white; background: var(--ink); }

.maker {
  margin-top: auto;
  padding-top: 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.maker-person {
  display: flex;
  align-items: center;
  gap: .85rem;
}

.maker-person img {
  width: 3.8rem;
  height: 3.8rem;
  object-fit: contain;
}

.maker-copy {
  display: grid;
  gap: .28rem;
}

.maker-person p {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.015em;
}
.maker-person a { text-underline-offset: .22em; }
.maker-person a:hover { color: var(--accent-dark); }
.maker-person a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: .2rem; }

.maker-x {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 750;
  text-decoration: none;
}

.copyright { margin: 0; font-size: .72rem; }

@media (max-width: 760px) {
  .page-shell { width: min(100% - 1.25rem, 40rem); }
  .masthead { align-items: flex-start; flex-direction: column; gap: .8rem; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 27rem; }
  .maker { margin-top: 3rem; }
}

@media (max-width: 430px) {
  .project-meta { align-items: flex-start; }
  .status { text-align: right; }
  .project-actions { grid-template-columns: 1fr; }
  .maker { grid-template-columns: 1fr; }
  .copyright { margin-left: 4.15rem; }
}

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

@media (prefers-contrast: more) {
  :root { --line: rgb(36 35 33 / 0.34); }
  .project-card { background: var(--paper-solid); }
}
