/* The same paper, ink, and lettering as the traffic and pylon reports. */
:root {
  color-scheme: light;
  --paper: #fffbef;
  --ink: #304b83;
  --muted: #67728b;
  --blue: #355ac0;
  --orange: #d55231;
  --yellow: #ffda62;
  --line: #bec6d6;
  --playful: "Chewy", system-ui, sans-serif;
}

body {
  background-color: var(--paper);
  background-image: radial-gradient(#5472ba16 .8px, transparent .8px);
  background-size: 19px 19px;
  color: var(--ink);
  font: 15px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
h1, h2, h3 { font-family: var(--playful); font-weight: 400; }
h2 { font-size: 39px; line-height: 1.15; }
a { color: inherit; text-underline-offset: 4px; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }
.page-width { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 20px; padding: 12px; background: #fff; z-index: 10; }
.skip-link:focus { top: 12px; }

.site-header { display: flex; align-items: center; gap: 20px; padding-block: 22px 8px; }
.home-link { display: block; flex: 0 0 80px; transform: rotate(-5deg); }
.jamie-logo { width: 80px; height: auto; }
.site-note { font: 16px/1.25 var(--playful); transform: rotate(-3deg); }
.header-link { margin-left: auto; font: 18px var(--playful); text-decoration-style: wavy; }
.header-link span { display: inline-block; margin-left: 9px; font-size: 25px; }
.header-link:hover, .intro-link:hover { color: var(--orange); }

.home-intro { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 70px; padding: 45px 65px 55px; }
.intro-content { position: relative; }
.eyebrow { color: var(--orange); font: 19px/1.4 var(--playful); }
.home-intro .eyebrow { font-size: 16px; }
.location-mark { font-family: system-ui, sans-serif; margin-right: 4px; }
h1 { font-size: clamp(64px, 7.7vw, 94px); line-height: 1.02; margin: 20px 0 25px; transform: rotate(-2deg); }
.title-small { display: block; color: var(--blue); font-size: .54em; margin-bottom: 5px; }
.title-main { display: inline-block; color: var(--orange); text-shadow: 2px 3px 0 #ffd591; }
.title-dot { display: inline-block; transform: rotate(12deg); color: var(--blue); margin-left: 4px; }
.intro-copy { font: 24px/1.35 var(--playful); }
.intro-detail { max-width: 345px; margin-top: 14px; color: var(--muted); font-size: 14px; }
.intro-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 25px; font: 18px/1.4 var(--playful); text-decoration-style: wavy; }
.intro-link span { font: 30px/1 system-ui, sans-serif; }
.portrait-wrap { position: relative; width: 100%; max-width: 290px; justify-self: center; }
.home-portrait { position: relative; padding: 12px 12px 17px; background: #fff; border: 1px solid #d9dce2; box-shadow: 4px 6px 0 #4e679f16, 0 3px 13px #2d447c12; transform: rotate(4deg); }
.home-portrait::before { content: ""; position: absolute; z-index: 1; left: calc(50% - 42px); top: -13px; width: 84px; height: 28px; background: #f4d2aeaa; transform: rotate(-10deg); }
.home-portrait img { width: 100%; height: auto; }
.home-portrait figcaption { margin-top: 12px; text-align: center; font: 19px/1.3 var(--playful); }
.hero-doodle { position: absolute; pointer-events: none; line-height: 1; }
.doodle-sun { left: -53px; top: 10px; z-index: 1; color: #e8ad26; font-size: 76px; transform: rotate(-14deg); }
.doodle-star { right: -32px; bottom: 9px; z-index: 1; color: #a691d4; font-size: 62px; transform: rotate(12deg); }

.reports-section { scroll-margin-top: 24px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding-inline: 12px; margin-bottom: 18px; }
.section-heading .eyebrow { transform: rotate(-4deg); width: fit-content; margin-bottom: 5px; }
.handwritten-note { padding-right: 14px; font: 19px/1.25 var(--playful); transform: rotate(4deg); }
.handwritten-note span { display: inline-block; margin-left: 8px; font: 30px/1 system-ui, sans-serif; }
.home-links { display: flex; gap: 24px; padding-block: 12px 27px; border-bottom: 2px dashed var(--line); }
.home-shortcut { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 20px 12px; border: 2px solid transparent; border-radius: 30px 44px 27px 38px; color: var(--ink); text-decoration: none; text-align: center; transition: transform .18s ease, background-color .18s ease; }
a.home-shortcut:hover { background: #fff0b6; transform: translateY(-5px) rotate(-2deg); }
a.home-shortcut:hover .home-shortcut__title { text-decoration: underline wavy; }
.home-shortcut__icon { width: 96px; height: 96px; margin-bottom: 13px; }
.home-shortcut__title { font: 27px/1.25 var(--playful); }
.home-shortcut__title > span { display: inline-block; color: var(--orange); font: 23px/1 system-ui, sans-serif; }
.home-shortcut__detail { margin-top: 7px; color: var(--muted); font-size: 12px; }
.home-shortcut[aria-disabled="true"] { color: var(--muted); }
.home-shortcut[aria-disabled="true"] .home-shortcut__icon { filter: grayscale(.85); opacity: .6; }
.home-shortcut__status { margin-top: 9px; padding: 3px 11px; border: 1px dashed #a4aba9; border-radius: 15px 11px 14px 10px; color: var(--muted); font-size: 10px; transform: rotate(-3deg); }

.ant-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; max-width: 850px; margin: 56px auto; padding-inline: 20px; }
.ant-note { position: relative; padding: 30px; background: #fff0a9; box-shadow: 4px 5px 0 #ddc56a4d; transform: rotate(-3deg); }
.ant-note::before { content: ""; position: absolute; left: calc(50% - 38px); top: -13px; width: 76px; height: 27px; background: #c9dcf0bd; transform: rotate(6deg); }
.ant-note h2 { margin: 9px 0 15px; }
.ant-note > p:last-of-type { max-width: 245px; font-size: 14px; }
.ant-note-arrow { position: absolute; right: -32px; top: 80px; color: var(--blue); font: 68px/1 system-ui, sans-serif; transform: rotate(-8deg); }
.home-page .ant-dial-container { width: 100%; min-width: 0; margin: 0; padding: 12px 0; }
.home-page .ant-dial-title { color: var(--ink); font-size: 31px; margin-bottom: 0; }
.home-page .ant-dial-phrase-external { min-height: 26px; margin: 8px 0 0; color: var(--muted); font-size: 17px; font-style: normal; }
.home-page .ant-dial-percentage-external { margin: 0; font-size: 46px; font-weight: 400; }
.home-page .ant-dial-timestamp { fill: var(--muted); opacity: 1; }
.home-page #public-ant-dial { width: min(280px, 100%); }
.home-page .ant-dial-svg { width: 100%; height: auto; }
.home-page .ant-dial-container:hover .ant-dial-title { color: var(--ink); }
.home-page .ant-dial-container:hover .ant-dial-svg { transform: none; filter: drop-shadow(0 2px 4px #304b831a); }
.home-page .tide-art { margin: 0 auto 45px; }

.jays-corner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 0 20px 35px; }
.jays-corner > div > p:last-child { margin-top: 5px; font: 25px/1.3 var(--playful); }
.jays-corner-link { display: inline-flex; align-items: center; gap: 20px; padding: 10px 22px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 41% 35% 42% 29% / 19% 24% 20% 25%; box-shadow: 3px 3px 0 var(--ink); text-decoration: none; font: 23px/1.4 var(--playful); transform: rotate(2deg); }
.jays-corner-link:hover { background: #ffe790; transform: rotate(-2deg); }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 2px dashed #bfc9df; padding-block: 24px 30px; color: var(--muted); }
.site-footer > span { color: var(--ink); font: 16px var(--playful); }
.visitor-counter-content { display: flex; align-items: center; gap: 12px; }
.visitor-counter-label { font-size: 11px; }
.visitor-counter-digits { display: flex; gap: 3px; }
.visitor-digit { display: grid; place-items: center; width: 21px; height: 28px; border: 1px solid #bdc9e1; border-radius: 4px 3px 5px 3px; background: #e8edfa; color: var(--ink); font: 16px/1 var(--playful); font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .page-width { width: calc(100% - 48px); }
  .home-intro { gap: 40px; padding: 45px 25px 50px; }
  h1 { font-size: 72px; }
  .portrait-wrap { max-width: 245px; }
  .doodle-sun { left: -28px; font-size: 58px; }
  .doodle-star { right: -22px; font-size: 49px; }
  .home-links { gap: 8px; }
  .home-shortcut__title { font-size: 25px; }
  .ant-section { gap: 40px; }
}

@media (max-width: 650px) {
  .page-width { width: calc(100% - 36px); }
  .site-header { gap: 12px; padding-block: 20px 16px; }
  .home-link { flex-basis: 65px; }
  .jamie-logo { width: 65px; }
  .site-note { display: none; }
  .header-link { font-size: 16px; }
  .home-intro { grid-template-columns: 1fr; gap: 35px; padding: 16px 8px 42px; text-align: center; }
  .home-intro .eyebrow { font-size: 14px; }
  h1 { font-size: clamp(60px, 14vw, 80px); margin: 15px 0 22px; }
  .intro-copy { font-size: 22px; }
  .intro-detail { margin: 12px auto 0; max-width: 310px; font-size: 13px; }
  .intro-link { margin-top: 18px; font-size: 16px; }
  .portrait-wrap { max-width: 215px; }
  .home-portrait { padding: 10px 10px 14px; transform: rotate(3deg); }
  .home-portrait figcaption { font-size: 18px; }
  .doodle-sun { left: -37px; top: 10px; }
  .doodle-star { right: -29px; }
  h2 { font-size: 30px; }
  .section-heading { gap: 12px; padding-inline: 4px; margin-bottom: 8px; }
  .section-heading .eyebrow { font-size: 17px; }
  .handwritten-note { padding-right: 0; font-size: 15px; }
  .handwritten-note span { font-size: 23px; margin-left: 3px; }
  .home-links { flex-direction: column; gap: 5px; padding-block: 8px 20px; }
  .home-shortcut { display: grid; grid-template-columns: 76px 1fr; gap: 4px 18px; padding: 14px 10px; text-align: left; align-items: start; }
  .home-shortcut__icon { grid-row: span 3; width: 76px; height: 76px; margin: 0; }
  .home-shortcut__title { align-self: end; font-size: 25px; }
  .home-shortcut__detail { margin: 0; }
  .home-shortcut__status { justify-self: start; margin-top: 2px; }
  .ant-section { grid-template-columns: 1fr; gap: 25px; padding-inline: 8px; margin: 38px auto; }
  .ant-note { width: 100%; max-width: 350px; justify-self: center; padding: 25px; }
  .ant-note h2 { font-size: 34px; }
  .ant-note-arrow { right: 18px; top: 82px; font-size: 57px; transform: rotate(60deg); }
  .ant-note > p:last-of-type { max-width: 210px; font-size: 13px; }
  .home-page .ant-dial-container { justify-self: center; }
  .home-page .ant-dial-title { font-size: 29px; }
  .home-page .tide-art { margin-bottom: 32px; }
  .jays-corner { flex-direction: column; align-items: flex-start; gap: 19px; padding: 0 12px 32px; }
  .jays-corner .eyebrow { font-size: 17px; }
  .jays-corner > div > p:last-child { font-size: 23px; }
  .site-footer { flex-wrap: wrap; gap: 15px; }
}

@media (max-width: 370px) {
  .handwritten-note { display: none; }
  .home-shortcut__title { font-size: 20px; }
  .home-shortcut__title > span { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
