/* ==========================================================================
   The Tide Chart — "This is the Google Pixel Watch 5 — in every color"
   Static conversion of pixel-watch-design/The Tide Chart v3b (Split Hero)
   ========================================================================== */

/* -- Reset / base ---------------------------------------------------------- */

html,
body {
  margin: 0;
  padding: 0;
  background: #FFFFFF;
  color: #0C0E0F;
}

body {
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
}

a {
  color: #0C0E0F;
  text-decoration: none;
}

a:hover {
  color: #00A896;
  text-decoration: none;
}

::selection {
  background: #00A896;
  color: #FFFFFF;
}

img {
  max-width: 100%;
}

/* -- Shared layout helpers -------------------------------------------------- */

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* -- Masthead ---------------------------------------------------------------- */

.masthead {
  background: #FFFFFF;
  border-bottom: 1px solid #E8EAEA;
  position: sticky;
  top: 0;
  z-index: 50;
}

.masthead__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  color: #0C0E0F;
  display: flex;
  align-items: baseline;
  gap: 2px;
  flex-shrink: 0;
}

.logo__text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.logo__dot {
  width: 8px;
  height: 8px;
  background: #00A896;
  display: inline-block;
  border-radius: 1px;
}

.masthead nav {
  display: flex;
  gap: 26px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-wrap: wrap;
}

.masthead nav a {
  color: #4B5254;
}

.masthead nav a.is-active {
  color: #00A896;
}

.masthead__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.masthead__search {
  color: #4B5254;
  font-size: 13.5px;
  font-weight: 600;
}

/* -- Split hero ---------------------------------------------------------------- */

.hero {
  background: #F3F4F4;
  border-bottom: 1px solid #E8EAEA;
}

.hero__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 40px;
  align-items: center;
}

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-exclusive {
  background: #00A896;
  color: #051312;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 3px;
}

.hero__category {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6E7577;
}

.hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 18px 0 0;
}

.hero__standfirst {
  font-size: clamp(16px, 1.6vw, 18px);
  font-weight: 500;
  line-height: 1.55;
  color: #4B5254;
  margin: 16px 0 0;
}

.byline {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0C0E0F;
  color: #00E0C7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.byline__name {
  font-size: 14px;
  font-weight: 700;
}

.byline__name a {
  color: #0C0E0F;
  text-decoration: underline;
  text-decoration-color: #00A896;
  text-underline-offset: 3px;
}

.byline__role {
  font-weight: 500;
  color: #6E7577;
}

.byline__meta {
  font-size: 12.5px;
  color: #6E7577;
  margin-top: 2px;
}

.hero__figure {
  margin: 0;
}

.hero__image-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(12, 14, 15, 0.06), 0 12px 32px rgba(12, 14, 15, 0.08);
}

.hero__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__caption {
  font-size: 12.5px;
  color: #6E7577;
  padding: 10px 2px 0;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__caption-credit {
  color: #9AA1A3;
}

/* -- Trending strip ---------------------------------------------------------------- */

.trending {
  background: #FFFFFF;
  border-bottom: 1px solid #E8EAEA;
}

.trending__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 500;
}

.trending__label {
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #00A896;
  font-size: 11px;
}

.trending__inner a {
  color: #4B5254;
}

.trending__date {
  margin-left: auto;
  color: #9AA1A3;
  font-size: 12px;
}

/* -- Article ---------------------------------------------------------------- */

.article {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.article__body {
  max-width: 740px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.78;
  color: #26292B;
}

.article__body .article__lede {
  margin: 0;
  font-size: 20px;
  line-height: 1.65;
}

.article__body p {
  margin: 30px 0 0;
}

.article__body h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  margin: 52px 0 0;
  letter-spacing: -0.02em;
}

.article__body h2 + p {
  margin: 20px 0 0;
}

.credit-box {
  margin: 26px 0 0;
  border: 1px solid #BFE9E4;
  border-left: 4px solid #00A896;
  background: #EFFAF8;
  border-radius: 8px;
  padding: 20px 24px;
  font-size: 15px;
  line-height: 1.65;
  color: #26292B;
}

.credit-box__heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0C0E0F;
}

.article__body .credit-box p,
.credit-box p {
  margin: 8px 0 0;
}

.credit-box a {
  color: #00A896;
  font-weight: 600;
}

.linkback {
  max-width: 740px;
  margin: 56px auto 0;
  background: #0C0E0F;
  color: #FFFFFF;
  border-radius: 12px;
  padding: 32px 36px;
}

.linkback__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.linkback__dot {
  color: #00E0C7;
}

.linkback p {
  margin: 12px 0 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
  color: #9AA1A3;
}

.linkback strong {
  color: #00E0C7;
  font-weight: 700;
}

.linkback a {
  color: #00E0C7;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.credit-box strong a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article__body p a:not([class]) {
  color: #0C0E0F;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #00A896;
  text-underline-offset: 3px;
}

.buy-box {
  max-width: 740px;
  margin: 48px auto 0;
  border: 1px solid #E8EAEA;
  border-radius: 12px;
  padding: 28px 32px;
  background: #FFFFFF;
}

.buy-box__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.buy-box__text {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: #4B5254;
}

.buy-box__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.buy-box__btn {
  margin-top: 20px;
}

.buy-box__alt {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: #00A896;
}

.site-footer__affiliate {
  order: 10;
  flex-basis: 100%;
  margin-top: 2px;
  font-size: 12px;
  color: #9AA1A3;
}

/* -- Gallery lightbox ---------------------------------------------------------- */

body.lb-open {
  overflow: hidden;
}

.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
}

.lb.is-open {
  display: flex;
}

.lb__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 14, 15, 0.94);
}

.lb__stage {
  position: relative;
  margin: 0;
  max-width: min(84vw, 900px);
  text-align: center;
}

.lb__img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 76vh;
  border-radius: 10px;
  background: #FFFFFF;
}

.lb__caption {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
}

.lb__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

.lb__meta {
  font-size: 13px;
  font-weight: 500;
  color: #9AA1A3;
}

.lb__counter {
  position: absolute;
  top: 20px;
  left: 24px;
  z-index: 2;
  font-size: 13px;
  font-weight: 600;
  color: #9AA1A3;
}

.lb__close,
.lb__nav {
  position: absolute;
  z-index: 2;
  background: none;
  border: 0;
  padding: 12px;
  color: #FFFFFF;
  opacity: 0.8;
  cursor: pointer;
}

.lb__close:hover,
.lb__nav:hover {
  opacity: 1;
  color: #00E0C7;
}

.lb__close {
  top: 10px;
  right: 14px;
}

.lb__nav {
  top: 50%;
  transform: translateY(-50%);
}

.lb__nav--prev {
  left: 10px;
}

.lb__nav--prev svg {
  transform: rotate(180deg);
}

.lb__nav--next {
  right: 10px;
}

@media (max-width: 560px) {
  .lb__stage {
    max-width: 78vw;
  }

  .lb__nav {
    padding: 8px 4px;
  }
}

.article__body .article__disclaimer {
  margin: 26px 0 0;
  font-size: 15px;
  color: #6E7577;
}

/* -- Color gallery ---------------------------------------------------------------- */

.gallery {
  margin: 56px auto 0;
}

.gallery__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.gallery__heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0;
}

.gallery__note {
  font-size: 13px;
  font-weight: 500;
  color: #6E7577;
}

.gallery__grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.gallery__item {
  margin: 0;
}

.gallery__image-wrap {
  aspect-ratio: 1 / 1;
  background: #FFFFFF;
  border: 1px solid #E8EAEA;
  border-radius: 10px;
  overflow: hidden;
  display: block;
}

.gallery__image-wrap:hover {
  border-color: #00A896;
}

.gallery__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery__caption {
  padding: 12px 2px 0;
}

.gallery__caption-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.gallery__caption-meta {
  font-size: 12.5px;
  font-weight: 500;
  color: #6E7577;
  margin-top: 2px;
}

/* -- Pixel Watch 5 — what we know ---------------------------------------------------------------- */

.knowledge {
  max-width: 740px;
  margin: 56px auto 0;
}

.knowledge__heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.knowledge__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.knowledge__card {
  background: #F3F4F4;
  border-radius: 8px;
  padding: 16px 18px;
}

.knowledge__label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6E7577;
}

.knowledge__value {
  font-size: 15px;
  font-weight: 700;
  margin-top: 6px;
}

/* -- Author card ---------------------------------------------------------------- */

.author-card {
  max-width: 740px;
  margin: 48px auto 0;
  border-top: 1px solid #E8EAEA;
  padding-top: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.author-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0C0E0F;
  color: #00E0C7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.author-card__name {
  font-size: 15px;
  font-weight: 800;
}

.author-card__role {
  font-weight: 500;
  color: #6E7577;
}

.author-card__bio {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #4B5254;
}

.author-card__bio a {
  color: #00A896;
  font-weight: 600;
}

/* -- Footer ---------------------------------------------------------------- */

.site-footer {
  background: #F3F4F4;
  border-top: 1px solid #E8EAEA;
  color: #4B5254;
}

.site-footer__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 24px 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 48px;
}

.footer-brand__logo {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.footer-brand__logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.03em;
  color: #0C0E0F;
}

.footer-brand__logo-dot {
  width: 7px;
  height: 7px;
  background: #00A896;
  display: inline-block;
  border-radius: 1px;
}

.footer-brand__desc {
  margin: 14px 0 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  max-width: 340px;
}

.footer-col__heading {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9AA1A3;
  margin-bottom: 16px;
}

.footer-col__links {
  display: grid;
  gap: 11px;
  font-size: 15px;
  font-weight: 500;
}

.footer-col__links a {
  color: #1C1F20;
}

.site-footer__bottom {
  border-top: 1px solid #E1E4E4;
}

.site-footer__bottom-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 500;
  color: #9AA1A3;
}

.site-footer__legal {
  display: flex;
  gap: 18px;
}

.site-footer__legal a {
  color: #9AA1A3;
}

/* -- Homepage & shared page components --------------------------------------- */

.hero__title a {
  color: inherit;
}

.btn-dark {
  display: inline-block;
  margin-top: 26px;
  background: #0C0E0F;
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: 3px;
}

.btn-dark:hover {
  background: #00A896;
  color: #FFFFFF;
}

.page-head {
  margin: 0 0 32px;
}

.page-head__kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #00A896;
}

.page-head__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 3.5vw, 42px);
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 8px 0 0;
}

.page-head__sub {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: #4B5254;
  margin: 12px 0 0;
  max-width: 640px;
}

.section-list__heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
}

.section-list__items {
  display: grid;
  gap: 20px;
}

.story-card {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 24px;
  align-items: center;
  border: 1px solid #E8EAEA;
  border-radius: 12px;
  padding: 20px;
  background: #FFFFFF;
}

.story-card__thumb {
  display: block;
  aspect-ratio: 1 / 1;
  background: #F3F4F4;
  border-radius: 8px;
  overflow: hidden;
}

.story-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-card__meta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6E7577;
}

.story-card__tag {
  color: #00A896;
}

.story-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 10px 0 0;
}

.story-card__title a {
  color: #0C0E0F;
}

.story-card__standfirst {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: #4B5254;
  margin: 10px 0 0;
}

.story-card__byline {
  font-size: 13px;
  font-weight: 600;
  color: #6E7577;
  margin-top: 12px;
}

@media (max-width: 560px) {
  .story-card {
    grid-template-columns: 1fr;
  }
}

.prose {
  max-width: 740px;
  font-size: 16px;
  line-height: 1.75;
  color: #26292B;
}

.prose p {
  margin: 18px 0 0;
}

.prose ul {
  margin: 18px 0 0;
  padding-left: 22px;
}

.prose li {
  margin-top: 8px;
}

.prose a {
  color: #00A896;
  font-weight: 600;
}

.empty-state {
  background: #F3F4F4;
  border-radius: 12px;
  padding: 56px 32px;
  text-align: center;
}

.empty-state--tall {
  padding: 96px 32px;
}

.empty-state__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.empty-state__sub {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: #4B5254;
  margin: 10px auto 0;
  max-width: 460px;
}

.empty-state__sub a {
  color: #00A896;
  font-weight: 600;
}

/* -- Small-viewport safety net ----------------------------------------------
   Nav links are allowed to wrap on mobile (by design). This just tightens
   the masthead's flex gap below 400px so the row never forces horizontal
   overflow on narrow phones (measured down to 320px). 24px reuses the same
   spacing value already used for the page gutters elsewhere in this file. */
@media (max-width: 400px) {
  .masthead__inner {
    gap: 24px;
  }
}

/* Let the masthead grow when the nav wraps on narrow screens — with the fixed
   64px height, wrapped link rows overflow above the sticky header and get
   clipped by the viewport. */
@media (max-width: 720px) {
  .masthead__inner {
    height: auto;
    min-height: 64px;
    padding-top: 12px;
    padding-bottom: 12px;
    flex-wrap: wrap;
  }

  .masthead nav {
    gap: 12px 18px;
  }
}
