/* calledev.com — one stylesheet for the whole site */

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --text: #17181a;
  --muted: #6b6f76;
  --line: #e7e7e4;
  --accent: #03a076;
  --accent-dark: #027a5a;
  --soft-bg: #f6f6f3;
  --radius: 14px;
  --max: 1200px;
  --pad: clamp(20px, 6vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4, h5 { margin: 0 0 .6em; line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 760px; margin: 0 auto; }
.wrap.narrow { max-width: calc(760px + 2 * var(--pad)); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { padding: 28px 0; }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 600; font-size: 20px; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.logo:hover { color: var(--text); }
.nav a { color: var(--text); text-decoration: none; font-size: 16px; font-weight: 500; }
.nav a:hover { color: var(--accent); }

/* Home intro */
.intro { padding-block: clamp(48px, 10vw, 130px) clamp(40px, 6vw, 80px); }
.intro h1 { font-size: clamp(36px, 5.4vw, 64px); max-width: 14em; margin-bottom: .55em; font-weight: 600; letter-spacing: -0.035em; }
.say-hi { color: var(--muted); font-size: clamp(18px, 1.6vw, 21px); text-decoration: none; }
.say-hi:hover { color: var(--text); }
.say-hi .arrow { display: inline-block; color: var(--accent); transition: transform .2s ease; }
.say-hi:hover .arrow { transform: translateX(4px); }

/* Home project grid */
.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding-bottom: clamp(60px, 8vw, 120px);
}
.card {
  position: relative; display: block; overflow: hidden; text-decoration: none;
  aspect-ratio: 2 / 1; border-radius: var(--radius);
  background: var(--card-bg, #222);
  transition: transform .35s ease, box-shadow .35s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(0,0,0,.35); }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover img { transform: scale(1.03); }
.card .info {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 6px;
  padding: clamp(18px, 2.6vw, 28px);
  color: var(--card-text, #fff);
}
.card.shade .info { background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0) 62%); }
.card .cat {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; line-height: 1;
  padding: 7px 10px; border-radius: 999px;
  background: rgba(255,255,255,.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.card.on-light .cat { background: rgba(0,0,0,.07); }
.card h2 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.25; margin: 0; }

/* Project page */
.project-header {
  height: clamp(220px, 34vw, 440px);
  background: var(--header-bg, #eee);
  overflow: hidden;
}
.project-header img { width: 100%; height: 100%; object-fit: cover; }
.project-header.contain img { object-fit: contain; }
.band { padding: clamp(40px, 6vw, 72px) 0; }
.band.light { background: var(--soft-bg); }
.band.tight-top { padding-top: 0; }
.project-title { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.035em; margin-bottom: 0; }
.store-badge { display: inline-block; margin-top: 22px; }
.store-badge img { height: 44px; width: auto; }
.band > .wrap > .store-badge:first-child { margin-top: 0; }

.meta { display: grid; grid-template-columns: 110px 1fr; gap: 22px 32px; padding-top: 8px; }
.meta dt { color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; line-height: 2.4; }
.meta dd { margin: 0; }

.lead { font-size: clamp(22px, 2.3vw, 28px); line-height: 1.4; font-weight: 500; letter-spacing: -0.015em; }
.divider { width: 48px; height: 3px; background: var(--accent); margin: 40px 0; border: 0; border-radius: 2px; }

.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px);
  align-items: center; padding: clamp(36px, 6vw, 72px) 0;
}
.feature > * { min-width: 0; }
.feature h3 { font-size: clamp(24px, 2.4vw, 30px); }
.feature p { color: #33363a; }
.feature .shots { display: flex; gap: 20px; justify-content: center; }
.feature .shots img { max-width: 240px; width: 100%; flex: 1 1 0; min-width: 0; }
.feature .phone img { max-width: 300px; margin: 0 auto; }
.feature .tablet img { max-width: 380px; margin: 0 auto; }

.image-band { background: var(--band-bg, #c4c3d6); padding: clamp(30px, 5vw, 70px) 0; }
.image-band .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.full-image img { width: 100%; }

.github-link { display: inline-flex; align-items: center; gap: 10px; }

.project-nav { border-top: 1px solid var(--line); padding: 28px 0; }
.project-nav .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-weight: 500; }
.project-nav a { color: var(--text); text-decoration: none; }
.project-nav a:hover { color: var(--accent); }
.project-nav .all { font-size: 22px; line-height: 1; color: var(--muted); }

/* Contact */
.contact { padding-block: clamp(40px, 8vw, 100px) clamp(60px, 8vw, 120px); }
.contact h1 { font-size: clamp(36px, 5.4vw, 64px); letter-spacing: -0.035em; }
form { display: grid; gap: 20px; max-width: 620px; }
label { display: grid; gap: 8px; font-size: 15px; font-weight: 600; }
input, textarea {
  font: inherit; font-weight: 400; color: var(--text);
  padding: 13px 15px; border: 1px solid #d6d6d2; border-radius: 10px; background: #fff; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(3,160,118,.18); }
textarea { min-height: 180px; resize: vertical; }
button {
  justify-self: start; font: inherit; font-weight: 600; color: #fff; background: var(--text);
  border: 0; border-radius: 999px; padding: 13px 30px; cursor: pointer; transition: background .15s;
}
button:hover { background: var(--accent-dark); }
.hp { display: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; padding: 28px 0; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-footer p { margin: 0; }
.social { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.social a { color: var(--muted); text-decoration: none; }
.social a:hover { color: var(--text); }

/* Small screens */
@media (max-width: 760px) {
  .projects { grid-template-columns: 1fr; gap: 14px; }
  .meta { grid-template-columns: 1fr; gap: 2px; }
  .meta dd { margin-bottom: 18px; }
  .feature, .image-band .pair { grid-template-columns: 1fr; }
  .feature .media { order: -1; }
  .site-footer .wrap { flex-direction: column-reverse; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .card img, .say-hi .arrow { transition: none; }
  .card:hover { transform: none; }
}
