/* OMEH homepage v1 — self-contained, no framework or JavaScript needed. */
@font-face {
  font-family: 'OMEH Sans';
  src: url('fonts/noto-sans-regular.woff') format('woff');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'OMEH Sans';
  src: url('fonts/noto-sans-bold.woff') format('woff');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --background: #090b0c;
  --foreground: #f8f7f3;
  --muted: #e0dfdf;
  --lime: #c5f36b;
  --purple: #bb91ed;
  --amber: #ffd16a;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 280px; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: 'OMEH Sans', 'Avenir Next', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { color: var(--background); background: var(--lime); }
img { display: block; max-width: 100%; }
a { color: inherit; }
.page {
  width: min(100% - 72px, 1480px);
  margin-inline: auto;
  padding-block: 24px 30px;
}
.masthead {
  display: flex;
  justify-content: center;
  margin-block: 0 28px;
}
.brand { width: min(650px, 55vw); height: auto; }
.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.resource { min-width: 0; --accent: var(--purple); --border: #534563; }
.resource--amber { --accent: var(--amber); --border: #5b5140; }
.resource--lime { --accent: var(--lime); --border: #505a3f; }
.resource-card {
  position: relative;
  display: block;
  aspect-ratio: 0.68;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--border);
  border-radius: 19px;
  background: #17151a;
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.resource-photo {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center;
  transition: transform 400ms ease;
}
.resource-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7,8,10,.15) 0%, transparent 30%, rgba(7,8,10,.03) 52%, rgba(7,8,10,.65) 77%, rgba(7,8,10,.98) 100%);
}
.resource-label {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  max-width: calc(100% - 36px);
  border-radius: 100px;
  padding: 10px 17px;
  background: var(--accent);
  color: #111315;
  font-size: clamp(.61rem, .83vw, .81rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .085em;
  text-transform: uppercase;
}
.resource-bottom {
  position: absolute;
  inset-inline: 22px;
  bottom: 25px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 9px;
}
.resource-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.25vw, 2.3rem);
  line-height: 1.07;
  letter-spacing: -.055em;
  font-weight: 700;
  text-wrap: balance;
}
.resource-arrow {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #090b0c;
  transition: transform 180ms ease;
}
.resource-arrow svg { width: 30px; height: 30px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.resource-description {
  margin: 16px 16px 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.55;
  letter-spacing: .005em;
}
.resource-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
  border-color: var(--accent);
}
@media (hover: hover) and (pointer: fine) {
  .resource-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.35); }
  .resource-card:hover .resource-photo { transform: scale(1.035); }
  .resource-card:hover .resource-arrow { transform: translateX(3px); }
}
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 42px;
  font-size: .95rem;
  letter-spacing: .2em;
}
.footer-dot { color: var(--lime); letter-spacing: 0; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 10;
  left: 16px;
  top: 12px;
  transform: translateY(-200%);
  padding: 12px 18px;
  border-radius: 8px;
  color: #111315;
  background: var(--lime);
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }
/* Two columns on tablets. */
@media (max-width: 1099px) {
  .page { width: min(100% - 48px, 860px); }
  .brand { width: min(610px, 75vw); }
  .masthead { margin-bottom: 28px; }
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 36px; }
  .resource-card { aspect-ratio: .82; }
  .resource-label { font-size: .75rem; }
  .resource-title { font-size: clamp(1.65rem, 3.4vw, 2.25rem); }
  .resource-description { font-size: 1.05rem; margin-inline: 10px; }
}
/* A clear single column on phones, without sideways scrolling. */
@media (max-width: 599px) {
  .page { width: min(100% - 32px, 430px); padding-block: 18px 30px; }
  .brand { width: 100%; }
  .masthead { margin-bottom: 24px; }
  .resource-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .resource-card { aspect-ratio: .9; }
  .resource-label { top: 16px; left: 16px; padding: 10px 14px; font-size: .7rem; }
  .resource-bottom { inset-inline: 20px; bottom: 22px; }
  .resource-title { font-size: clamp(1.65rem, 7.5vw, 2.15rem); }
  .resource-arrow { flex-basis: 48px; width: 48px; height: 48px; }
  .resource-description { margin: 13px 7px 0; font-size: 1rem; line-height: 1.6; }
  .footer { font-size: .78rem; letter-spacing: .12em; gap: 10px; margin-top: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
