/* Hallmark · shape: Portfolio Grid (user requested project feed) · genre: editorial · theme: Ink (deal 3/3, seed youtube-telegram-win-cfg-01a1·862fc7ff·2026-11-27·r0) · job: hire · draw: user specified gallery
 * hero: Banner · nav: edge-aligned wordmark and destinations · footer: contact colophon · imagery: real product screenshots · signature: project previews expand into their destination · ink: paper
 * axes: light/grotesk-sans/chromatic-teal · posture: restrained · contrast: inherited palette · baseline: established portfolio design · independent English copy · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R5 V4 · weakest: S, kept actual client screenshots instead of generic web mockups */
/* Hallmark · waive 22 · Ink theme uses hueless ink · Madison's bright gallery keeps the screenshot colours intact against neutral paper */
/* Hallmark · waive 83 · portfolio of the user's own website work · the requested feed is made of actual project screenshots */
/* Hallmark · user constraints: compact feed of three website projects without categories; no additional marketing sections. Onest supports Cyrillic. User-requested smooth navigation overrides Ink's still-motion preference. */
@import url("./tokens.css");
@import url("./base.css");
@import url("./fonts.css");

:root {
  --font-display: "Onest", ui-sans-serif, system-ui, sans-serif;
  --font-body: var(--font-display);
  --color-paper: oklch(99% 0.004 175);
  --color-paper-2: oklch(96.8% 0.006 175);
  --color-paper-3: oklch(93.5% 0.008 175);
  --color-rule: oklch(89% 0.007 175);
  --color-ink: oklch(20% 0.008 175);
  --color-ink-2: oklch(32% 0.008 175);
  --color-muted: oklch(48% 0.01 175);
  --color-accent: oklch(46% 0.105 173);
  --color-focus: oklch(46% 0.105 173);
  --color-accent-soft: oklch(94% 0.035 173);
  --color-accent-soft-ink: oklch(31% 0.065 173);
  --color-overlay: oklch(17% 0.008 175 / 0.32);
  --color-transparent: transparent;
  --container: 1480px;
  --gutter: 56px;
  --radius-card: 16px;
  --radius-control: 10px;
  --text-display: clamp(3.1rem, 6.3vw, 6.375rem);
  --tracking-display: -0.055em;
  --display-weight: 700;
}

html { scroll-behavior: smooth; }
body { font-synthesis: none; }
a, button { -webkit-tap-highlight-color: var(--color-transparent); }
a { text-decoration: none; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 5px; }
a:active { opacity: 0.75; }

.skip-link { position: fixed; top: var(--space-sm); left: var(--space-md); z-index: var(--z-tooltip); padding: var(--space-sm) var(--space-md); background: var(--color-ink); color: var(--color-paper); transform: translateY(-180%); }
.skip-link:focus-visible { transform: none; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 104px; gap: var(--space-lg); }
.wordmark { display: inline-flex; align-items: center; gap: var(--space-sm); min-height: 48px; font-size: var(--text-sm); font-weight: 600; white-space: nowrap; }
.wordmark-symbol { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-control); background: var(--color-accent-soft); color: var(--color-accent); font-size: 21px; font-weight: 700; letter-spacing: -0.075em; }
.site-header nav { display: flex; align-items: center; gap: var(--space-xl); }
.nav-link, .nav-contact { display: inline-flex; align-items: center; min-height: 48px; font-size: var(--text-sm); font-weight: 600; white-space: nowrap; }
.nav-contact { gap: var(--space-2xs); }
.nav-contact span { color: var(--color-muted); }
.nav-link:hover, .nav-contact:hover, .colophon a:hover { color: var(--color-accent); }

.intro { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: end; gap: var(--gap-columns); padding-block: var(--space-xl) var(--space-2xl); }
.intro h1 { line-height: 0.99; max-width: 12ch; }
.name-period { color: inherit; }
.intro-copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-lg); padding-bottom: var(--space-xs); }
.intro-lead { max-width: 30ch; font-size: var(--text-lead); line-height: 1.5; color: var(--color-ink-2); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; border: 1px solid var(--color-ink); border-radius: var(--radius-control); padding: var(--space-sm) var(--space-lg); font-size: var(--text-sm); font-weight: 600; white-space: nowrap; transition: transform var(--dur-short) var(--ease-out); }
.button-primary { background: var(--color-ink); color: var(--color-paper); }
.button-primary:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.button:active { transform: translateY(1px); opacity: 1; }

.gallery { padding-block: var(--space-xl) var(--space-2xl); }
.gallery-heading { display: flex; justify-content: space-between; align-items: end; gap: var(--space-lg); margin-bottom: var(--space-lg); }
.gallery-heading h2 { font-size: clamp(1.9rem, 2.7vw, 2.625rem); letter-spacing: -0.045em; }
.gallery-caption { padding-bottom: var(--space-2xs); font-size: var(--text-sm); color: var(--color-muted); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); align-items: start; }
.project { min-width: 0; }
.project-link { display: block; border-radius: var(--radius-card); }
.project-link:active { opacity: 1; }
.project-visual { position: relative; isolation: isolate; margin: 0; aspect-ratio: 16 / 10; border-radius: var(--radius-card); overflow: clip; background: var(--color-paper-3); transition: transform var(--dur-long) var(--ease-out); }
.project-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.flower-preview img { object-position: center top; }
.preview-action { position: absolute; inset: auto var(--space-md) var(--space-md) auto; display: inline-flex; align-items: center; min-height: 44px; padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); background: var(--color-paper); color: var(--color-ink); font-size: var(--text-sm); font-weight: 600; }
.project-link:hover .project-visual, .project-link:focus-visible .project-visual { transform: translateY(-4px); }
.project-link:hover .preview-action, .project-link:focus-visible .preview-action { opacity: 1; transform: none; }
.project-link[aria-busy="true"] { cursor: progress; }
.project-info { padding-block: var(--space-md) 0; }
.project-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-xs); }
.project-title-row h3 { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.035em; line-height: 1.25; }
.project-description { margin-top: var(--space-xs); font-size: var(--text-md); line-height: 1.5; color: var(--color-muted); }
.project-domain { display: block; margin-top: var(--space-sm); color: var(--color-muted); font-size: var(--text-xs); overflow-wrap: anywhere; }
.project-link:hover h3 { color: var(--color-accent); }

.contact-section { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--gap-columns); padding-block: var(--space-2xl) var(--space-lg); }
.contact-content h2 { font-size: clamp(2.5rem, 4.5vw, 4rem); }
.contact-content p { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
.contact-handle { display: flex; flex-direction: column; gap: var(--space-xs); min-height: 48px; }
.contact-platform { font-size: var(--text-sm); color: var(--color-muted); }
.contact-handle > :last-child { font-size: clamp(1.9rem, 3vw, 2.625rem); font-weight: 600; letter-spacing: -0.045em; color: var(--color-accent); }
.contact-handle:hover > :last-child { color: var(--color-ink); }
.colophon { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: var(--space-lg); min-height: 72px; margin-top: var(--space-xl); border-top: 1px solid var(--color-rule); font-size: var(--text-xs); color: var(--color-muted); }
.colophon a { display: inline-flex; align-items: center; min-height: 44px; }

.site-transition { position: fixed; inset: 0; z-index: var(--z-modal); background: var(--color-paper); pointer-events: none; }
.transition-frame { position: fixed; left: 0; top: 0; transform-origin: top left; background: var(--color-paper-3); overflow: clip; }
.transition-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

@media (max-width: 75rem) {
  :root { --gutter: 40px; --gap-columns: 24px; }
  .intro { gap: var(--space-xl); }
  .project-title-row { flex-wrap: wrap; }
}
@media (max-width: 60rem) {
  :root { --gutter: 24px; }
  .site-header { min-height: 88px; }
  .site-header nav { gap: var(--space-lg); }
  .nav-contact span { display: none; }
  .intro { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-lg); padding-block: var(--space-xl); }
  .intro h1 { font-size: clamp(2.8rem, 7.7vw, 4.75rem); }
  .intro-lead { font-size: 1rem; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--space-lg); }
  .project:last-child { grid-column: 1 / -1; }
  .project:last-child .project-link { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: var(--space-lg); }
  .project:last-child .project-info { padding: 0; }
  .gallery-caption { display: none; }
  .contact-section { padding-top: var(--space-xl); }
}
@media (max-width: 40rem) {
  :root { --gutter: 20px; --gap-columns: 20px; }
  .site-header { gap: var(--space-sm); min-height: 80px; }
  .wordmark { gap: var(--space-xs); }
  .wordmark > :last-child { display: none; }
  .site-header nav { gap: var(--space-lg); }
  .nav-link, .nav-contact { font-size: var(--text-sm); }
  .intro { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); padding-block: var(--space-lg) var(--space-xl); }
  .intro h1 { font-size: clamp(2.65rem, 11.8vw, 4.5rem); }
  .intro-copy { gap: var(--space-lg); padding: 0; }
  .intro-lead { max-width: 28ch; font-size: 1.0625rem; }
  .button { min-height: 48px; font-size: 0.9375rem; }
  .gallery { padding-top: var(--space-lg); padding-bottom: var(--space-xl); }
  .gallery-heading h2 { font-size: 1.875rem; }
  .project-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .project-title-row { flex-wrap: nowrap; }
  .project-title-row h3 { font-size: 1.1875rem; }
  .project-description { font-size: 0.9375rem; }
  .project:last-child { grid-column: auto; }
  .project:last-child .project-link { display: block; }
  .project:last-child .project-info { padding-block: var(--space-md) 0; }
  .contact-section { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); padding-top: var(--space-xl); }
  .contact-handle { gap: var(--space-2xs); }
  .contact-content h2 { font-size: 2.75rem; }
  .contact-handle > :last-child { font-size: 2.125rem; }
  .colophon { margin-top: var(--space-lg); }
}
@media (hover: none) {
  .preview-action { opacity: 1; transform: none; min-height: 36px; padding: var(--space-xs) var(--space-sm); font-size: var(--text-xs); }
}
@media (prefers-reduced-motion: no-preference) {
  .intro, .gallery { animation: arrive var(--dur-long) var(--ease-out) both; }
  .gallery { animation-delay: 70ms; }
}
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro, .gallery { animation: none; }
  .button, .project-visual, .preview-action { transition: none; }
  .project-link:hover .project-visual, .project-link:focus-visible .project-visual, .button:active { transform: none; }
}
