:root {
  color-scheme: light;
  --background: #f3f4ee;
  --surface: #fdfdf8;
  --ink: #18241c;
  --muted: #536157;
  --line: #dce0d4;
  --lime: #ddf98c;
  --forest: #142b20;
  --radius: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: var(--background);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, p, ul { margin: 0; }
ul { list-style: none; padding: 0; }
button, input { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #477245; outline-offset: 4px; }

.shell { width: min(100% - 64px, 1200px); margin-inline: auto; }
.portal-grid { display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(308px, 1fr); gap: 20px; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 12px; background: white; }
.arrow { font-family: Arial, sans-serif; font-weight: 400; line-height: 1; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 74px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; width: fit-content; font-size: 30px; font-weight: 800; letter-spacing: -.075em; line-height: 1; }
.wordmark-dot { color: #52704a; }
.brand-mark { display: block; width: 32px; height: 32px; flex: none; }
.site-nav { display: flex; align-items: center; gap: 34px; color: var(--muted); }
.site-nav a { display: inline-flex; align-items: center; min-height: 42px; font-size: 14px; font-weight: 650; white-space: nowrap; }
.site-nav a:hover, .site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.search-trigger { display: flex; align-items: center; gap: 9px; padding: 7px 8px 7px 13px; min-height: 40px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 650; }
.search-trigger:hover { border-color: #98a594; color: var(--ink); }
.search-trigger kbd { padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--background); color: var(--muted); font-size: 12px; }
.login-link { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px; border-radius: 9px; background: var(--forest); color: var(--surface); font-size: 13px; font-weight: 750; white-space: nowrap; }
.login-link:hover { background: #2f503a; }
.search-icon { position: relative; display: block; width: 14px; height: 14px; flex: none; }
.search-icon::before { position: absolute; inset: 0 3px 3px 0; border: 1.65px solid currentColor; border-radius: 50%; content: ""; }
.search-icon::after { position: absolute; right: 0; bottom: 1px; width: 6px; height: 1.65px; transform: rotate(45deg); border-radius: 1px; background: currentColor; content: ""; }

.intro { padding-top: 31px; }
.hero { overflow: hidden; border-radius: var(--radius); background: #0c281d; }
.hero-image { display: block; width: 100%; height: auto; aspect-ratio: 2.25; object-fit: cover; }
.hero-content { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px clamp(20px, 2.7vw, 36px) 18px; border-top: 1px solid #294639; }
.hero p { color: #e0ebda; font-size: 15px; line-height: 1.6; word-break: keep-all; }
.hero-action { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 15px 0 17px; border-radius: 8px; background: var(--lime); color: #203018; font-size: 13px; font-weight: 750; }
.hero-action .arrow { font-size: 18px; }
.hero-action:hover { background: #efffc3; }
.hero-action:focus-visible { outline-color: var(--lime); }

.search-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(22px, 2.7vw, 36px); border: 1px solid #d9e0ce; border-radius: var(--radius); background: #e9efdf; }
.search-panel h2 { font-size: clamp(23px, 2.2vw, 30px); letter-spacing: -.06em; line-height: 1.2; }
.search-scopes { display: flex; gap: 4px; width: fit-content; margin: 19px 0 11px; padding: 3px; border-radius: 8px; background: #dce5d3; }
.search-scopes button, .suggestion-list button, .empty-results button { border: 0; cursor: pointer; }
.search-scopes button { min-height: 32px; padding: 0 11px; border-radius: 6px; background: transparent; color: #405344; font-size: 12px; font-weight: 700; white-space: nowrap; }
.search-scopes button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px #142b2022; }
.search-scopes button:hover { color: #152a1c; }
.search-field { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 6px 6px 13px; border: 1px solid #c5d1be; border-radius: 10px; background: var(--surface); color: #536757; }
.search-field:focus-within { border-color: #477245; box-shadow: 0 0 0 2px #477245; }
.search-field input { flex: 1; width: 0; padding: 5px 0; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 16px; }
.search-field input::placeholder { color: #607061; opacity: 1; }
.submit-search { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border: 0; border-radius: 7px; background: var(--forest); color: #f7f9ef; font-size: 22px; cursor: pointer; }
.submit-search:hover { background: #2f503a; }
.search-status { min-height: 20px; margin: 7px 0 0; color: #405344; font-size: 13px; line-height: 20px; }
.suggestions { display: grid; gap: 9px; padding-top: 15px; border-top: 1px solid #d3deca; color: #4c5d50; font-size: 12px; font-weight: 700; }
.suggestion-list { display: flex; flex-wrap: wrap; gap: 6px; }
.suggestion-list button { min-height: 32px; padding: 5px 10px; border: 1px solid #c9d6c2; border-radius: 99px; background: transparent; font-size: 12px; font-weight: 650; }
.suggestion-list button:hover { background: #f7faf1; border-color: #8da287; }

.directory { padding-top: 35px; }
.directory:focus { outline: none; }
.directory:focus-visible { outline: 2px solid #477245; outline-offset: 6px; }
.directory:has(> #projects[hidden]) > #shortcuts { grid-column: 2; }
.section-heading { display: flex; align-items: baseline; margin-bottom: 13px; }
.section-heading h2 { font-size: 23px; letter-spacing: -.045em; }
#projects, #shortcuts, #search-field { scroll-margin-top: 18px; }
.project-list { display: grid; gap: 10px; }
.project-card { display: grid; grid-template-columns: minmax(105px, 154px) 1fr auto; align-items: center; gap: 22px; min-height: 168px; padding: 12px 16px 12px 12px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.project-card:hover, .shortcuts-list a:hover { border-color: #9eaf9b; }
.project-art { position: relative; display: grid; place-items: center; align-self: stretch; min-height: 125px; overflow: hidden; isolation: isolate; border-radius: 9px; background: #d2dec3; color: #193322; }
.project-art::before { position: absolute; z-index: -1; inset: 0; background: repeating-radial-gradient(ellipse at 32% 92%, transparent 0 10px, #6e88645c 11px 12px, transparent 13px 16px); content: ""; }
.project-art > span { font-family: Georgia, serif; font-size: clamp(48px, 5.4vw, 72px); font-weight: 700; letter-spacing: -.12em; line-height: 1; }
.project-art > span span { color: #527544; }
.project-copy { min-width: 0; }
.project-category, .project-domain { display: block; color: #526557; font-size: 12px; line-height: 1.4; }
.project-category { margin-bottom: 4px; font-weight: 700; }
.project-copy h3 { font-size: clamp(21px, 2.5vw, 34px); letter-spacing: -.053em; line-height: 1.13; }
.project-copy p { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.45; word-break: keep-all; }
.project-domain { margin-top: 11px; overflow-wrap: anywhere; }
.project-arrow { display: grid; place-items: center; align-self: start; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; color: #304e38; font-size: 17px; }
.project-card:hover .project-arrow { border-color: #c3d9af; background: #e9f2dc; }
.shortcuts-list { display: grid; gap: 7px; }
.shortcuts-list a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; min-height: 51px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 14px; font-weight: 680; }
.shortcut-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 7px; background: #ecefeb; font-family: Arial, sans-serif; font-size: 17px; font-weight: 750; }
.google-icon { background: #e7edf9; color: #2855a3; }
.youtube-icon { background: #f6e7e2; color: #8a3028; }
.youtube-icon::after { width: 9px; height: 11px; clip-path: polygon(0 0, 100% 50%, 0 100%); background: currentColor; content: ""; }
.wiki-icon { color: #343d38; font-family: Georgia, serif; }
.shortcut-arrow { color: var(--muted); font-size: 15px; }

.empty-results { grid-column: 1 / -1; padding: 27px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.empty-results h2 { font-size: 20px; }
.empty-results p { margin-top: 7px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.empty-results button { margin-top: 12px; min-height: 40px; padding: 0 12px; border-radius: 7px; background: #e9efdf; font-size: 13px; font-weight: 750; }
.empty-results button:hover { background: #dbe8d0; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 39px; min-height: 65px; padding-bottom: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.site-footer a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.account-header { grid-template-columns: 1fr auto; }
.account-logout { display: inline-flex; align-items: center; min-height: 40px; color: var(--muted); font-size: 14px; font-weight: 650; }
.account-logout:hover { text-decoration: underline; text-underline-offset: 5px; }
.account-panel { width: min(100%, 480px); margin: clamp(32px, 8vw, 92px) auto 0; padding: clamp(24px, 5vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.account-panel h1 { font-size: 30px; letter-spacing: -.045em; }
.account-panel .login-link { margin-top: 20px; min-height: 44px; }

@media (max-width: 820px) {
  .shell { width: calc(100% - 40px); }
  .portal-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .intro { padding-top: 22px; }
  .search-panel { padding: 23px; }
  .directory { padding-top: 28px; row-gap: 26px; }
  .directory:has(> #projects[hidden]) > #shortcuts { grid-column: 1; }
  .site-footer { margin-top: 28px; }
}

@media (max-width: 510px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { min-height: 66px; gap: 10px; grid-template-columns: auto 1fr auto; }
  .wordmark { gap: 6px; font-size: 23px; }
  .brand-mark { width: 25px; height: 25px; }
  .site-nav { justify-content: center; gap: 13px; }
  .site-nav a { font-size: 12px; }
  .header-actions { gap: 6px; }
  .search-trigger { padding: 7px 9px; }
  .header-actions .login-link { padding-inline: 10px; }
  .account-header { grid-template-columns: 1fr auto; }
  .search-trigger kbd { display: none; }
  .search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .hero-image { aspect-ratio: auto; }
  .hero p { font-size: 13px; }
  .search-panel { padding: 20px; }
  .project-card { grid-template-columns: 66px 1fr auto; gap: 9px; min-height: 123px; padding: 8px; }
  .project-art { min-height: 95px; }
  .project-art > span { font-size: 42px; }
  .project-copy p { font-size: 12px; }
  .project-domain { margin-top: 6px; font-size: 11px; }
  .project-arrow { width: 26px; height: 26px; font-size: 14px; }
}

@media (max-width: 360px) {
  .header-inner:has(.site-nav) { min-height: 0; grid-template-columns: 1fr auto; gap: 0 10px; padding-top: 10px; }
  .header-inner:has(.site-nav) .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
}
