@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@400;500;600&display=swap');

/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: #f9f8f5;
  color: #1c1c1c;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', Georgia, serif;
  line-height: 1.2;
  color: #1c1c1c;
  font-weight: 500;
}

h1 { font-size: 2.25rem; margin-bottom: 1rem; }
h2 { font-size: 1.6rem; margin-bottom: 0.75rem; margin-top: 2.5rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; margin-top: 2rem; }
h4 { font-size: 1.05rem; margin-bottom: 0.5rem; margin-top: 1.5rem; }

p {
  margin-bottom: 1.25rem;
  color: #1c1c1c;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: #3d5a4a;
  text-decoration: underline;
  text-decoration-color: rgba(61, 90, 74, 0.35);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: #2a3f34;
  text-decoration-color: rgba(42, 63, 52, 0.7);
}

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

blockquote {
  border-left: 3px solid #3d5a4a;
  padding-left: 1.25rem;
  margin: 2rem 0;
  color: #4a4a4a;
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--wide {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.site-nav {
  background-color: #f9f8f5;
  border-bottom: 1px solid #e8e5de;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.site-nav__logo {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  color: #1c1c1c;
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-nav__logo:hover {
  color: #3d5a4a;
  text-decoration: none;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav__links a {
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  color: #4a4a4a;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.site-nav__links a:hover {
  color: #3d5a4a;
}

.site-nav__links a.nav-cta {
  color: #3d5a4a;
  border: 1px solid rgba(61, 90, 74, 0.4);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.site-nav__links a.nav-cta:hover {
  background-color: #3d5a4a;
  color: #f9f8f5;
  border-color: #3d5a4a;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: #1c1c1c;
  font-size: 1.25rem;
  line-height: 1;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1c1c1c;
  margin: 5px 0;
  transition: all 0.2s ease;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero__inner {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 1.25rem;
  color: #1c1c1c;
  font-weight: 500;
}

.hero__subhead {
  font-size: 1.1rem;
  color: #6b7280;
  line-height: 1.65;
  margin-bottom: 0;
}

/* ============================================================
   ARTICLE HERO
   ============================================================ */

.article-hero {
  padding: 4rem 0 2.5rem;
}

.article-hero .container {
  max-width: 720px;
}

.article-hero h1 {
  font-size: 2.1rem;
  margin-bottom: 1rem;
}

.article-hook {
  font-size: 1.1rem;
  color: #4a4a4a;
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  line-height: 1.65;
  margin-bottom: 0;
}

/* ============================================================
   ARTICLE CONTENT
   ============================================================ */

.article-content {
  padding: 2.5rem 0 4rem;
}

.article-content section {
  margin-bottom: 2.5rem;
}

/* ============================================================
   HOMEPAGE SECTIONS
   ============================================================ */

.home-section {
  padding: 3.5rem 0;
}

.home-section + .home-section {
  border-top: 1px solid #e8e5de;
}

.home-section h2 {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

/* ============================================================
   ARTICLE GRID
   ============================================================ */

.article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 2rem;
}

.article-grid__item {
  padding: 1.25rem 0;
  border-bottom: 1px solid #e8e5de;
}

.article-grid__item:nth-child(odd) {
  padding-right: 2rem;
}

.article-grid__item:nth-child(even) {
  padding-left: 2rem;
  border-left: 1px solid #e8e5de;
}

.article-grid__item:nth-last-child(1),
.article-grid__item:nth-last-child(2) {
  border-bottom: none;
}

.article-grid__item a {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  color: #1c1c1c;
  display: block;
  margin-bottom: 0.35rem;
  transition: color 0.2s ease;
}

.article-grid__item a:hover {
  color: #3d5a4a;
}

.article-grid__item p {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0;
  line-height: 1.55;
}

/* ============================================================
   PHONEBOOK AI BLOCK (inline text reference)
   ============================================================ */

.phonebook-block {
  background-color: #f0ede4;
  border: 1px solid #ddd9cf;
  border-radius: 6px;
  padding: 1.5rem 1.75rem;
  margin: 3rem 0;
}

.phonebook-block p {
  font-size: 0.95rem;
  color: #4a4a4a;
  margin-bottom: 0;
  line-height: 1.65;
}

.phonebook-block p:not(:last-child) {
  margin-bottom: 0.75rem;
}

/* ============================================================
   PHONEBOOK APP BLOCK (image + CTA)
   ============================================================ */

.phonebook-app-block {
  margin: 3.5rem 0;
  background-color: #f0ede4;
  border: 1px solid #ddd9cf;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0;
}

.phonebook-app-block__visual {
  flex: 0 0 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-color: #e8e4da;
}

.phonebook-app-block__visual img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 24px;
  display: block;
}

.phonebook-app-block__body {
  flex: 1;
  padding: 1.75rem 2rem 1.75rem 1.5rem;
}

.phonebook-app-block__body p {
  font-size: 0.95rem;
  color: #4a4a4a;
  margin-bottom: 1rem;
  line-height: 1.65;
}

.phonebook-app-block__screenshot {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 auto 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #1c1c1c;
  color: #f9f8f5 !important;
  text-decoration: none !important;
  padding: 0.6rem 1.1rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.app-store-btn:hover {
  background-color: #3d5a4a !important;
  color: #f9f8f5 !important;
}

.app-store-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ============================================================
   BLOG LIST
   ============================================================ */

.blog-list {
  margin-top: 2rem;
}

.blog-list__item {
  padding: 2rem 0;
  border-bottom: 1px solid #e8e5de;
}

.blog-list__item:last-child {
  border-bottom: none;
}

.blog-list__item h2 {
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.blog-list__item h2 a {
  text-decoration: none;
  color: #1c1c1c;
  transition: color 0.2s ease;
}

.blog-list__item h2 a:hover {
  color: #3d5a4a;
}

.blog-list__item p {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 0;
}

/* ============================================================
   RELATED ARTICLES
   ============================================================ */

.related-articles {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e8e5de;
}

.related-articles h3 {
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 600;
}

.related-articles ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-articles ul li {
  margin-bottom: 0.6rem;
}

.related-articles ul li a {
  font-size: 0.95rem;
  color: #3d5a4a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.related-articles ul li a:hover {
  color: #2a3f34;
  text-decoration: underline;
  text-decoration-color: rgba(42, 63, 52, 0.5);
}

/* ============================================================
   TIPS LIST
   ============================================================ */

.tips-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  counter-reset: tip-counter;
}

.tips-list li {
  counter-increment: tip-counter;
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.tips-list li::before {
  content: counter(tip-counter);
  font-family: 'Lora', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #3d5a4a;
  min-width: 1.5rem;
  padding-top: 0.05rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  border-top: 1px solid #e8e5de;
  padding: 3rem 0 2.5rem;
  margin-top: 4rem;
}

.site-footer__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.site-footer__nav a {
  font-size: 0.875rem;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__nav a:hover {
  color: #3d5a4a;
}

.site-footer__copy {
  font-size: 0.825rem;
  color: #9ca3af;
}

/* ============================================================
   MUTED TEXT
   ============================================================ */

.muted {
  color: #6b7280;
}

.label {
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  font-weight: 600;
  display: block;
  margin-bottom: 1rem;
}

/* ============================================================
   DIVIDER
   ============================================================ */

.divider {
  border: none;
  border-top: 1px solid #e8e5de;
  margin: 3rem 0;
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  html {
    font-size: 17px;
  }

  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.4rem; }

  .hero {
    padding: 3.5rem 0 3rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .article-hero {
    padding: 3rem 0 2rem;
  }

  .article-hero h1 {
    font-size: 1.75rem;
  }

  /* Mobile nav */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .site-nav {
    position: sticky;
    top: 0;
    z-index: 200;
  }

  .site-nav__links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #f9f8f5;
    border-bottom: 1px solid #e8e5de;
    padding: 0.5rem 1.5rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }

  .site-nav__links.is-open {
    display: flex;
  }

  .site-nav__links li {
    width: 100%;
    border-bottom: 1px solid #e8e5de;
  }

  .site-nav__links li:last-child {
    border-bottom: none;
  }

  .site-nav__links a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .site-nav__links a.nav-cta {
    border: none;
    padding: 0.85rem 0;
    border-radius: 0;
    color: #3d5a4a;
    font-weight: 600;
  }

  /* Article grid — single column on mobile */
  .article-grid {
    grid-template-columns: 1fr;
  }

  .article-grid__item:nth-child(odd) {
    padding-right: 0;
  }

  .article-grid__item:nth-child(even) {
    padding-left: 0;
    border-left: none;
  }

  .article-grid__item:nth-last-child(1) {
    border-bottom: none;
  }

  .article-grid__item:nth-last-child(2) {
    border-bottom: 1px solid #e8e5de;
  }

  /* Phonebook app block — stack on mobile */
  .phonebook-app-block {
    flex-direction: column;
    align-items: stretch;
  }

  .phonebook-app-block__visual {
    flex: none;
    padding: 1.5rem 1.5rem 1rem;
    justify-content: flex-start;
  }

  .phonebook-app-block__visual img {
    width: 72px;
    height: 72px;
  }

  .phonebook-app-block__body {
    padding: 0 1.5rem 1.5rem;
  }

  .site-footer__nav {
    gap: 0.5rem 1rem;
  }

  blockquote {
    margin: 1.5rem 0;
  }

  .home-section {
    padding: 2.5rem 0;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 16px;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .hero h1 {
    font-size: 1.65rem;
  }

  .hero__subhead {
    font-size: 1rem;
  }

  .article-hero h1 {
    font-size: 1.5rem;
  }

  .container,
  .container--wide {
    padding: 0 1.1rem;
  }

  .site-nav__inner {
    padding: 0 1.1rem;
  }

  .phonebook-block {
    padding: 1.25rem;
  }

  .phonebook-app-block__body {
    padding: 0 1.25rem 1.25rem;
  }

  .tips-list li {
    gap: 0.75rem;
  }
}
