:root {
  --color-bg: rgba(242, 240, 239, 1);
  --color-surface: #fff;
  --color-text: #222;
  --color-text-muted: #777;
  --color-text-faint: #999;
  --color-border: #eee;
  --color-border-strong: #e0e0e0;
  --color-docs-header: rgba(136, 136, 136, 1);
  --color-experience-heading: #888;
  --color-experience-title: #111;
  --color-experience-meta: #666;
  --color-example-grid: #eee;
  --color-coming-soon: #eee;
  --color-placeholder-outer: #e8eaef;
  --ph-window-bg: #fff;
  --ph-window-border: #dde1e8;
  --ph-titlebar: linear-gradient(180deg, #f4f5f7 0%, #e8eaef 100%);
  --ph-titlebar-border: #dde1e8;
  --ph-sidebar: #f6f7f9;
  --ph-sidebar-border: #e8eaef;
  --ph-content: #fafbfc;
  --ph-card: #fff;
  --ph-card-border: #e4e7ec;
  --ph-bar: #e4e7ec;
  --ph-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

/* Dark tokens: system preference, unless user forced light */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #1a1a1a;
    --color-surface: #1a1a1a;
    --color-text: #e8e8e8;
    --color-text-muted: #a8a8a8;
    --color-text-faint: #888;
    --color-border: #3a3a3a;
    --color-border-strong: #454545;
    --color-docs-header: #9a9a9a;
    --color-experience-heading: #9a9a9a;
    --color-experience-title: #ececec;
    --color-experience-meta: #b0b0b0;
    --color-example-grid: #2a2a2a;
    --color-coming-soon: #2a2a2a;
    --color-placeholder-outer: #252525;
    --ph-window-bg: #2d2d2d;
    --ph-window-border: #404040;
    --ph-titlebar: linear-gradient(180deg, #383838 0%, #2d2d2d 100%);
    --ph-titlebar-border: #404040;
    --ph-sidebar: #333;
    --ph-sidebar-border: #404040;
    --ph-content: #2a2a2a;
    --ph-card: #333;
    --ph-card-border: #484848;
    --ph-bar: #484848;
    --ph-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  }
}

/* Force dark when OS is light */
html[data-theme="dark"] {
  --color-bg: #1a1a1a;
  --color-surface: #1a1a1a;
  --color-text: #e8e8e8;
  --color-text-muted: #a8a8a8;
  --color-text-faint: #888;
  --color-border: #3a3a3a;
  --color-border-strong: #454545;
  --color-docs-header: #9a9a9a;
  --color-experience-heading: #9a9a9a;
  --color-experience-title: #ececec;
  --color-experience-meta: #b0b0b0;
  --color-example-grid: #2a2a2a;
  --color-coming-soon: #2a2a2a;
  --color-placeholder-outer: #252525;
  --ph-window-bg: #2d2d2d;
  --ph-window-border: #404040;
  --ph-titlebar: linear-gradient(180deg, #383838 0%, #2d2d2d 100%);
  --ph-titlebar-border: #404040;
  --ph-sidebar: #333;
  --ph-sidebar-border: #404040;
  --ph-content: #2a2a2a;
  --ph-card: #333;
  --ph-card-border: #484848;
  --ph-bar: #484848;
  --ph-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.container {
  max-width: 800px;
  background-color: var(--color-bg);
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: "Raleway", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-family: "Raleway", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* About */
.about {
  margin-top: 40px;
  margin-bottom: 2.5rem;
}
.about .about-photo {
  width: fit-content;
  margin-bottom: 1.25rem;
}
.about-img {
  display: block;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-border);
}
.about-heading {
  font-weight: 600;
  letter-spacing: 0.0375rem;
  margin-bottom: 0.9375rem;
}
.about-copy p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.78125rem;
}
.about-copy p:last-child {
  margin-bottom: 0;
}
@media (min-width: 550px) {
  .about .about-photo {
    margin-bottom: 0;
  }
}
.header {
  margin-top: 3.75rem;
  text-align: center; }
.value-prop {
  margin-top: 0.625rem; }
.value-props {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem; }
.docs-header {
  color: var(--color-docs-header);
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.docs-section {
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 0;
  margin-bottom: 0;}

.docs-section.resume-cta {
  padding-top: 24px;
  padding-bottom: 24px;
}

#projects {
  padding-top: 24px;
  padding-bottom: 24px;
}

#examples.docs-section {
  border-top: none;
  padding-top: 32px;
  padding-bottom: 32px;
}

/* Case study pages (work/*.html): match #examples rhythm, no top rule under nav */
.docs-section.case-study {
  border-top: none;
  padding-top: 40px;
  padding-bottom: 40px;
  margin-bottom: 0;
}

.case-study-title {
  font-size: 2rem;
  letter-spacing: -0.02em;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 0.3125rem;
}

.case-study-lead {
  max-width: 42rem;
}

.case-study-section {
  margin-top: 2rem;
}

.case-study-media {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 0 1.25rem 0;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.case-study-subhead {
  margin-top: 1.5rem;
}

.case-study-back {
  margin-top: 2rem;
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0 2.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
.site-footer-brand {
  margin-bottom: 1rem;
}
.site-footer-copy {
  margin: 0 0 0.375rem 0;
}
.site-footer-tagline {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--color-text-faint);
}
.site-footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.site-footer-nav a {
  color: var(--color-text);
  text-decoration: none;
}
.site-footer-nav a:hover {
  text-decoration: underline;
}

@media (min-width: 550px) {
  .site-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .site-footer-brand {
    margin-bottom: 0;
  }
  .site-footer-copy {
    margin: 0 0 0.375rem 0;
  }
  .site-footer-nav {
    flex-direction: row;
    gap: 1.5rem;
  }
}

.value-img {
  display: block;
  text-align: center;
  margin: 1.5625rem auto 0; }
.example-grid .column,
.example-grid .columns {
  background: var(--color-example-grid);
  text-align: center;
  border-radius: 4px;
  font-size: 0.625rem;
  text-transform: uppercase;
  height: 30px;
  line-height: 30px;
  margin-bottom: 0.46875rem;
  font-weight: 600;
  letter-spacing: 0.0625rem; }
.docs-example .row,
.docs-example.row,
.docs-example form {
  margin-bottom: 0; }
.docs-example h1,
.docs-example h2,
.docs-example h3,
.docs-example h4,
.docs-example h5,
.docs-example h6 {
  margin-bottom: 0.625rem; }
.heading-font-size {
  font-size: 0.75rem;
  color: var(--color-text-faint);
  letter-spacing: normal; }
.code-example {
  margin-top: 0.9375rem;
  margin-bottom: 0; }
.code-example-body {
  white-space: pre;
  word-wrap: break-word }
.example {
  position: relative; 
  margin-top: 1rem; }
.example-header {
  font-weight: 600;
  margin-top: 0.9375rem;
  margin-bottom: 0.3125rem; }
.example-description {
  margin-bottom: 0.9375rem; }
.example-screenshot-wrapper {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  height: 250px; }
.example-screenshot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  grid-auto-flow: dense;
}
.projects-tile {
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  grid-column: span var(--projects-col-span, 1);
  grid-row: span var(--projects-row-span, 1);
}
.projects-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  aspect-ratio: auto;
}
.projects-caption {
  padding: 0.625rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

@media (max-width: 899px) {
  /* Prevent implicit grid columns when a tile requests a larger span (e.g. 3) */
  .projects-tile {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .projects-img {
    object-fit: cover;
    aspect-ratio: 16 / 10;
  }
  .projects-img--full {
    object-fit: contain;
    aspect-ratio: auto;
  }
  .projects-grid > .projects-tile:first-child {
    --projects-col-span: 3;
  }
  .projects-tile--wide {
    --projects-col-span: 2;
  }
  .projects-tile--tall {
    --projects-row-span: 2;
  }
  .projects-tile--big {
    --projects-col-span: 2;
    --projects-row-span: 2;
  }
}
.example-screenshot {
  width: 100%;
  height: auto; }
.example-screenshot.coming-soon {
  width: auto;
  position: absolute;
  background: var(--color-coming-soon);
  top: 5px;
  right: 5px;
  bottom: 5px;
  left: 5px; }

/* Wireframe-style placeholder inside example screenshot area */
.example-screenshot.interface-placeholder {
  width: auto;
  position: absolute;
  top: 5px;
  right: 5px;
  bottom: 5px;
  left: 5px;
  background: var(--color-placeholder-outer);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 8px;
  box-sizing: border-box;
}
.interface-placeholder-window {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--ph-window-bg);
  border-radius: 4px;
  border: 1px solid var(--ph-window-border);
  overflow: hidden;
  box-shadow: var(--ph-shadow);
}

.example-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.example-actions .button {
  margin-bottom: 0;
}

/* Resume CTA buttons */
.resume-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.resume-actions .button {
  margin-bottom: 0;
}
.button.button-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.button-social-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
}
.interface-placeholder-titlebar {
  flex-shrink: 0;
  height: 22px;
  background: var(--ph-titlebar);
  border-bottom: 1px solid var(--ph-titlebar-border);
  display: flex;
  align-items: center;
  padding-left: 8px;
}
.interface-placeholder-titlebar::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 10px 0 0 #febc2e, 20px 0 0 #28c840;
}
.interface-placeholder-stage {
  flex: 1;
  display: flex;
  min-height: 0;
}
.interface-placeholder-sidebar {
  width: 22%;
  min-width: 32px;
  flex-shrink: 0;
  background: var(--ph-sidebar);
  border-right: 1px solid var(--ph-sidebar-border);
}
.interface-placeholder-content {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--ph-content);
}
.interface-placeholder-card {
  flex: 1;
  min-height: 40px;
  background: var(--ph-card);
  border: 1px solid var(--ph-card-border);
  border-radius: 3px;
}
.interface-placeholder-bar {
  height: 8px;
  border-radius: 2px;
  background: var(--ph-bar);
  flex-shrink: 0;
}
.interface-placeholder-bar.short {
  width: 65%;
}
.navbar {
  display: block;
  width: 100%;
  height: 4.0625rem;
  background: var(--color-surface);
  z-index: 99;
}

.navbar > .container {
  width: 100%;
}

.navbar-list {
  list-style: none;
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 4.0625rem;
}

.navbar-item {
  position: relative;
  float: none;
  margin-bottom: 0;
}

.navbar-item:first-child {
  margin-right: auto;
}

.navbar-item.u-pull-right {
  float: none;
}

.navbar-item:last-child .navbar-link {
  margin-right: 0;
}

.navbar-link {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.125rem;
  margin-right: 35px;
  text-decoration: none;
  line-height: 4.0625rem;
  color: var(--color-text);
}

.navbar-theme-group {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

button.navbar-theme {
  font-family: inherit;
  background: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  line-height: 0;
  color: var(--color-text);
  padding: 0 24px 4px 0;
  margin: 0 0.25rem 0 0;
  min-width: 1.5rem;
  width: auto;
  height: 4.0625rem;
  min-height: 4.0625rem;
}

.navbar-theme-svg {
  display: block;
  flex-shrink: 0;
  /* Optical: Griddy moon/sun sit slightly high in the 24×24 viewBox vs. caps of 11px nav type */
  transform: translateY(3px);
}

/* Larger than phone */
@media (min-width: 550px) {
  .header {
    margin-top: 11.25rem; }
  .value-props {
    margin-top: 5.625rem;
    margin-bottom: 4.375rem; }
  .value-img {
    margin-bottom: 0.625rem; }
  .example-grid .column,
  .example-grid .columns {
    margin-bottom: 0.9375rem; }
  .docs-section {
    padding: 3.75rem 0; }

  #examples.docs-section {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .docs-section.case-study {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .example-send-yourself-copy {
    float: right;
    margin-top: 12px; }
  .example-screenshot-wrapper {
    position: absolute;
    width: 48%;
    height: 100%;
    left: 0;
    max-height: none; }
}

/* Larger than tablet */
@media (min-width: 750px) {
  /* Navbar */
  .navbar + .docs-section {
    border-top-width: 0; }
  .navbar,
  .navbar-spacer {
    display: block;
    width: 100%;
    height: 4.0625rem;
    background: var(--color-surface);
    z-index: 99;
}
  .navbar > .container {
    width: 100%; }
  .navbar-list {
    list-style: none;
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 4.0625rem; }
  .navbar-item {
    position: relative;
    float: none;
    margin-bottom: 0; }
  .navbar-item:first-child {
    margin-right: auto; }
  .navbar-item.u-pull-right {
    float: none; }
  .navbar-item:last-child .navbar-link {
    margin-right: 0; }
  .navbar-link {
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.125rem;
    margin-right: 35px;
    text-decoration: none;
    line-height: 4.0625rem;
    color: var(--color-text); }
  .navbar-link.active {
    color: #33C3F0; }
  .has-docked-nav .navbar {
    position: fixed;
    top: 0;
    left: 0; }
  .has-docked-nav .navbar-spacer {
    display: block; }
  /* Re-overiding the width 100% declaration to match size of % based container */
  .has-docked-nav .navbar > .container {
    width: 80%; }

}
.experience-section {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-top: 32px;
    padding-bottom: 32px;
}

.experience-heading {
    margin: 0 0 1.25rem 0;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.125rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-experience-heading);
}

.experience-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.experience-item {
    display: grid;
    grid-template-columns: minmax(10rem, 28%) 1fr auto;
    align-items: center;
    gap: 1rem 1.25rem;
    padding: 1rem 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--color-border-strong);
    border-radius: 0;
}

.experience-org {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
}

.experience-org img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.experience-org-name {
    font-weight: 400;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-experience-title);
    text-decoration: none;
}

.experience-role {
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-experience-meta);
    min-width: 0;
}

.experience-dates {
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-experience-meta);
    white-space: nowrap;
    text-align: right;
}

@media (max-width: 639px) {
    .experience-item {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 0.5rem;
        padding: 1rem 0;
    }

    .experience-dates {
        text-align: left;
        white-space: normal;
    }
}

/* Skeleton: dark-mode link and outline button contrast (load order: custom after skeleton) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) a {
    color: #62c8f0;
  }
  :root:not([data-theme="light"]) a:hover {
    color: #8ad8f5;
  }
  :root:not([data-theme="light"]) .button,
  :root:not([data-theme="light"]) button,
  :root:not([data-theme="light"]) input[type="submit"],
  :root:not([data-theme="light"]) input[type="reset"],
  :root:not([data-theme="light"]) input[type="button"] {
    color: #ccc;
    border-color: #666;
  }
  :root:not([data-theme="light"]) .button:hover,
  :root:not([data-theme="light"]) button:hover,
  :root:not([data-theme="light"]) input[type="submit"]:hover,
  :root:not([data-theme="light"]) input[type="reset"]:hover,
  :root:not([data-theme="light"]) input[type="button"]:hover,
  :root:not([data-theme="light"]) .button:focus,
  :root:not([data-theme="light"]) button:focus,
  :root:not([data-theme="light"]) input[type="submit"]:focus,
  :root:not([data-theme="light"]) input[type="reset"]:focus,
  :root:not([data-theme="light"]) input[type="button"]:focus {
    color: #fff;
    border-color: #888;
  }
  :root:not([data-theme="light"]) a.navbar-link,
  :root:not([data-theme="light"]) .site-footer-nav a {
    color: var(--color-text);
  }
  :root:not([data-theme="light"]) .experience-org-name {
    color: var(--color-experience-title);
  }
}

html[data-theme="dark"] a {
  color: #62c8f0;
}
html[data-theme="dark"] a:hover {
  color: #8ad8f5;
}
html[data-theme="dark"] .button,
html[data-theme="dark"] button,
html[data-theme="dark"] input[type="submit"],
html[data-theme="dark"] input[type="reset"],
html[data-theme="dark"] input[type="button"] {
  color: #ccc;
  border-color: #666;
}
html[data-theme="dark"] .button:hover,
html[data-theme="dark"] button:hover,
html[data-theme="dark"] input[type="submit"]:hover,
html[data-theme="dark"] input[type="reset"]:hover,
html[data-theme="dark"] input[type="button"]:hover,
html[data-theme="dark"] .button:focus,
html[data-theme="dark"] button:focus,
html[data-theme="dark"] input[type="submit"]:focus,
html[data-theme="dark"] input[type="reset"]:focus,
html[data-theme="dark"] input[type="button"]:focus {
  color: #fff;
  border-color: #888;
}

html[data-theme="dark"] a.navbar-link,
html[data-theme="dark"] .site-footer-nav a {
  color: var(--color-text);
}

html[data-theme="dark"] .experience-org-name {
  color: var(--color-experience-title);
}

html[data-theme="dark"] button.navbar-theme,
:root:not([data-theme="light"]) button.navbar-theme {
  color: var(--color-text);
  border: none;
}

html[data-theme="dark"] button.navbar-theme:hover,
html[data-theme="dark"] button.navbar-theme:focus,
:root:not([data-theme="light"]) button.navbar-theme:hover,
:root:not([data-theme="light"]) button.navbar-theme:focus {
  color: var(--color-text);
  border: none;
}
