@charset "UTF-8";

:root {
	--ink: #171817;
	--muted: #777a75;
	--paper: #fff;
	--white: #fff;
	--line: #e8e8e5;
	--gray: #f7f7f5;
	--am-hr-border: 1px solid var(--line);
	--red: #cc4b3b;
	--mono: "SFMono-Regular", Consolas, monospace;
	--sans: "Helvetica Neue", Arial, sans-serif;
	--page-width: min(50rem, 90%);
	--text-s: .9rem;
	--text-xs: .75rem;
	--header-height: 80px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc( var(--header-height) + 40px ); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: var(--text-s); -webkit-font-smoothing: antialiased; }
body p.am-block { color:var(--muted); line-height: 1.7; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
img { display: block; max-width: 100%; height: auto; }
::selection { color: var(--white); background: var(--red); }
.skip-link { position: absolute; z-index: 20; top: 1rem; left: 1rem; padding: .7rem 1rem; color: var(--white); background: var(--ink); transform: translateY(-150%); transition: transform 0.2s ease; }
.skip-link:focus, .skip-link:focus-visible { transform: translateY(0); outline: 2px solid var(--white); outline-offset: 2px; }

h1 { font-size: clamp(1.8rem, 4vw, 2rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1rem, 2.5vw, 1.5rem); }
h5 { font-size: clamp(.875rem, 2vw, 1.25rem); }
h6 { font-size: clamp(.75rem, 1.5vw, 1rem); }

main a { text-decoration: underline; }
main a:hover { color: var(--red); }

.am-block {  max-width: none; margin: 0;}
.am-block.small { max-width: 60rem; }
.am-block hr { margin-top: 20px; padding-top:20px; }
figure.am-block { margin-bottom: 2rem; }

header { position:sticky; top:0; border-bottom: 1px solid var(--line); background: white; }
header .header__container { display: flex; flex-direction: column; }
header .inside { width: var(--page-width); height: var(--header-height);   margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem;}

.logo { display: inline-flex; align-items: normal; gap: .65rem; flex-shrink: 0; }
.logo img { display: block; height: auto; }
.logo .monogram { display: none; width: clamp(42px, 4.2vw, 50px); }
.wordmark { width: clamp(190px, 19vw, 220px); }
main { width: var(--page-width); min-height: 70vh; margin: auto; }
main .inside { padding: 4rem 0; }
#hero { padding: clamp(5rem, 11vw, 9rem) 0 clamp(4rem, 7vw, 6rem);  }
#hero .inside { width: var(--page-width); margin: auto; }
#hero h1 { max-width: 850px; margin: 0; font-size: clamp(3.5rem, 8.5vw, 7.5rem); font-weight: 500; letter-spacing: -.085em; line-height: .98; }

footer { padding: 2rem 0; margin: 0; border-top: 1px solid var(--line); }
footer .inside { width: var(--page-width); margin: auto; display: grid; grid-template-columns: 1fr auto; grid-column: 1 / -1; align-items: center; gap: 1.5rem; color: var(--muted); font: 500 .65rem var(--mono);  }
footer nav { display: flex; justify-content: flex-end; gap: 1.2rem; }

.divider-marks { padding: 2rem 0; margin: 2rem 0;  display: flex; width: 100%; grid-column: 1 / -1; justify-content: center;  align-items: center; gap: 3px;  }
.divider-marks.border { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.divider-marks span { width: 9px; height: 9px; background: #d84a40; }
.divider-marks span:nth-child(2) { background: #25845a; }
.divider-marks span:nth-child(3) { background: #3977c5; }

#wrapper > .divider-marks { margin-bottom: 6rem; }

.heading-period { color: var(--red); }
.heading-dots { display: inline-flex; align-items: baseline; gap: .04em; margin-left: .14em; white-space: nowrap; }
.heading-dots i { display: inline-block; width: .11em; height: .11em; border-radius: 0; background: #d84a40; }
.heading-dots i:nth-child(2) { background: #25845a; }
.heading-dots i:nth-child(3) { background: #3977c5; }

/* Burger Button */
.burger-btn { display: none; width: 44px; height: 44px; padding: 0; background: none; border: none; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; margin-left: auto; flex-shrink: 0; transition: all .2s ease; }
.burger-btn:hover { opacity: 0.8; }
.burger-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.burger-bar { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 1px; transition: all .3s cubic-bezier(.2, .7, .2, 1); }
.burger-btn[aria-expanded="true"] .burger-bar--top { transform: translateY(7px) rotate(45deg); }
.burger-btn[aria-expanded="true"] .burger-bar--middle { opacity: 0; }
.burger-btn[aria-expanded="true"] .burger-bar--bottom { transform: translateY(-7px) rotate(-45deg); }

/* Desktop Navigation - One Page Scrolling */
.nav--desktop { display: flex; align-items: center; justify-content: flex-end; gap: clamp(1rem, 3vw, 2.5rem); font-size: .85rem; font-weight: 500; }
.nav__link, .nav__link.contact { transition: color .2s ease; position: relative; }
.nav__link:hover, .nav__link.contact:hover { color: var(--red); }
.nav__link:focus-visible, .nav__link.contact:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 2px; }
.nav__link.contact { display: inline-flex; align-items: center; gap: .5rem; }
.nav__link.contact span { color: var(--red); font-size: 1rem; }

/* Mobile Navigation */
.nav--mobile { position: relative; width: 100%; background: var(--paper); border-top: 1px solid var(--line); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s cubic-bezier(.2, .7, .2, 1), opacity .35s ease-out; }
.nav--mobile-active { max-height: 100vh; opacity: 1; }

.nav-mobile__wrapper { box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); padding: 1rem 0; display: flex; flex-direction: column; gap: 0; }
.nav-mobile__link { display: block; padding: 0.75rem 1.5rem; font-size: .95rem; font-weight: 500; color: var(--ink); transition: color .2s ease, background .2s ease; text-decoration: none; border-left: 3px solid transparent; }
.nav-mobile__link:hover { color: var(--red); background: rgba(204, 75, 59, 0.04); }
.nav-mobile__link:active { background: rgba(204, 75, 59, 0.08); }
.nav-mobile__link:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.nav-mobile__link.contact { color: var(--red); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 0.5rem; border-left: none; }

/* Mobile Responsive Breakpoint */
@media (max-width: 768px) {
	.burger-btn { display: flex; }
	.nav--desktop { display: none; }
}


.border-top { padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--line); }
.border-bottom { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 20px; }
.no-border, .no-border * {border:0 !important;}

.grid-25-75 > am-layout-section { display: grid; grid-template-columns: .25fr .75fr; gap: 1rem;}
.grid-25-25-1 > am-layout-section { display: grid; grid-template-columns: .25fr .25fr 1fr; gap: 1rem;}
.grid-block .entry:first-child { padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--line); }
.grid-block .entry {  padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line);  }

.font-mono { font-family: var(--mono); }
.date { color: var(--muted); font: 500 .7rem var(--mono); letter-spacing: .03em; white-space: nowrap; }
.text-s { font-size: var(--text-s); }
.text-xs { font-size: var(--text-xs); }
.text-gray { color:var(--muted); }

.bg-gray{ background: var(--gray); }
.bg-white{ background: white;}

@media (max-width: 768px) 
{
	header .inside { height: var(--header-height); }
	html { scroll-padding-top: calc(var(--header-height) + 250px); }
	
	.am-block {word-break: break-word;}
}

@media (prefers-reduced-motion: reduce) 
{
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; }
	.nav--mobile, .burger-bar { transition: none !important; }
}
