.web-templates {
  background: var(--surface);
  color: var(--ink);
  border-block: 1px solid var(--line);
}

.web-templates-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.15rem 2rem;
  margin-bottom: clamp(1.7rem, 3.2vw, 2.85rem);
}

.web-templates-heading p { max-width: 35ch; color: var(--ink-muted); }

.web-template-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: clamp(1.25rem, 2.2vw, 2rem);
}

.web-template-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .5rem .85rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: var(--paper);
  color: var(--ink-muted);
  font-size: .9rem;
  line-height: 1.2;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 140ms var(--ease-out), color 140ms var(--ease-out);
}

.web-template-tabs a:hover { background: var(--surface-raised); color: var(--ink); }
.web-template-tabs a[aria-selected="true"] { background: var(--surface-raised); border-color: var(--blue); color: var(--blue); }

.web-template {
  display: grid;
  grid-template-columns: minmax(12rem, .45fr) minmax(0, 1.55fr);
  align-items: center;
  gap: clamp(1.1rem, 4vw, 4rem);
}

.web-template + .web-template { margin-top: 1.75rem; }

.web-template-intro h3 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.5vw, 3.45rem);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.web-template-intro p { margin-block: .8rem 1.1rem; max-width: 35ch; color: var(--ink-muted); }
.web-template-intro .button-accent { border-color: #b6d640; }

.web-browser {
  min-width: 0;
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + .12rem);
  box-shadow: 0 1rem 2.5rem #05091036;
}

.web-address {
  display: flex;
  min-height: 2.2rem;
  align-items: center;
  gap: .6rem;
  padding-inline: .8rem;
  background: #182541;
  color: #dbe5f9;
  font-size: .76rem;
  font-weight: 700;
}

.web-address > span:first-child { width: .43rem; aspect-ratio: 1; background: #c3e071; border-radius: 50%; }

.web-page {
  --web-pad: clamp(.85rem, 3vw, 2.35rem);
  --web-line: #b9b7a966;
  --web-action: #263d2e;
  --web-action-text: #fff;
  position: relative;
  container-type: inline-size;
  overflow: auto;
  min-width: 0;
  min-height: 23rem;
  height: clamp(23rem, 61vh, 34.5rem);
  scrollbar-gutter: stable;
  scroll-padding-top: 3.1rem;
  color: #282822;
  color-scheme: light;
  background: #f6f0e5;
  font-size: .84rem;
}

.web-page:focus-visible { outline-offset: -.22rem; }
.web-page a, .web-page button, .web-page summary { touch-action: manipulation; }
.web-page :is(a, button, select, summary):focus-visible { outline-color: #275bdf; }

.web-page-nav {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  min-height: 3.15rem;
  padding-inline: var(--web-pad);
  border-bottom: 1px solid var(--web-line);
  background: inherit;
}

.web-page-nav strong { flex-shrink: 0; font-size: .93rem; }
.web-page-nav nav { display: flex; flex-wrap: wrap; column-gap: .85rem; }
.web-page-nav a { display: inline-flex; min-height: 2.45rem; align-items: center; gap: .2rem; font-weight: 600; }
.web-page-nav a:not(:hover) { text-decoration-color: transparent; }

.web-page h4, .web-page h5 { margin: 0; }
.web-page h5 { font: 600 1.5rem/1.1 Georgia, serif; margin-bottom: .45rem; }
.web-page a.web-action { text-decoration: none; }

.web-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 2.75rem;
  padding: .45rem .8rem;
  border: 0;
  border-radius: .23rem;
  background: var(--web-action);
  color: var(--web-action-text);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: opacity 140ms ease, transform 140ms ease;
}

.web-action:enabled:hover, a.web-action:hover { opacity: .84; }
.web-action:active { transform: translateY(1px); }
.web-page button:disabled { opacity: .55; cursor: default; }

.web-lead .web-page-nav, .web-lead .web-lead-hero { background: #f6f0e5; }
.web-lead .web-page-nav strong { font-family: Georgia, serif; }

.web-lead-hero {
  display: grid;
  min-height: 19rem;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: stretch;
  border-bottom: 1px solid var(--web-line);
}

.web-lead-hero > div { align-self: center; padding: 1.25rem var(--web-pad); }
.web-lead-label { color: #645e4e; font-weight: 600; }

.web-lead-hero h4 {
  margin-block: .55rem .65rem;
  font: 500 clamp(1.75rem, 6.7cqw, 3.8rem)/.98 Georgia, serif;
  letter-spacing: -.05em;
}

.web-lead-hero .web-action { margin-top: .9rem; }
.web-lead-hero img { width: 100%; height: 100%; min-height: 16rem; aspect-ratio: 5 / 4; object-fit: cover; object-position: 54% 60%; }
.web-lead-project, .web-lead-form { padding: 1.25rem var(--web-pad); border-bottom: 1px solid var(--web-line); }
.web-lead-project p { max-width: 53ch; }
.web-lead-form { display: grid; gap: .45rem; align-items: start; }
.web-lead-form label { font-weight: 700; }
.web-lead-form select { min-height: 2.75rem; width: min(100%, 20rem); padding: .4rem; border: 1px solid #7e887b; border-radius: .23rem; background: #fff; color: #252b25; }
.web-status { color: #235336; font-weight: 700; }
.web-status:empty { display: none; }

.web-store { --web-line: #c6c6a9; --web-action: #223b31; background: #fff9e8; color: #20392e; }
.web-store .web-page-nav { background: #fff9e8; }
.web-store .web-page-nav strong { font-family: Georgia, serif; font-size: 1.25rem; letter-spacing: -.06em; }
.web-store [data-web-cart-count] { padding-inline: .25rem; font-variant-numeric: tabular-nums; }
.web-store-collection, .web-store-cart { padding: 1rem var(--web-pad); }
.web-store-collection h4 { font: 500 clamp(1.85rem, 5.2cqw, 3.1rem)/1 Georgia, serif; letter-spacing: -.04em; }

.web-filters { display: flex; gap: .35rem; margin-block: .7rem .75rem; }
.web-filters button { min-height: 2.45rem; padding: .35rem .65rem; border: 1px solid #9fa58d; border-radius: 2rem; background: transparent; color: #20392e; cursor: pointer; }
.web-filters button[aria-pressed="true"] { background: #263d27; color: #fff; border-color: #263d27; }
.web-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; padding: 0; margin: 0; list-style: none; }
.web-products li { min-width: 0; }
.web-products img { display: block; width: 100%; height: auto; margin-bottom: .42rem; aspect-ratio: 1.07; object-fit: cover; }
.web-products strong, .web-products span { display: block; line-height: 1.3; }

.web-store-buy, .web-store-cart [data-web-remove] {
  min-height: 2.45rem;
  margin-top: .3rem;
  padding: .3rem .6rem;
  border: 1px solid #777f64;
  border-radius: .23rem;
  background: #fff9e8;
  color: #20392e;
  cursor: pointer;
}

.web-store-buy:enabled:hover, .web-store-cart [data-web-remove]:hover { background: #eee8d2; }
.web-store-cart { border-top: 1px solid var(--web-line); }
.web-store-cart ul { padding: 0; margin: 0; list-style: none; }
.web-store-cart li, .web-cart-actions { display: flex; align-items: center; justify-content: space-between; gap: .5rem; border-top: 1px solid var(--web-line); }
.web-store-cart [data-web-remove] { margin-block: .38rem; }
.web-cart-actions { margin-top: .6rem; padding-top: .55rem; }
.web-store-status { padding: 0 var(--web-pad) .75rem; color: #235336; font-weight: 700; }
.web-store-status:empty { display: none; }

.web-portfolio { --web-line: #24249e50; color: #201e79; background: #e5e3fc; }
.web-portfolio .web-page-nav { background: #e5e3fc; }
.web-portfolio .web-page-nav strong { font-family: var(--display); letter-spacing: .035em; }
.web-portfolio-work { padding: 1rem var(--web-pad); }
.web-portfolio h4 { font: 650 clamp(2.4rem, 10.1cqw, 5rem)/.89 var(--display); letter-spacing: -.04em; }
.web-portfolio-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: .93rem; }
.web-portfolio-projects summary { cursor: pointer; list-style: none; }
.web-portfolio-projects summary::-webkit-details-marker { display: none; }
.web-portfolio-projects summary span { display: flex; min-height: 2.5rem; justify-content: space-between; gap: .35rem; align-items: center; font-weight: 700; }
.web-portfolio-projects summary:hover span { text-decoration: underline; }
.web-portfolio-projects details[open] summary b { transform: rotate(45deg); }
.web-portfolio-projects img { display: block; width: 100%; height: auto; aspect-ratio: 1.6; object-fit: cover; object-position: center; }
.web-portfolio-projects details p { padding-bottom: .55rem; color: #2a296d; }
.web-portfolio-about { padding: .95rem var(--web-pad); border-top: 1px solid var(--web-line); }
.web-portfolio-about p { max-width: 47ch; }

@container (max-width: 31rem) {
  .web-lead-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .web-lead-hero img { min-height: 0; height: auto; aspect-ratio: 16 / 9; object-position: 50% 63%; }
  .web-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 48rem) {
  .web-template { grid-template-columns: minmax(0, 1fr); }
  .web-templates-heading { align-items: flex-start; flex-direction: column; }
  .web-page { height: min(30rem, 67vh); }
}

@media (max-width: 22rem) {
  .web-page-nav nav { column-gap: .55rem; }
  .web-template-tabs a { padding-inline: .62rem; }
  .web-page-nav strong { font-size: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  .web-template-tabs a, .web-action { transition: none; }
}
