:root {
  color-scheme: light;
  --navy: #000066;
  --blue: #002e8c;
  --coral: #ff6666;
  --pale: #f0f0f0;
  --content-width: 1024px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--blue); background: #fff; font-family: "Roboto Slab", Georgia, serif; font-size: 16px; line-height: 1.5; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--coral); text-decoration: none; transition: color .2s ease; }
a:hover, a:focus-visible { color: var(--blue); }
button, input { font: inherit; }

.site-header { height: 176px; background: #fff; }
.site-header__inner { width: min(100%, var(--content-width)); height: 100%; margin: 0 auto; display: grid; grid-template-columns: 33.333% 66.667%; align-items: center; }
.site-header__logo { width: 120px; margin-left: 30px; }
.site-header__logo img { width: 120px; height: 80px; }
.site-header__logo:focus-visible { outline: 3px solid var(--coral); outline-offset: 5px; }
.site-header__claim { margin: 0; color: var(--blue); font: 400 18px/22px Arial, sans-serif; }
.site-header__claim { transform: translateY(12px); }
.site-header__claim span { color: var(--coral); font-weight: 700; }
.site-header__claim strong { color: var(--navy); font-weight: 700; }

@keyframes fade-in-left {
  from { opacity: 0; transform: translate3d(-100%, 0, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .site-header__logo { animation: fade-in-left .75s both; }
  .site-header__claim, .fade-in-visible { animation: fade-in 1.25s both; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a { transition: none; }
}

.hero { position: relative; height: 321px; background: var(--navy); }
.hero::before { content: ""; position: absolute; z-index: 0; inset: 0; background: var(--hero-pattern) repeat; opacity: .15; pointer-events: none; }
.hero__inner { position: relative; z-index: 1; width: min(100%, 1000px); height: 100%; margin: 0 auto; }
.hero__title { position: absolute; top: 80px; left: 25px; width: 52%; margin: 0; color: var(--pale); font: 500 60px/70px "Roboto", Arial, sans-serif; }
.hero__title span { color: var(--coral); }
.hero__portrait { position: absolute; top: 0; left: 48.9%; width: 376px; max-width: none; height: auto; }

.intro { margin: 75px auto 0; }
.intro__inner { width: min(calc(100% - 40px), 950px); margin: 0 auto; font: 400 22px/34px "Roboto", Arial, sans-serif; }
.intro__inner p { max-width: 455px; margin: 0 0 20px; }
.intro__lead { font-weight: 500; }

.projects { margin: 155px auto 75px; padding: 0 50px; }
.projects__grid { width: min(100%, 1280px); margin: 0 auto; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: center; gap: 34px; }
.projects__grid a { display: flex; align-items: center; justify-content: center; }
.projects__grid img { width: 100%; max-height: 64px; object-fit: contain; }

.contact-layout { width: min(calc(100% - 60px), 1000px); margin: 124px auto 104px; display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 60px; }
.contact-form { padding-left: 30px; }
.contact-form__field { margin: 0 0 25px; }
.contact-form label { display: block; margin: 0 0 2px; color: var(--navy); font: 500 18px/28px "Roboto", Arial, sans-serif; }
.contact-form label span { color: var(--coral); }
.contact-form input { display: block; width: 100%; height: 39px; padding: 7px 12px; color: var(--navy); background: #fff; border: 1px solid var(--navy); border-radius: 0; }
.contact-form input:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.contact-form__submit { min-height: 48px; margin-top: 23px; padding: 10px 16px; color: #fff; background: var(--coral); border: 0; border-radius: 999px; font: 500 18px/28px "Roboto", Arial, sans-serif; cursor: pointer; }
.contact-form__submit:hover, .contact-form__submit:focus-visible { background: var(--navy); }
.contact-info { padding-top: 38px; }
.contact-info p { margin: 0 0 20px; color: var(--navy); font: 500 34px/44px "Roboto", Arial, sans-serif; }
.contact-info p a { color: var(--coral); }
.contact-info__social { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; background: #0876b7; border-radius: 4px; }
.contact-info__social img { width: 30px; height: 30px; }

.legal-copy { width: min(calc(100% - 60px), 964px); margin: 90px auto 100px; color: var(--blue); font: 400 16px/1.5 "Roboto Slab", Georgia, serif; overflow-wrap: anywhere; }
.legal-copy h2 { margin: 28px 0 14px; color: var(--navy); font: 500 50px/58px "Roboto Slab", Georgia, serif; letter-spacing: -.4px; }
.legal-copy h3 { margin: 24px 0 12px; color: var(--navy); font: 800 26px/32px "Roboto Slab", Georgia, serif; }
.legal-copy h4 { margin: 20px 0 10px; color: var(--blue); font: 500 24px/1.2 "Roboto Slab", Georgia, serif; }
.legal-copy h5, .legal-copy h6 { margin: 20px 0 10px; color: var(--navy); font: 400 18px/22px Arial, sans-serif; }
.legal-copy p { margin: 0 0 14px; }
.legal-copy ul, .legal-copy ol { padding-left: 28px; }
.legal-copy li { margin: 0 0 8px; }

.author-archive, .not-found { width: min(calc(100% - 60px), 1024px); min-height: 400px; margin: 70px auto 100px; }
.author-archive h1, .not-found h1 { color: var(--navy); font: 500 50px/1.2 "Roboto", Arial, sans-serif; }
.not-found p { font: 400 20px/1.5 "Roboto", Arial, sans-serif; }

.site-footer { color: var(--pale); background: var(--navy); }
.site-footer__inner { width: min(100%, 1040px); min-height: 226px; margin: 0 auto; padding: 48px 0 44px; display: grid; grid-template-columns: 1.15fr .8fr 1.2fr; gap: 40px; }
.site-footer h2 { margin: 0 0 16px; color: var(--pale); font: 500 14px/14px "Roboto", Arial, sans-serif; letter-spacing: 2.1px; }
.footer-navigation ul { list-style: none; margin: 0; padding: 0; }
.footer-navigation li { margin: 0; }
.footer-navigation a { color: var(--pale); font: 500 18px/24px "Roboto", Arial, sans-serif; letter-spacing: 1.1px; text-transform: uppercase; }
.footer-navigation a:hover, .footer-navigation a:focus-visible, .footer-navigation a[aria-current="page"] { color: var(--coral); }
.footer-social__icons { display: flex; align-items: center; gap: 16px; }
.footer-social__icons img { width: 30px; height: 30px; }
.footer-contact { font-style: normal; }
.footer-contact p { margin: 0; color: var(--pale); font: 400 16px/23px "Roboto Slab", Georgia, serif; }

.cookie-consent { position: fixed; z-index: 1000; right: 10px; bottom: 10px; width: min(656px, calc(100vw - 20px)); max-height: calc(100vh - 20px); overflow: auto; padding: 15px 20px 25px; color: #222; background: #fff; border-radius: 12px; box-shadow: 0 10px 20px rgba(0, 0, 0, .19), 0 6px 6px rgba(0, 0, 0, .23); font: 400 12px/1.5 "Roboto Slab", Georgia, serif; }
.cookie-consent[hidden], .cookie-consent-reopen[hidden] { display: none; }
.cookie-consent__header { min-height: 25px; margin-bottom: 17px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.cookie-consent__header h2 { grid-column: 2; margin: 0; color: #222; font: 500 15px/1.5 "Roboto Slab", Georgia, serif; text-align: center; }
.cookie-consent__close { grid-column: 3; justify-self: end; width: 22px; height: 22px; padding: 0; color: #111; background: #fff; border: 0; font: 700 22px/20px Arial, sans-serif; cursor: pointer; }
.cookie-consent__message { width: 100%; max-width: 484px; margin: 0 0 25px; overflow-wrap: anywhere; }
.cookie-consent__buttons { display: flex; gap: 10px; }
.cookie-consent__buttons button { min-width: 0; min-height: 45px; flex: 1 1 0; padding: 10px 8px; border: 1px solid #f2f2f2; border-radius: 6px; color: #222; background: #f9f9f9; font: 500 15px/20px "Roboto", Arial, sans-serif; letter-spacing: 4.2px; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.cookie-consent__accept { flex: 1.25 1 0 !important; }
.cookie-consent__deny { flex: 1 1 0 !important; }
.cookie-consent__settings-button, .cookie-consent__save { flex: 2.25 1 0 !important; }
.cookie-consent__buttons .cookie-consent__accept { color: #fff; background: #1e73be; border-color: #1e73be; }
.cookie-consent__buttons button:hover, .cookie-consent__buttons button:focus-visible { outline: 2px solid #245fcc; outline-offset: 2px; }
.cookie-consent__settings { max-height: 38vh; overflow-y: auto; margin-bottom: 12px; }
.cookie-consent__settings[hidden] { display: none; }
.cookie-consent__settings details { margin-bottom: 8px; background: #f6f6f6; }
.cookie-consent__settings summary { padding: 10px; color: #222; font: 500 14px/21px "Roboto Slab", Georgia, serif; cursor: pointer; }
.cookie-consent__settings summary span, .cookie-consent__settings summary input { float: right; }
.cookie-consent__always-active { color: #2e7d32; }
.cookie-consent__settings p { margin: 0; padding: 0 10px 10px; }
.cookie-consent-reopen { position: fixed; z-index: 999; right: 40px; bottom: 0; padding: 12px 15px; color: #222; background: #fff; border: 0; border-radius: 8px 8px 0 0; box-shadow: 0 6px 15px rgba(0,0,0,.2); font: 500 16px "Roboto", Arial, sans-serif; cursor: pointer; }

@media (max-width: 1024px) {
  .hero { height: auto; min-height: 380px; overflow: hidden; }
  .hero__inner { width: 100%; height: auto; min-height: 380px; }
  .hero__title { top: 76px; left: 9.3%; width: 35%; }
  .hero__portrait { position: relative; top: auto; left: auto; width: 472px; margin-left: 46%; }
  .intro__inner { width: min(calc(100% - 60px), 950px); }
  .projects { padding: 0 30px; }
  .projects__grid { gap: 20px; }
  .site-footer__inner { padding-right: 50px; padding-left: 50px; }
}

@media (max-width: 767px) {
  .site-header { height: auto; }
  .site-header__inner { width: 100%; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: 32px 24px 24px; }
  .site-header__logo { flex: none; margin: 0 0 18px; }
  .site-header__claim { font-size: 18px; line-height: 21px; transform: none; }
  .hero { height: auto; }
  .hero__inner { width: 100%; height: auto; display: flex; flex-direction: column; }
  .hero__title { position: static; width: auto; min-height: 205px; padding: 30px 24px; font-size: clamp(38px, 11.5vw, 48px); line-height: 1.18; }
  .hero__portrait { position: static; width: 100%; max-width: 100%; height: auto; margin-left: 0; }
  .intro { margin: 36px auto 0; }
  .intro__inner { width: calc(100% - 40px); margin: 0 auto; font-size: clamp(18px, 5vw, 21px); line-height: 1.55; }
  .intro__inner p { max-width: none; margin-bottom: 18px; }
  .projects { margin: 58px auto 52px; padding: 0 20px; }
  .projects__grid { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
  .projects__grid a { width: 100%; min-height: 88px; padding: 8px; }
  .projects__grid img { width: min(100%, 150px); max-height: 68px; }
  .contact-layout { width: calc(100% - 40px); margin: 52px auto 72px; grid-template-columns: 1fr; gap: 42px; }
  .contact-form { padding-left: 0; }
  .contact-form__field { margin-bottom: 22px; }
  .contact-form label { margin-bottom: 6px; }
  .contact-form input { height: 48px; }
  .contact-form__submit { min-height: 52px; margin-top: 8px; }
  .contact-info { padding-top: 0; }
  .contact-info p { font-size: clamp(24px, 7vw, 28px); line-height: 1.35; }
  .legal-copy { width: calc(100% - 40px); margin-top: 42px; font-size: 16px; }
  .legal-copy h2 { font-size: 30px; line-height: 1.2; }
  .legal-copy h3 { font-size: 22px; line-height: 28px; }
  .legal-copy h4 { font-size: 20px; }
  .author-archive, .not-found { width: calc(100% - 40px); margin-top: 40px; }
  .author-archive h1, .not-found h1 { font-size: clamp(34px, 10vw, 42px); }
  .site-footer__inner { min-height: 0; padding: 40px 24px; grid-template-columns: 1fr; gap: 32px; }
  .footer-navigation a { display: inline-flex; min-height: 44px; align-items: center; }
  .cookie-consent { right: 0; bottom: 0; width: 100%; max-height: calc(100vh - 6px); padding: 15px 20px 20px; border-radius: 12px 12px 0 0; overflow-x: hidden; }
  .cookie-consent__message { max-width: none; }
  .cookie-consent__close { width: 44px; height: 44px; }
  .cookie-consent__buttons { flex-direction: column; }
  .cookie-consent__buttons button { flex: none; width: 100%; min-height: 48px; white-space: normal; letter-spacing: 2.5px; }
  .cookie-consent-reopen { display: block; right: 12px; bottom: 12px; min-height: 44px; }
}

@media (max-width: 360px) {
  .site-header__inner { padding-right: 20px; padding-left: 20px; }
  .hero__title { min-height: 188px; padding-right: 20px; padding-left: 20px; font-size: 38px; }
  .intro__inner, .legal-copy { width: calc(100% - 32px); }
  .projects { padding-right: 16px; padding-left: 16px; }
  .projects__grid { gap: 12px 10px; }
  .projects__grid a { min-height: 72px; padding: 6px; }
  .projects__grid img { width: min(100%, 120px); max-height: 56px; }
  .contact-layout, .author-archive, .not-found { width: calc(100% - 32px); }
  .cookie-consent { padding-right: 14px; padding-left: 14px; }
  .cookie-consent__buttons button { letter-spacing: 1.5px; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .contact-layout { width: calc(100% - 60px); grid-template-columns: 1fr 1fr; gap: 35px; }
  .contact-info p { font-size: 29px; line-height: 38px; }
  .site-footer__inner { gap: 20px; }
}
