/* ============================================
   Anna Kalašová — Portfolio
   ============================================ */

:root {
  --beige: #e7e0d5;
  --beige-deep: #ddd5c8;
  --ink: #18181a;
  --dark: #161616;
  --dark-soft: #202022;
  --pink: #e2899e;
  --pink-deep: #d97891;
  --cream: #f4efe7;
  --line: rgba(24, 24, 26, 0.15);
  --line-light: rgba(255, 255, 255, 0.18);

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body), serif;
  color: var(--ink);
  background: var(--beige);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-family: var(--font-display), serif;
  margin: 0;
}

p { line-height: 1.6; }

/* ---------- Top nav ---------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: rgba(231, 224, 213, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topnav__brand {
  font-family: var(--font-display), serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.topnav__links {
  display: flex;
  gap: 28px;
}

.topnav__links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.topnav__links a:hover { opacity: 1; }

.topnav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.topnav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 60px;
  background: var(--beige);
}

.eyebrow {
  font-size: 1.05rem;
  margin: 0 0 4px;
  color: var(--ink);
}

.hero__title {
  font-size: clamp(3.2rem, 10vw, 7.2rem);
  line-height: 0.95;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}

.hero__title .fill {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero__title .outline {
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
}

.hero__name {
  text-align: right;
  font-size: 1.4rem;
  margin-top: 24px;
  font-family: var(--font-display), serif;
  font-weight: 500;
}

/* ---------- About ---------- */
.about {
  background: var(--beige);
  padding-bottom: 70px;
}

.about__grid {
  display: grid;
  grid-template-columns: 220px 1fr 1fr;
  gap: 28px 40px;
  align-items: start;
  margin-bottom: 30px;
}

.about__photo {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.about__intro h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.about__intro p,
.about__more p {
  margin: 0;
  font-size: 1.02rem;
  color: #2c2c2c;
}

.about__closing {
  grid-column: 2 / 4;
  font-size: 1.05rem;
  max-width: 900px;
  color: #2c2c2c;
}

.softwares__title {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.software-icons {
  width: 100%;
  max-width: 480px;
  height: auto;
}

/* ---------- Project sections ---------- */
.project {
  background: var(--dark);
  color: #f4f2ee;
  padding: 90px 0 70px;
}

.project h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  margin-bottom: 22px;
}

.project p {
  max-width: 700px;
  font-size: 1.08rem;
  color: #d8d5cf;
  margin-bottom: 56px;
}

.project__shot {
  width: 100%;
  border-radius: 4px;
}

.project__shot--full {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
}

/* ---------- Sketch section ---------- */
.sketch { padding-bottom: 120px; }

.sketch__stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding-top: 10px;
}

.sketch__card {
  border-radius: 10px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
  max-width: 620px;
  width: 100%;
}

.sketch__card--1 { transform: rotate(-1.2deg); z-index: 3; }
.sketch__card--2 { transform: rotate(1deg) translateX(30px); z-index: 2; max-width: 560px; }
.sketch__card--3 { transform: rotate(-0.6deg); z-index: 1; max-width: 600px; }

/* ---------- Contact ---------- */
.contact {
  background: var(--beige);
  padding: 90px 0 40px;
}

.contact__grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
}

.contact h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 34px;
}

.socials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.socials a {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.02rem;
}

.icon-badge {
  width: 44px;
  height: 44px;
  border: 1.4px solid var(--ink);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-badge svg { width: 22px; height: 22px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}

.field { margin-bottom: 26px; }

.field label {
  display: block;
  font-family: var(--font-display), serif;
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.field input {
  width: 100%;
  border: none;
  border-bottom: 1.4px solid var(--ink);
  background: transparent;
  padding: 6px 2px 10px;
  font-family: var(--font-body), serif;
  font-size: 1rem;
  color: var(--ink);
  outline: none;
}

.field input:focus { border-color: var(--pink-deep); }

.btn-send {
  margin-top: 8px;
  padding: 16px 44px;
  border: none;
  border-radius: 30px;
  background: #7c7c7c;
  color: #fff;
  font-family: var(--font-display), serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-send:hover { background: var(--ink); }
.btn-send:active { transform: translateY(1px); }

.form-note {
  margin: 14px 0 0;
  font-size: 0.92rem;
  min-height: 1.2em;
  color: var(--pink-deep);
}

.footer-note {
  text-align: center;
  margin-top: 70px;
  font-size: 0.85rem;
  color: #6b665c;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about__grid {
    grid-template-columns: 1fr;
  }
  .about__closing { grid-column: 1; }
  .about__photo { width: 200px; }

  .contact__grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }

  .topnav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--beige);
    flex-direction: column;
    padding: 18px 32px 26px;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .topnav__links.open { display: flex; }
  .topnav__toggle { display: flex; }

  .project__shot--full { padding: 0 20px; }

  .sketch__card--2 { transform: rotate(1deg) translateX(0); }
}

@media (max-width: 560px) {
  .hero { padding: 70px 0 40px; }
  .project { padding: 60px 0 50px; }
  .project__shot--full { padding: 0 16px; }
  .sketch__card--2 { transform: rotate(0.6deg) translateX(0); }
}
