
/* Anupa Adhikari | Travel Writer Portfolio */

/* Colors */
:root {
  --bg: #E7E9DF;
  --hero: #173C36;
  --ink: #10261D;
  --ink-soft: #22392E;
  --muted: #3C5547;
  --accent: #9C3A12;
  --glow: #F0B27A;
  --rule: #A9BFAF;
  --field: #FAF8F1;
}

/* Global */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: inherit;
}

a:focus-visible,
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
}

/* Navigation */
.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 12px clamp(20px, 5vw, 80px);
  background: rgba(47, 50, 52, 0.91);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(78, 77, 77, 0.14);
  color: #cec9c9;
}

.brand {
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(5px, 2vw, 24px);
  margin-left: auto;
  font-family:Georgia, 'Times New Roman', Times, serif;
  font-size: 14px;
}

.nav a {
  padding: 12px;
  font-weight: 600;
  text-decoration: none;
}


.nav a:last-child {
  padding: 10px 18px;
  border-radius: 5px;
}

.nav a:hover {
  color: #e97e7e;
}

/* Hero */
.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: var(--hero);
  color: #F2F6EF;
}

.hero-photo,
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-photo {
  object-fit: cover;
  object-position: center 46%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 26, 20, 0.72) 0%,
    rgba(8, 26, 20, 0.46) 72%,
    rgba(8, 26, 20, 0.28) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-bottom: 120px;
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-top: 156px;
}

.hero-text {
  flex: 1 1 480px;
  min-width: 0;
}

.eyebrow {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  color: #C9DCCF;
}

h1 {
  max-width: 760px;
  margin: 22px 0 30px;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

h1 em {
  position: relative;
  display: inline-block;
  font-style: italic;
}

h1 em svg {
  position: absolute;
  left: 0;
  bottom: -0.12em;
  width: 100%;
  height: 0.2em;
  color: var(--glow);
}

.lede {
  max-width: 500px;
  margin: 0 0 36px;
  font-size: 18px;
  color: #E2EDE5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 clamp(14px, 4vw, 6px);
  border: 0;
  border-radius: 20px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.88;
}

.btn-light {
  background: #bbbdba;
  color: var(--ink);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.textlink {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: 19px;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.textlink:hover {
  color: var(--accent);
}

.hero .textlink:hover {
  color: var(--glow);
}

/* Sections */
.section {
  padding-bottom: 88px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  margin-bottom: 12px;
  padding-top: 28px;
  border-top: 4px double var(--ink);
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.note {
  font-style: italic;
  color: var(--muted);
}

#work {
  padding-top: 72px;
}

/* Work */
.works {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}

.place,
.meta {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
}

.place {
  min-width: 112px;
  color: var(--accent);
}

.title {
  font-size: 23px;
  line-height: 1.25;
}

.row:hover .title {
  color: var(--accent);
}

.leader {
  flex: 1 1 32px;
  align-self: flex-end;
  min-width: 32px;
  margin-bottom: 8px;
  border-bottom: 2px dotted #7E9B89;
}

.meta {
  font-size: 12.5px;
  color: var(--muted);
}

.arr {
  display: inline-block;
  color: var(--accent);
  transition: transform 0.15s ease;
}

.row:hover .arr {
  transform: translateX(5px);
}

/* Travel Photo */
.travel-figure {
  margin: 0;
}

.travel-figure img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: center 60%;
  border-radius: 4px;
}

.travel-figure figcaption {
  margin-top: 12px;
}

.photo-section {
  padding-bottom: 70px;
}

/* About */
.about {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px 64px;
  padding-top: 28px;
  border-top: 4px double var(--ink);
}

.about h2 {
  margin-bottom: 20px;
}

.polaroid {
  flex: 0 0 auto;
  width: 225px;
  margin: 0;
  padding: 12px 12px 14px;
  background: var(--field);
  box-shadow: 0 2px 10px rgba(16, 38, 29, 0.2);
  
}

.polaroid img,
.polaroid .ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 290px;
  object-fit: cover;
  background: #B9CFC0;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: var(--ink-soft);
}

.polaroid figcaption {
  margin-top: 12px;
  font-size: 16px;
  font-style: italic;
  text-align: center;
}

.about-text {
  flex: 1 1 360px;
  min-width: 0;
}

.about-text p {
  max-width: 520px;
  margin: 0 0 16px;
}

.now {
  margin-bottom: 28px !important;
  font-style: italic;
  color: var(--muted);
}

.side {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* Contact */
.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px 64px;
  padding-top: 40px;
  border-top: 4px double var(--ink);
}

.contact-section {
  padding-bottom: 72px;
}

.contact-intro {
  flex: 1 1 320px;
  min-width: 0;
}

.contact h2 {
  margin-bottom: 20px;
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.contact-intro p {
  margin: 0 0 8px;
  color: var(--ink-soft);
}

.contact-side-note {
  margin-top: 22px;
}

.mail {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.mail:hover,
.social a:hover {
  color: var(--accent);
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin-top: 4px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
}

.social a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
}

/* Contact Form */
form {
  flex: 1 1 360px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

label {
  display: block;
  margin-bottom: 6px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #7E9B89;
  border-radius: 4px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}

textarea {
  resize: vertical;
}

form .btn {
  align-self: flex-start;
  padding: 0 28px;
}

.hp {
  position: absolute;
  left: -9999px;
}

/* Footer */
footer {
  padding-bottom: 40px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 640px) {
  .top {
    min-height: 70px;
    gap: 8px;
    padding: 12px 18px;
  }

  .brand {
    font-size: 17px;
  }

  .nav {
    gap: 0;
    font-size: 11px;
  }

  .nav a {
    padding: 8px;
  }

  .nav a:last-child {
    padding: 8px 10px;
  }

  .hero {
    min-height: 0;
  }

  .hero-photo {
    object-position: 58% center;
  }

  .hero-row {
    padding-top: 130px;
  }

  .hero-inner {
    padding-bottom: 85px;
  }

  .section {
    padding-bottom: 62px;
  }
}

@media (max-width: 390px) {
  .brand {
    font-size: 15px;
  }

  .nav a {
    padding: 6px;
    font-size: 10px;
  }

  .nav a:last-child {
    padding: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
