:root {
  --bg: #d9d7cc;
  --ink: #242424;
  --ink-strong: #050505;
  --muted: #545454;
  --dim: #77736a;
  --rule: #8a8677;
  --rule-soft: #bdb8a9;
  --link: #0000cc;
  --visited: #551a8b;
  --active: #a00000;
  --hover-bg: #c9c6ba;
  --button-bg: #d4d0c8;
  --button-hover: #f0eee8;
  --button-ink: #000;
  --toast-bg: #efede6;
  --selection-bg: #111;
  --selection-ink: #f2f0e8;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #000;
  --ink: #cfcfcf;
  --ink-strong: #f5f5f5;
  --muted: #9a9a9a;
  --dim: #6d6d6d;
  --rule: #555;
  --rule-soft: #303030;
  --link: #66a3ff;
  --visited: #b48cff;
  --active: #ffcc66;
  --page-line: rgba(255, 255, 255, 0.018);
  --hover-bg: #111;
  --button-bg: #d5d5d5;
  --button-hover: #eee;
  --button-ink: #000;
  --toast-bg: #000;
  --selection-bg: #ddd;
  --selection-ink: #000;
  color-scheme: dark;
}

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

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: auto;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 Verdana, Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

::selection {
  background: var(--selection-bg);
  color: var(--selection-ink);
}

a,
button {
  cursor: pointer;
}

a,
a:link {
  color: var(--link);
  text-decoration: underline;
}

a:visited {
  color: var(--visited);
}

a:active {
  color: var(--active);
}

button {
  font: inherit;
}

.site-nav {
  width: min(58rem, calc(100% - 1.25rem));
  margin: 0.9rem auto 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: transparent;
  text-align: center;
}

.tab-row {
  display: inline;
}

.tab-row::before {
  content: "[ ";
  color: var(--dim);
}

.tab-row::after {
  content: " ]";
  color: var(--dim);
}

.tab-button,
.theme-button {
  display: inline;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 0.32rem 0.55rem;
  border: 0;
  background: transparent;
  color: var(--link);
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  line-height: 1.9;
  text-decoration: underline;
}

.theme-button {
  color: var(--muted);
}

.theme-button::before {
  content: " [ ";
  color: var(--dim);
  text-decoration: none;
}

.theme-button::after {
  content: " ]";
  color: var(--dim);
  text-decoration: none;
}

.tab-button::after {
  content: " /";
  color: var(--dim);
  text-decoration: none;
}

.tab-button:last-child::after {
  content: "";
}

.tab-button:hover,
.tab-button:focus-visible,
.theme-button:hover,
.theme-button:focus-visible {
  background: var(--hover-bg);
  color: var(--ink-strong);
}

.tab-button.is-active,
.theme-button[aria-pressed="true"] {
  color: var(--ink-strong);
  font-weight: bold;
  text-decoration: none;
}

.page-shell,
.photo-view,
.work-view {
  width: min(58rem, calc(100% - 1.25rem));
  margin: 0 auto;
}

.page-shell {
  display: block;
  min-height: auto;
  padding: 1rem 0 2rem;
}

.is-photos .page-shell,
.is-photos .corner-note,
.is-work .page-shell,
.is-work .corner-note {
  display: none;
}

.hero,
.work-wrap,
.photo-card {
  position: relative;
  width: 100%;
  margin: 1.2rem 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: center;
}

.page-label,
.page-meta,
.star-rule,
.identity,
.quiet-line,
.scale-line,
.corner-note,
.socials,
.toast,
.work-kicker,
.section-heading h3,
.project-tone,
.tag-row,
.signal-list,
.work-link,
.metric-card span,
.release-grid span {
  font-family: "Courier New", Courier, monospace;
}

.page-label {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.page-meta {
  margin: 0.25rem 0 0;
  color: var(--dim);
  font-size: 0.86rem;
}

.star-rule {
  margin: 0.7rem 0;
  color: var(--dim);
  font-size: 1rem;
  line-height: 1;
}

.hero-title {
  display: flex;
  justify-content: center;
  margin: 0;
  color: var(--ink-strong);
  font-family: "Times New Roman", Times, serif;
  font-size: 5rem;
  font-weight: bold;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: none;
}

.hero-title span {
  display: inline;
}

.identity {
  display: block;
  margin: 0.5rem auto 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.identity::before,
.identity::after {
  display: block;
  width: 12rem;
  margin: 0.32rem auto;
  border-top: 1px solid var(--rule-soft);
  content: "";
}

.identity span + span::before {
  content: " / ";
  color: var(--dim);
}

.copy-stack {
  width: min(42rem, 100%);
  margin: 1.45rem auto 0;
}

.lead {
  margin: 0;
  color: var(--ink-strong);
  font: bold 1.1rem/1.55 Verdana, Arial, Helvetica, sans-serif;
  font-style: normal;
  text-transform: none;
}

.quiet-line,
.scale-line {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

.quiet-line {
  margin-top: 0.95rem;
  color: var(--muted);
}

.scale-line {
  color: var(--dim);
}

.hero-cta {
  display: block;
  margin-top: 1.45rem;
}

.hire-button,
.works-button {
  display: inline-block;
  min-width: 10rem;
  min-height: 0;
  margin: 0.15rem 0.25rem;
  padding: 0.38rem 0.95rem;
  border: 2px outset var(--rule);
  border-radius: 0;
  background: var(--button-bg);
  box-shadow: none;
  color: var(--button-ink) !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  font-weight: bold;
  line-height: 1.35;
  text-decoration: none;
  text-transform: uppercase;
}

.works-button {
  font: bold 0.95rem/1.35 Arial, Helvetica, sans-serif;
}

.hire-button:hover,
.hire-button:focus-visible,
.works-button:hover,
.works-button:focus-visible {
  background: var(--button-hover);
}

.hire-button:active,
.works-button:active {
  border-style: inset;
}

.socials {
  display: block;
  margin-top: 1.25rem;
  color: var(--dim);
  font-size: 0.95rem;
}

.socials::before {
  content: "links: ";
  color: var(--muted);
}

.social-link {
  display: inline;
  width: auto;
  height: auto;
  margin: 0 0.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--link);
  text-decoration: underline;
}

.social-link svg {
  display: none;
}

.social-link::before {
  content: attr(data-label);
}

.social-link::after {
  content: "";
}

.social-link:hover,
.social-link:focus-visible {
  background: var(--hover-bg);
  color: var(--ink-strong);
}

.hire-button:focus-visible,
.works-button:focus-visible,
.social-link:focus-visible,
.tab-button:focus-visible,
.theme-button:focus-visible,
.work-link:focus-visible {
  outline: 1px dotted var(--ink-strong);
  outline-offset: 0.2rem;
}

.photo-view {
  display: block;
  padding: 1rem 0 2rem;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.photo-card {
  width: min(27rem, 100%);
  margin: 1.8rem auto 0;
  padding: 0.35rem;
  border: 2px groove var(--rule);
  background: var(--button-bg);
}

.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 0;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
}

.work-view {
  display: block;
  padding: 1rem 0 2rem;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  scrollbar-color: var(--rule) transparent;
}

.work-header {
  margin: 0 0 1.35rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}

.work-kicker {
  margin: 0.5rem 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.work-kicker::before {
  content: "* * * ";
  color: var(--dim);
}

.work-title {
  max-width: none;
  margin: 0;
  color: var(--ink-strong);
  font-family: "Times New Roman", Times, serif;
  font-size: 2.75rem;
  font-weight: bold;
  line-height: 1.15;
  letter-spacing: 0;
}

.work-metrics {
  display: table;
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
}

.metric-card {
  display: table-cell;
  width: 33.333%;
  min-height: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--rule-soft);
  background: transparent;
  vertical-align: top;
}

.metric-card strong {
  display: block;
  color: var(--ink-strong);
  font-family: "Times New Roman", Times, serif;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.05;
}

.metric-card span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.work-section {
  margin-top: 1.45rem;
  text-align: left;
}

.section-heading {
  margin: 0 0 0.55rem;
  padding: 0.4rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule-soft);
}

.section-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: bold;
  line-height: 1.35;
}

.project-card {
  display: block;
  margin: 0;
  padding: 0.2rem 0 0.6rem;
  border: 0;
  background: transparent;
}

.project-card-featured,
.android-card {
  display: block;
}

.project-tone {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.project-copy h4 {
  margin: 0.15rem 0 0;
  color: var(--ink-strong);
  font-family: "Times New Roman", Times, serif;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.2;
}

.project-copy p:not(.project-tone) {
  max-width: 65ch;
  margin: 0.45rem 0 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
}

.project-side,
.project-links {
  display: block;
  margin-top: 0.5rem;
}

.signal-list {
  display: block;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.signal-list span {
  display: block;
}

.signal-list span::before {
  content: "- ";
  color: var(--dim);
}

.tag-row {
  display: block;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.tag-row::before {
  content: "tags: ";
  color: var(--dim);
}

.tag-row span {
  display: inline;
}

.tag-row span::before {
  content: "";
}

.tag-row span::after {
  content: ", ";
}

.tag-row span:last-child::after {
  content: "";
}

.work-link {
  display: inline;
  min-height: 0;
  margin-right: 0.7rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--link);
  font-size: 0.95rem;
  line-height: 1.5;
  text-decoration: underline;
}

.work-link::before {
  content: "";
  margin: 0;
}

.work-link:hover,
.work-link:focus-visible {
  background: var(--hover-bg);
  color: var(--ink-strong);
}

.release-grid {
  display: block;
  margin: 0.55rem 0;
}

.release-grid div {
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.release-grid div::after {
  content: " | ";
  color: var(--dim);
}

.release-grid div:last-child::after {
  content: "";
}

.release-grid strong {
  display: inline;
  color: var(--ink-strong);
  font-family: "Times New Roman", Times, serif;
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1;
}

.release-grid span {
  display: inline;
  margin-top: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.phone-ghost {
  display: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 6;
  max-width: min(24rem, calc(100vw - 2rem));
  margin: 0;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--rule);
  background: var(--toast-bg);
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.35;
  pointer-events: none;
  opacity: 0;
  text-align: center;
  transform: translateX(-50%);
}

.toast.is-visible {
  opacity: 1;
}

.corner-note {
  width: min(58rem, calc(100% - 1.25rem));
  margin: 0 auto 1.2rem;
  color: var(--dim);
  font-size: 0.86rem;
  line-height: 1.4;
  text-align: center;
}

.corner-note::before {
  content: "* * *";
  display: block;
  margin-bottom: 0.35rem;
}

@media (max-width: 42rem) {
  body {
    font-size: 15px;
  }

  .site-nav,
  .page-shell,
  .photo-view,
  .work-view,
  .corner-note {
    width: calc(100% - 1.1rem);
  }

  .tab-button {
    padding-inline: 0.32rem;
  }

  .hero-title {
    font-size: 3.6rem;
  }

  .work-title {
    font-size: 2rem;
  }

  .work-metrics,
  .metric-card {
    display: block;
    width: 100%;
  }

  .metric-card + .metric-card {
    border-top: 0;
  }

  .hero-cta {
    display: grid;
    gap: 0.4rem;
    justify-items: center;
  }

  .hire-button,
  .works-button {
    width: min(18rem, 100%);
    margin: 0;
    text-align: center;
  }
}
