:root {
  --brown-dark: #34231d;
  --brown: #3e251b;
  --text: #6f777d;
  --surface: #f3f5f8;
  --white: #ffffff;
  --hero-meta-size: clamp(1.02rem, 1.95vw, 1.14rem);
  --shadow-soft: 0 18px 38px rgba(44, 27, 18, 0.14);
  --shadow-card: 0 3px 0 0 #f0f2f4;
  --radius: 20px;
  --container: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: var(--brown);
  transition: color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

a:hover,
a:focus-visible {
  color: var(--brown);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(62, 37, 27, 0.28);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--brown-dark);
  color: var(--white);
}

.skip-link:focus {
  left: 1rem;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.section-padding {
  padding: 84px 0 92px;
}

header {
  position: relative;
}

h1,
h2,
h3 {
  color: var(--brown);
  margin: 0;
  font-weight: 700;
}

p {
  margin: 0.95rem 0 0;
  color: var(--text);
  font-size: 1rem;
  word-spacing: normal;
}

.site-nav-shell {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 4;
  background: transparent;
}

.site-nav-shell::before,
.site-nav-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.site-nav-shell::before {
  inset: 0 0 auto 0;
  height: 7.5rem;
  background: linear-gradient(180deg, rgba(14, 9, 7, 0.42) 0%, rgba(14, 9, 7, 0.16) 52%, rgba(14, 9, 7, 0) 100%);
}

.site-nav-shell::after {
  top: 0;
  left: 0;
  width: min(17vw, 13rem);
  height: 6.5rem;
  background: linear-gradient(90deg, rgba(14, 9, 7, 0.18) 0%, rgba(14, 9, 7, 0) 100%);
}

.nav-bar {
  position: relative;
  z-index: 1;
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pull {
  display: block;
  width: 100%;
}

.top-nav {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.15rem 0.45rem;
}

.top-nav li {
  flex: 0 0 auto;
}

.top-nav a {
  display: block;
  padding: 1.05rem 0.85rem 0.85rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--hero-meta-size);
  line-height: 1.25;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-shadow: 0.07em 0.1em 0.22em rgba(0, 0, 0, 0.84);
  white-space: nowrap;
  border-radius: 999px;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: rgba(255, 255, 255, 1);
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  position: relative;
  overflow: hidden;
  background: url("img/hero-bg.jpg") 72% 40% / cover no-repeat;
  padding: 122px 0 126px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(15, 9, 6, 0.76) 0%,
      rgba(15, 9, 6, 0.58) 24%,
      rgba(15, 9, 6, 0.20) 52%,
      rgba(15, 9, 6, 0.03) 74%
    );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 31rem;
  display: flex;
  align-items: flex-end;
}

.hero-copy {
  max-width: 29rem;
  margin: 0 0 0.75rem;
  padding-inline: 0.65rem 1rem;
  text-align: left;
}

.hero-kicker {
  margin: 0 0 0.75rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--hero-meta-size);
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.45rem;
}

.hero-kicker-secondary {
  white-space: nowrap;
}

.hero h1,
.hero-subtitle,
.hero-kicker {
  color: var(--white);
  text-shadow: 0.07em 0.1em 0.22em rgba(0, 0, 0, 0.84);
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(1.66rem, 3.18vw, 2.04rem);
  line-height: 1.17;
  letter-spacing: 0.03em;
  text-wrap: balance;
}

.hero-subtitle {
  margin-top: 0.85rem;
  margin-bottom: 0.65rem;
  font-size: var(--hero-meta-size);
  line-height: 1.45;
  letter-spacing: 0.03em;
}

.hero-subtitle span {
  display: inline-block;
  margin-top: 0.18rem;
}

.arrow {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  padding-bottom: 20px;
  margin-bottom: 5px;
  background: url("img/h1-bg.png") no-repeat center bottom;
  background-size: 250px auto;
}

.feature-grid,
.portfolio-grid,
.contact-grid,
.footer-inner {
  display: grid;
  gap: 1.75rem 1.5rem;
}

.feature-grid,
.portfolio-grid,
.contact-grid {
  margin-top: 58px;
}

.feature-card,
.portfolio-card {
  max-width: 22rem;
  margin: 0 auto;
}

.feature-card {
  padding: 0 0.5rem;
}

.icon {
  width: 154px;
  height: 154px;
  margin: 0 auto 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brown);
}

.icon svg {
  width: 600px;
  height: 60px;
  fill: var(--white);
}

.icon img {
  width: 100px;
  height: 100px;
}

.feature-card h3,
.portfolio-card h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.feature-card p,
.portfolio-card p {
  max-width: 31ch;
  margin-left: auto;
  margin-right: auto;
}

.swag {
  background:
    linear-gradient(rgba(34, 21, 16, 0.36), rgba(34, 21, 16, 0.36)),
    url("img/leather-sewing-machine.jpg") center 36% / cover no-repeat fixed;
  padding: 104px 0;
}

.swag .container {
  width: min(calc(100% - 1.25rem), 1240px);
}

.swag h2,
.swag span {
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 4px;
  text-shadow: 0.07em 0.1em 0.22em rgba(0, 0, 0, 0.84);
}

.swag h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.35rem);
  line-height: 1.24;
  max-width: 18ch;
  margin: 0 auto;
  text-wrap: balance;
}

.swag span {
  display: block;
  margin-top: 16px;
  font-size: clamp(1rem, 2.6vw, 1.35rem);
}

.services-lead {
  max-width: 34rem;
  margin: 0 auto;
  font-size: 0.96rem;
}

.portfolio-grid {
  grid-template-columns: 1fr;
}

.portfolio-card {
  width: 100%;
  max-width: none;
  padding: 0;
}

.img {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  aspect-ratio: 9 / 5;
}

.img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  transition: none;
}

.portfolio-card h3 {
  font-size: 15px;
  text-transform: uppercase;
  font-weight: 700;
}

.services-tail {
  max-width: 33rem;
  margin: 2rem auto 0;
  font-size: 1rem;
  color: rgba(115, 123, 129, 0.88);
}

.dark-bg {
  background: var(--surface);
}

.light-box {
  min-height: 100%;
  padding: 24px 22px 26px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.box-hover {
  transition: box-shadow 0.3s ease;
}

.box-hover:hover,
.box-hover:focus-within {
  transform: none;
  box-shadow: 0 3px 0 0 var(--brown);
}

.light-box h3 {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  font-size: 18px;
}

.contact-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(62, 37, 27, 0.08);
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--brown);
}

.contact-icon img {
  width: 34px;
  height: 34px;
}

.light-box h3 span:last-child {
  display: block;
  color: var(--brown);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
}

.light-box p,
.light-box a {
  color: var(--brown);
}

.light-box a {
  font-size: 1.01rem;
  font-weight: 700;
  text-decoration: none;
}

.light-box small {
  display: block;
  max-width: 28ch;
  margin: 0.5rem auto 0;
  font-size: 1rem;
  line-height: 1.45;
}

.map-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.map-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 2.65rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid rgba(62, 37, 27, 0.24);
  background: rgba(255, 255, 255, 0.74);
  color: var(--brown);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.map-links a:hover,
.map-links a:focus-visible {
  background: rgba(62, 37, 27, 0.08);
}

.external-mark {
  position: relative;
  width: 0.8rem;
  height: 0.8rem;
  flex: 0 0 auto;
  opacity: 0.72;
}

.external-mark::before,
.external-mark::after {
  content: "";
  position: absolute;
}

.external-mark::before {
  left: 0.08rem;
  bottom: 0.08rem;
  width: 0.46rem;
  height: 0.46rem;
  border: 1px solid currentColor;
  border-top: 0;
  border-right: 0;
}

.external-mark::after {
  top: 0.02rem;
  right: 0.02rem;
  width: 0.38rem;
  height: 0.38rem;
  border-top: 1.2px solid currentColor;
  border-right: 1.2px solid currentColor;
}

.site-footer {
  padding: 24px 0 30px;
  background: var(--brown-dark);
}

.footer-inner {
  display: block;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--hero-meta-size);
  line-height: 1.25;
  letter-spacing: 0.03em;
  text-align: center;
}

@media (min-width: 760px) {
  .feature-grid,
  .contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .nav-bar {
    justify-content: center;
    min-height: 5rem;
  }

  .pull {
    width: auto;
  }

  .top-nav {
    justify-content: center;
  }

  .top-nav a {
    padding: 1.18rem 1.02rem 0.98rem;
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 979px) {
  .swag {
    background-attachment: scroll;
  }
}

@media (max-width: 759px) {
  :root {
    --hero-meta-size: 1rem;
  }

  .section-padding {
    padding: 64px 0 74px;
  }

  .hero {
    min-height: 100svh;
    display: grid;
    align-items: end;
    padding: 116px 0 104px;
    background: url("img/hero-bg_logo.jpg") 74% 10% / cover no-repeat;
  }

  .hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(15, 9, 6, 0.03) 0%,
        rgba(15, 9, 6, 0.10) 34%,
        rgba(15, 9, 6, 0.42) 58%,
        rgba(15, 9, 6, 0.78) 100%
      );
  }

  .hero-inner {
    min-height: 0;
    align-items: flex-end;
  }

  .hero-copy {
    max-width: 18rem;
    margin: 0;
    padding-inline: 0.9rem 1.2rem;
  }

  .hero h1 {
    max-width: 14ch;
    font-size: 1.5rem;
    line-height: 1.18;
    letter-spacing: 0.03em;
  }

  .hero-subtitle {
    font-size: var(--hero-meta-size);
  }

  .feature-grid,
  .portfolio-grid,
  .contact-grid {
    margin-top: 44px;
    gap: 2rem;
  }

  .feature-card,
  .portfolio-card {
    padding: 0;
  }

  .contact-icon {
    width: 52px;
    height: 52px;
  }

  .contact-icon img {
    width: 24px;
    height: 24px;
  }

  .map-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin-top: 1.5rem;
  }

  .map-links a {
    justify-content: center;
  }

  .site-nav-shell {
    border-bottom: 0;
  }

  .nav-bar {
    min-height: 5.25rem;
  }

  .top-nav a {
    padding: 0.72rem 0.55rem;
    font-size: var(--hero-meta-size);
  }

  .hero-kicker {
    display: block;
    font-size: var(--hero-meta-size);
  }

  .hero-kicker-divider {
    display: none;
  }

  .hero-kicker-secondary {
    display: block;
    margin-top: 0.28rem;
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(calc(100% - 1.6rem), var(--container));
  }

  .icon {
    width: 138px;
    height: 138px;
    margin-bottom: 24px;
  }

  .icon img {
    width: 54px;
    height: 54px;
  }

  .swag {
    padding: 74px 0 76px;
    background-position: center 32%;
  }

  .swag h2 {
    letter-spacing: 2px;
    line-height: 1.25;
  }

  .swag span {
    margin-top: 14px;
    font-size: 1rem;
    letter-spacing: 1.5px;
  }
}

@media (max-width: 420px) {
  .hero {
    background-position: 76% 8%;
    padding: 110px 0 96px;
  }

  .hero-copy {
    max-width: 17rem;
    padding-inline: 1rem 1.15rem;
  }

  .hero-kicker {
    letter-spacing: 0.12em;
  }
}
