/*
Theme Name: Atimmy Light
Theme URI: https://atimmy.com
Author: Atimmy Tsai
Author URI: https://atimmy.com
Description: A lightweight founder website theme for Atimmy.com with blog links and a clean notes layout.
Version: 1.5.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: atimmy-light
*/

:root {
  --bg: #f6f1e8;
  --paper: #fffaf2;
  --ink: #191714;
  --muted: #6f675c;
  --soft: #e7dac8;
  --line: rgba(25, 23, 20, 0.12);
  --accent: #b8653b;
  --accent-dark: #7d3e23;
  --deep: #2a211b;
  --card: rgba(255, 250, 242, 0.72);
  --shadow: 0 24px 70px rgba(66, 45, 25, 0.14);
  --radius: 26px;
  --max: 1180px;
}

* { box-sizing: border-box; }

/* Scroll safety fix: some hosting/AI assistant overlays can inject overflow rules.
   Keep the theme vertically scrollable on homepage, pages, and posts. */
html,
body {
  min-height: 100%;
  height: auto !important;
  overflow-y: auto !important;
  overflow-x: hidden;
  position: static !important;
}

.page {
  min-height: 100vh;
  height: auto !important;
  overflow: visible !important;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(184, 101, 59, 0.16), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(42, 33, 27, 0.12), transparent 24%),
    var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.nav-wrap {
  padding: 22px 24px 0;
  position: relative;
  z-index: 10;
}

.site-nav {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.76);
  backdrop-filter: blur(16px);
  padding: 0 12px 0 24px;
  box-shadow: 0 10px 40px rgba(57, 39, 24, 0.08);
}

.brand {
  font-weight: 760;
  letter-spacing: -0.04em;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(184, 101, 59, 0.12);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 620;
}

.nav-links a:hover { color: var(--ink); }

.nav-button {
  color: #fff !important;
  background: var(--deep);
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(42, 33, 27, 0.18);
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent-dark);
  border: 1px solid rgba(184, 101, 59, 0.22);
  background: rgba(255, 250, 242, 0.55);
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 720;
  margin-bottom: 24px;
}

.eyebrow span { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }

h1, h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 520;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

h1 { font-size: clamp(42px, 5.45vw, 74px); max-width: 780px; }
h2 { font-size: clamp(34px, 4vw, 54px); line-height: 1.02; letter-spacing: -0.04em; }
h3 { margin: 0 0 10px; font-size: 18px; letter-spacing: -0.02em; }

.hero p {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 19px;
  max-width: 650px;
}

.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 52px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 760;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; border-color: transparent; box-shadow: 0 16px 34px rgba(184, 101, 59, 0.24); }
.btn-secondary { background: rgba(255, 250, 242, 0.7); color: var(--ink); }
.btn-light { background: #fffaf2; color: var(--ink); border-color: transparent; }

.hero-note { margin-top: 30px; display: flex; gap: 16px; color: var(--muted); font-size: 14px; max-width: 540px; }
.hero-note strong { color: var(--ink); }

.portrait-card {
  position: relative;
  margin-bottom: 42px;
}

.portrait-shell {
  border-radius: 42px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: var(--shadow);
  aspect-ratio: 0.86;
  background: var(--soft);
  transform: rotate(1.5deg);
}

.portrait-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.02);
}

.floating-card {
  position: absolute;
  left: 20px;
  bottom: -46px;
  width: 230px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,250,242,0.88);
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow: 0 18px 50px rgba(39,27,18,0.18);
  backdrop-filter: blur(18px);
}

.floating-card .small-title {
  font-size: 12px;
  color: var(--accent-dark);
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.floating-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.45;
}

section { max-width: var(--max); margin: 0 auto; padding: 74px 24px; }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 28px; }
.kicker { color: var(--accent-dark); font-size: 13px; font-weight: 820; text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 10px; }
.section-head p, .section-intro { color: var(--muted); font-size: 17px; margin: 0; max-width: 520px; }

.work-grid, .notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.work-grid.four { grid-template-columns: repeat(4, 1fr); }
.work-card, .note-card, .project-panel, .statement-panel, .post-content, .post-card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 16px 44px rgba(66, 45, 25, 0.08);
}
.work-card { padding: 24px; min-height: 228px; }
.icon { width: 42px; height: 42px; border-radius: 14px; background: rgba(184,101,59,0.12); display: flex; align-items: center; justify-content: center; color: var(--accent-dark); font-weight: 900; margin-bottom: 26px; }
.work-card p, .note-card p, .project-panel p, .statement-panel p, .post-card p { margin: 0; color: var(--muted); font-size: 15px; }

.project-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(42,33,27,0.95), rgba(71,48,34,0.92)), var(--deep);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.project-panel:before { content: ""; position: absolute; width: 340px; height: 340px; right: -120px; top: -140px; border-radius: 50%; background: rgba(184,101,59,0.35); filter: blur(8px); }
.project-left { min-height: 360px; border-radius: 22px; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.12), transparent 25%), rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.11); padding: 0; display: flex; flex-direction: column; justify-content: space-between; position: relative; z-index: 1; overflow: hidden; }
.project-image { width: 100%; height: 100%; min-height: 360px; object-fit: cover; display: block; }
.project-image-caption { position: absolute; left: 24px; right: 24px; bottom: 24px; font-family: Georgia, "Times New Roman", serif; font-size: 30px; line-height: 1.04; letter-spacing: -0.04em; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,0.38); }
.project-left:after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.34), transparent 46%); pointer-events: none; }
.logo-big { font-size: 34px; font-weight: 850; letter-spacing: -0.06em; }
.project-tagline { font-family: Georgia, "Times New Roman", serif; font-size: 36px; line-height: 1.02; letter-spacing: -0.04em; max-width: 360px; }
.project-content { padding: 40px 36px 38px 0; position: relative; z-index: 1; align-self: center; }
.project-content .kicker { color: #eab28c; }
.project-content h2 { color: #fff; }
.project-content p { color: rgba(255,255,255,0.72); font-size: 17px; margin-top: 20px; max-width: 560px; }
.project-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 26px 0 30px; }
.project-list div { border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); border-radius: 16px; padding: 12px 14px; font-size: 14px; color: rgba(255,255,255,0.86); }

.note-card { padding: 24px; min-height: 250px; display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.note-card:hover { transform: translateY(-4px); box-shadow: 0 22px 58px rgba(66,45,25,0.12); }
.label { display: inline-flex; width: fit-content; color: var(--accent-dark); background: rgba(184,101,59,0.1); border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 760; margin-bottom: 20px; }
.note-link { color: var(--muted); font-size: 13px; font-weight: 820; margin-top: 22px; }

.statement-panel { padding: clamp(28px, 5vw, 58px); display: grid; grid-template-columns: 0.78fr 1.22fr; gap: 38px; align-items: start; }
.statement-panel p { font-size: 20px; line-height: 1.65; color: var(--muted); }

.contact-strip { max-width: var(--max); margin: 0 auto 40px; padding: 0 24px 70px; }
.contact-inner { border-radius: 34px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 36px; box-shadow: 0 24px 70px rgba(184,101,59,0.22); }
.contact-inner h2 { font-size: clamp(30px, 4vw, 48px); color: #fff; }
.contact-inner p { color: rgba(255,255,255,0.78); margin: 12px 0 0; max-width: 640px; }

.page-hero { max-width: var(--max); margin: 0 auto; padding: 86px 24px 44px; }
.page-hero p { color: var(--muted); font-size: 19px; max-width: 760px; }
.blog-list { max-width: var(--max); margin: 0 auto; padding: 20px 24px 86px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-card { padding: 26px; min-height: 250px; display: flex; flex-direction: column; justify-content: space-between; }
.post-card h2 { font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 24px; line-height: 1.15; letter-spacing: -0.04em; }
.post-meta { color: var(--accent-dark); font-size: 13px; font-weight: 760; margin-bottom: 16px; }
.post-content { max-width: 860px; margin: 36px auto 90px; padding: clamp(28px, 5vw, 56px); }
.post-content h1 { font-size: clamp(42px, 6vw, 68px); margin-bottom: 18px; }
.post-content h2 { font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 28px; line-height: 1.15; letter-spacing: -0.04em; margin: 38px 0 14px; }
.post-content p, .post-content li { color: var(--muted); font-size: 18px; }
.post-content a { color: var(--accent-dark); font-weight: 750; }

footer { border-top: 1px solid var(--line); padding: 26px 24px 40px; color: var(--muted); font-size: 14px; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--ink); }

@media (max-width: 980px) {
  .hero, .project-panel, .statement-panel { grid-template-columns: 1fr; }
  .hero { padding-top: 62px; }
  .portrait-card { max-width: 560px; }
  .work-grid, .work-grid.four, .notes-grid, .blog-list { grid-template-columns: repeat(2, 1fr); }
  .project-content { padding: 18px 12px 20px; }
  .contact-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 720px) {
  .nav-links a:not(.nav-button) { display: none; }
  .site-nav { min-height: 62px; padding-left: 18px; }
  .hero { grid-template-columns: 1fr; padding: 54px 20px 56px; gap: 36px; }
  h1 { font-size: 44px; }
  .hero p { font-size: 17px; }
  section { padding: 54px 20px; }
  .section-head { display: block; }
  .section-head p { margin-top: 14px; }
  .work-grid, .work-grid.four, .notes-grid, .blog-list, .project-list { grid-template-columns: 1fr; }
  .floating-card { left: 16px; bottom: 16px; width: calc(100% - 32px); }
  .portrait-shell { border-radius: 30px; transform: none; }
  .project-left, .project-image { min-height: 280px; }
  .project-image-caption { font-size: 26px; }
  .contact-strip { padding: 0 20px 54px; }
  .contact-inner { padding: 28px; border-radius: 26px; }
}
