/* Foundation */
:root {
    color-scheme: light;
    --paper: #f3f1e9;
    --ink: #23241f;
    --muted: #606157;
    --line: #d5d5c9;
    --accent: #b43c22;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--paper);
    scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: 5px; }
a:focus-visible { outline: 3px solid #bd461f; outline-offset: 6px; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: #fff; background: #963c27; }
.PageShell { max-width: 1360px; padding: 0 64px; margin: auto; }
.SkipLink { position: absolute; top: -100px; left: 16px; z-index: 5; background: var(--ink); color: white; padding: 16px; }
.SkipLink:focus { top: 16px; }
.Wordmark { font-weight: 900; font-size: 29px; letter-spacing: -2px; text-decoration: none; }
.WordmarkDot { color: var(--accent); }

/* Header and archive */
.SiteHeader { display: flex; justify-content: space-between; align-items: center; min-height: 98px; border-bottom: 1px solid var(--ink); }
.SiteNav { display: flex; gap: 36px; font-size: 14px; font-weight: 600; }
.SiteNav a { padding: 12px 0; text-decoration: none; }
.SiteNav a:hover { text-decoration: underline; }
.ArchiveNotice { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.ArchiveNotice > span { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.ArchiveNotice a { font-weight: 600; }
.NoticeDot { background: var(--accent); width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

/* Introduction */
.IntroductionSection { padding: 74px 0 76px; }
.Eyebrow, .ProjectCategory, .SectionNote, .ArtCaption, .ProjectLanguage, .TerminalArt { font-family: "Courier New", monospace; }
.Eyebrow { text-transform: uppercase; letter-spacing: 1.8px; font-size: 11px; font-weight: 700; margin: 0 0 20px; }
h1 { font-size: clamp(90px, 12.8vw, 174px); line-height: .98; letter-spacing: -.085em; margin: 0 0 46px -8px; font-weight: 800; }
.TitleDot { color: var(--accent); }
.IntroDetails { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.IntroLead { font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -.8px; line-height: 1.28; margin: 0; }
.IntroBody { max-width: 510px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.IntroBody p { margin: 0 0 12px; }
.IntroBody p:last-child { margin-bottom: 0; }

/* Project headings */
.FeaturedSection, .OtherProjectsSection { scroll-margin-top: 28px; }
.SectionHeading { border-top: 1px solid var(--ink); display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 23px 0 28px; }
.SectionHeading h2 { font-size: 18px; font-weight: 600; letter-spacing: -.4px; margin: 0; }
.SectionNote { font-size: 11px; color: var(--muted); }
.ProjectCard { overflow: hidden; border-radius: 3px; }
.ProjectContent { position: relative; z-index: 1; padding: 38px 40px; }
.ProjectCategory { margin: 0 0 34px; text-transform: uppercase; font-size: 10px; letter-spacing: 1px; line-height: 1.5; }
.ProjectNumber { opacity: .7; margin-right: 15px; }
.ProjectCard h3 { margin: 0 0 10px; font-size: 48px; line-height: 1.1; letter-spacing: -2px; font-weight: 600; }
.ProjectSubtitle { font-size: 18px; margin: 0 0 19px; line-height: 1.35; }
.ProjectDescription { font-size: 14px; line-height: 1.75; max-width: 410px; margin: 0; }
.ProjectLinks { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 29px; }
.ProjectButton { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 17px; min-height: 46px; text-decoration: none; font-size: 13px; font-weight: 700; border: 1px solid transparent; border-radius: 2px; transition: transform .15s ease, background .15s ease; }
.ProjectButton:hover { transform: translateY(-2px); }
.TextLink { font-size: 13px; }

/* IDWT */
.IDWTCard { display: grid; grid-template-columns: 1fr 1fr; background: #202822; color: #f0f3df; position: relative; }
.IDWTCard .ProjectContent { padding-bottom: 43px; }
.IDWTCard .ProjectCategory { color: #c0c9b2; }
.IDWTCard h3 { font-size: 61px; letter-spacing: -2px; }
.VersionLabel { font-family: "Courier New", monospace; font-size: 15px; padding: 4px 9px; border: 1px solid #a5b68e; vertical-align: middle; letter-spacing: 0; border-radius: 2px; }
.IDWTCard .ProjectDescription { color: #c3cabd; }
.IDWTCard .ProjectButton { background: #d7e5ac; color: #202822; }
.IDWTCard .ProjectButton:hover { background: #e8f1cf; }
.IDWTArt { display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; background: radial-gradient(ellipse at center, #51684355, transparent 68%); }
.IDWTArt img { width: 113%; height: auto; max-height: 390px; object-fit: contain; }
.ArtCaption { text-transform: uppercase; letter-spacing: 2px; font-size: 9px; color: #bcc9a8; padding: 0 20px 25px; }

/* Glommer and SlipAgent */
.ProjectPair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.ProjectPair .ProjectCard { display: flex; flex-direction: column; }
.ProjectPair .ProjectContent { flex: 1; }
.GlommerCard { background: #f0b9a5; color: #402521; }
.GlommerCard .ProjectCategory { color: #713f31; }
.GlommerCard .ProjectDescription { color: #654136; }
.GlommerCard .ProjectButton { background: #402521; color: #ffece4; }
.GlommerCard .ProjectButton:hover { background: #62392f; }
.GlommerTitle { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.GlommerFlower { font-size: 54px; line-height: 1; color: #a63828; }
.GlommerArt { position: relative; display: flex; flex-direction: column; overflow: hidden; height: 180px; margin: 0 40px; padding-top: 15px; border-top: 1px solid #c58f7e; }
.GlommerArt > span { position: relative; z-index: 1; font-size: 35px; line-height: 1.15; letter-spacing: -1.5px; font-weight: 600; }
.GlommerArt > span:nth-child(2) { color: #944534; }
.GlommerArt > span:nth-child(3) { color: #624134; }
.GlommerArt .GlommerOrbit { position: absolute; width: 165px; height: 165px; border: 1px solid #974d38; border-radius: 50%; right: -10px; top: 26px; }
.GlommerOrbit::before, .GlommerOrbit::after { content: ""; position: absolute; border: 1px solid #974d38; border-radius: 50%; inset: 18px -26px; transform: rotate(55deg); }
.GlommerOrbit::after { inset: -20px 28px; transform: rotate(-40deg); }
.SlipAgentCard { background: #e3e7e8; color: #25363b; }
.SlipAgentCard .ProjectCategory { color: #516367; }
.SlipAgentCard .ProjectDescription { color: #4d5f64; }
.SlipAgentCard .ProjectButton { background: #293e43; color: #eef4f3; }
.SlipAgentCard .ProjectButton:hover { background: #415f65; }
.Cursor { font-family: monospace; font-size: .8em; color: #6b797c; }
.TerminalArt { margin: 0 40px; height: 180px; border: 1px solid #b8c2c4; border-bottom: 0; border-radius: 6px 6px 0 0; color: #345155; background: #edf1f1; font-size: 12px; }
.TerminalBar { display: flex; gap: 12px; justify-content: space-between; padding: 12px 15px; border-bottom: 1px solid #cbd5d5; font-size: 10px; color: #5e7073; }
.TerminalBar > span:first-child { letter-spacing: 3px; }
.TerminalBody { padding: 16px 20px; line-height: 1.85; }
.TerminalPrompt { color: #527e72; }
.TerminalCursor { display: inline-block; width: 7px; height: 12px; vertical-align: middle; background: #527e72; }

/* Other projects and footer */
.OtherProjectsSection { margin-top: 72px; }
.OtherProjectsSection .SectionHeading { padding-bottom: 15px; }
.ProjectList { padding: 0; margin: 0; list-style: none; }
.ProjectList li { border-bottom: 1px solid var(--line); }
.ProjectList a { display: grid; grid-template-columns: 220px 1fr 80px 22px; gap: 20px; align-items: center; padding: 27px 0; text-decoration: none; transition: background .15s ease; }
.ProjectList a:hover { background: #e9e7dd; }
.ProjectList h3 { font-size: 17px; font-weight: 600; letter-spacing: -.4px; margin: 0; }
.ProjectList p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }
.ProjectLanguage { font-size: 11px; color: var(--muted); }
.ProjectArrow { font-size: 23px; }
.SiteFooter { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 62px 0 38px; }
.SiteFooter p { margin: 0; color: var(--muted); font-size: 12px; }
.SiteFooter > a:last-child { font-size: 12px; }

/* Responsive layout */
@media (min-width: 1440px) {
    .PageShell { padding: 0 70px; }
}
@media (max-width: 1000px) {
    .PageShell { padding: 0 32px; }
    .IntroDetails { gap: 40px; }
    .ProjectContent { padding: 30px 26px; }
    .ProjectCard h3 { font-size: 40px; }
    .ProjectSubtitle { font-size: 17px; }
    .GlommerFlower { font-size: 42px; }
    .GlommerArt, .TerminalArt { margin-right: 26px; margin-left: 26px; }
    .ProjectList a { grid-template-columns: 175px 1fr 22px; }
    .ProjectLanguage { display: none; }
}
@media (max-width: 700px) {
    .PageShell { padding: 0 22px; }
    .SiteHeader { min-height: 78px; }
    .SiteNav { gap: 22px; font-size: 13px; }
    .ArchiveNotice { flex-direction: column; align-items: flex-start; gap: 9px; font-size: 12px; padding: 17px 0; }
    .ArchiveNotice a { margin-left: 16px; }
    .IntroductionSection { padding: 47px 0 43px; }
    .Eyebrow { font-size: 9px; letter-spacing: 1.1px; }
    h1 { font-size: clamp(64px, 16.2vw, 112px); letter-spacing: -.08em; margin-left: -4px; margin-bottom: 28px; }
    .IntroDetails { grid-template-columns: 1fr; gap: 21px; }
    .IntroLead { font-size: 25px; }
    .IntroBody { font-size: 14px; }
    .SectionHeading { padding: 20px 0; }
    .SectionHeading h2 { font-size: 17px; }
    .SectionNote { display: none; }
    .IDWTCard { grid-template-columns: 1fr; }
    .IDWTCard .ProjectContent { padding-bottom: 0; }
    .ProjectContent { padding: 28px 25px; }
    .ProjectCategory { margin-bottom: 27px; font-size: 9px; letter-spacing: .5px; }
    .IDWTCard h3 { font-size: 54px; }
    .ProjectDescription { max-width: none; }
    .IDWTArt img { width: 100%; height: 245px; }
    .IDWTArt { margin-top: 5px; }
    .ArtCaption { font-size: 8px; padding-bottom: 24px; }
    .ProjectPair { grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
    .ProjectCard h3 { font-size: 43px; }
    .ProjectLinks { gap: 20px; }
    .GlommerArt, .TerminalArt { margin-left: 25px; margin-right: 25px; }
    .OtherProjectsSection { margin-top: 45px; }
    .ProjectList a { grid-template-columns: 1fr 22px; gap: 7px 14px; padding: 22px 0; }
    .ProjectList p { grid-column: 1; grid-row: 2; font-size: 13px; }
    .ProjectArrow { grid-column: 2; grid-row: 1 / 3; }
    .SiteFooter { flex-wrap: wrap; padding: 40px 0 28px; gap: 20px; }
    .SiteFooter p { flex: 1; text-align: right; }
    .SiteFooter > a:last-child { width: 100%; text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
    :root { scroll-behavior: auto; }
    .ProjectButton, .ProjectList a { transition: none; }
}
