/* Seyller Apps adaptations of Strongly Typed (HTML5 UP, CC BY 3.0). */
:root { --ink: #43474b; --muted: #687076; --coral: #be554e; --line: #e2e0dc; --paper: #faf9f6; }
body { color: var(--ink); background: var(--paper); font-weight: 400; }
a { transition: color .15s ease, background-color .15s ease; }
a:hover { color: var(--coral); }
a:focus-visible { outline: 3px solid var(--coral); outline-offset: 5px; }
h1, h2, h3 { color: var(--ink); }
h1 { font-size: 2.7em; line-height: 1.3; }
h2 { font-size: 1.75em; letter-spacing: .08em; }
h3 { font-size: 1.3em; letter-spacing: .015em; }
.container { max-width: 1140px; width: calc(100% - 5em); }
#header { background: var(--paper); padding: 7.5em 0 4.5em; border-bottom: 0; box-shadow: none; }
#header > .container { border-bottom: 3px double var(--line); padding: 0 0 4em; box-shadow: none; }
#header #logo { font-size: 3em; letter-spacing: .17em; color: var(--coral); text-shadow: 2px 3px 0 #e7e2de; }
#header .eyebrow { margin: 0 0 2em; font-size: .72em; letter-spacing: .22em; color: var(--muted); }
#header .tagline { margin: 1.8em auto; font-size: 1.18em; line-height: 1.75; letter-spacing: .035em; text-transform: none; }
#nav { top: 2em; display: block; }
#nav > ul > li { padding: 0 1.3em; }
#nav > ul > li > a { font-size: .8em; color: var(--ink); letter-spacing: .12em; }
#nav a[aria-current] { color: var(--coral); border-bottom: 2px solid var(--coral); padding-bottom: .4em; }
.button-row { display: flex; gap: 1em; justify-content: center; flex-wrap: wrap; }
.button { background: var(--coral); box-shadow: none; font-size: .78em; letter-spacing: .1em; padding: 1.15em 1.8em; border: 1px solid var(--coral); border-radius: 3px; }
.button:hover { background: #a74640; color: white; }
/* Override Strongly Typed's !important white button text. */
.button.secondary { background: transparent; color: var(--ink) !important; border-color: #c8c6c3; }
.button.secondary:hover, .button.secondary:focus-visible { border-color: var(--coral); color: var(--coral) !important; }
.eyebrow { font-size: .72em; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); margin-bottom: .8em; }
.section { padding-top: 0; padding-bottom: 5em; }
.section-heading { margin-bottom: 2em; }
.section-heading h1, .section-heading h2 { margin: 0 0 .4em; }
.heading-row { display: flex; align-items: center; justify-content: space-between; gap: 2em; }
.text-link { font-weight: 600; font-size: .9em; color: var(--coral); border-bottom: 0; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2em; }
.project-card { background: #fff; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; display: flex; flex-direction: column; }
.project-art { display: block; border: 0; }
/* Fit the complete screenshot in a consistent card frame; never crop UI. */
.project-image { width: 100%; display: block; aspect-ratio: 2.1; object-fit: contain; padding: .75em; background: #eaece7; }
.project-hero .project-image { height: auto; aspect-ratio: auto; padding: 0; border-radius: 4px; }
.project-hero a { display: block; border: 0; }
.project-placeholder { min-height: 225px; background-color: #eaece7; background-image: linear-gradient(90deg, #d4d9d055 1px, transparent 1px), linear-gradient(#d4d9d055 1px, transparent 1px); background-size: 28px 28px; display: flex; justify-content: center; align-items: center; flex-direction: column; gap: 1.5em; color: #536558; }
.code-symbol { font-family: Consolas, monospace; font-weight: bold; font-size: 3.5em; letter-spacing: -.12em; padding-right: .12em; }
.placeholder-label { font-family: Consolas, monospace; font-size: .68em; letter-spacing: .12em; text-transform: uppercase; }
.card-content { padding: 1.8em; display: flex; flex-direction: column; flex: 1; }
.card-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 1em; font-size: .7em; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.1em; }
.status { border: 1px solid #cbd9ce; padding: .15em .65em; border-radius: 20px; background: #f0f6ef; color: #3f6547; letter-spacing: .05em; }
.status-experimental { background: #fff7e6; border-color: #e6d6ae; color: #765d21; }
.status-archived { background: #f2f2f2; color: #626262; border-color: #ddd; }
.status-complete { background: #eef4fa; color: #416481; border-color: #ccdae7; }
.card-content h3 { margin: 0 0 .6em; text-transform: none; }
.card-content p { text-align: left; margin-bottom: 1.3em; }
.tags { display: flex; flex-wrap: wrap; gap: .45em; list-style: none; padding: 0; margin: 0 0 1em; }
.tags li { padding: .1em .6em; background: #f1f2ef; color: #5b635e; font-size: .75em; border-radius: 3px; overflow-wrap: anywhere; }
.updated { font-size: .75em; color: var(--muted); }
.card-links { display: flex; justify-content: space-between; gap: 1em; padding-top: 1em; margin-top: auto; border-top: 1px solid var(--line); }
.about-section { background: #efeee9; padding: 4em 0; border-top: 1px solid var(--line); }
.about-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 5em; }
.about-inner h2 { line-height: 1.7; letter-spacing: .05em; }
.about-inner p { text-align: left; }
#footer { padding: 3em 0; border: 0; background: var(--paper); }
.footer-inner { display: flex; justify-content: space-between; gap: 2em; font-size: .85em; }
.footer-inner p { text-align: left; margin: .5em 0 0; color: var(--muted); }
.footer-name { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; border: 0; }
.credits { font-size: .85em; }
#header.compact-header { padding: 6em 0 2.5em; }
#header.compact-header > .container { padding-bottom: 2em; }
.site-wordmark { font-family: Arvo, Georgia, serif; color: var(--coral); font-size: 1.7em; letter-spacing: .14em; text-transform: uppercase; border: 0; }
.catalog { padding-top: 1.5em; }
.project-page { padding-bottom: 4em; }
.back-link { font-size: .85em; border: 0; }
.project-intro { margin: 2.5em 0 3em; max-width: 850px; }
.project-intro h1 { text-transform: none; letter-spacing: .015em; margin-bottom: .6em; }
.lead { font-size: 1.2em; line-height: 1.7; text-align: left; }
.project-intro .button-row { justify-content: flex-start; }
.project-body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(230px, 1fr); gap: 5em; }
.prose h2 { font-size: 1.1em; margin: 2em 0 1em; }
.prose h2:first-child { margin-top: 0; }
.prose p { text-align: left; }
.project-facts { border-top: 3px double var(--line); padding-top: 1.5em; }
.project-facts h2, .project-facts h3 { font-size: .85em; margin-bottom: 1.5em; }
.project-facts dt { color: var(--muted); font-size: .8em; margin-top: 1em; }
.project-facts dd { margin: 0; overflow-wrap: anywhere; }
.project-hero { margin-bottom: 3em; }
.skip-link { position: absolute; left: 1em; top: -100px; z-index: 1000; background: white; padding: .6em 1em; }
.skip-link:focus { top: 1em; }
@media (max-width: 736px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 2.5em); }
  #header { padding: 7em 0 2.5em; }
  #header > .container { padding-bottom: 2.5em; }
  #header #logo { font-size: 1.9em; letter-spacing: .1em; }
  #header .tagline { font-size: 1em; }
  #nav { top: 2em; }
  #nav > ul > li { padding: 0 .7em; }
  #nav > ul > li > a { font-size: .75em; }
  .desktop-break { display: none; }
  .button { width: auto; }
  .heading-row { align-items: flex-start; flex-direction: column; gap: .5em; }
  .project-grid, .about-inner, .project-body { grid-template-columns: 1fr; gap: 2em; }
  .section { padding-bottom: 3em; }
  h1 { font-size: 2em; }
  h2 { font-size: 1.35em; }
  .card-content { padding: 1.4em; }
  .footer-inner { flex-direction: column; }
  .site-wordmark { font-size: 1.3em; }
  .about-section { padding: 3em 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

#nav > ul > li > a:focus-visible { outline: 3px solid var(--coral); outline-offset: 5px; }

@media (min-width: 737px) {
  .project-grid > .project-card:only-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.15fr; }
  .project-card:only-child .project-placeholder { height: 100%; min-height: 320px; }
  .project-card:only-child .project-image { height: 100%; }
}

.project-intro h1, .card-content h3 { overflow-wrap: anywhere; }
#main { padding: 0; background: var(--paper); overflow: visible; }

/* Categories remain usable without JavaScript. */
.category-nav { display: flex; flex-wrap: wrap; gap: .75em; margin: 0 0 2.5em; }
.category-nav a { border: 1px solid var(--line); border-radius: 4px; padding: .5em .85em; background: white; font-size: .85em; }
.category-nav span { color: var(--muted); }
.project-category + .project-category { margin-top: 3.5em; padding-top: 2.5em; border-top: 3px double var(--line); }
.project-category h2 { scroll-margin-top: 1em; margin-bottom: 1.25em; }
.card-links { flex-wrap: wrap; }
