/* ===========================================================
   262 Workshop — shared stylesheet
   Palette pulled from kraft cork + laser-etched ink, matching
   the shop's own coaster line. Curved badge motif throughout
   is a direct callback to the engraved product designs.
=========================================================== */

:root{
  --paper: #f2e9d8;
  --paper-alt: #e9dcbf;
  --paper-deep: #e2d3ae;
  --ink: #2a231d;
  --ink-soft: #4a3f34;
  --walnut: #5c4530;
  --brass: #a97536;
  --brass-dark: #7f5726;
  --rule: #c9b98f;
  --max: 980px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}

body{
  margin:0;
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(169,117,54,0.10), transparent 60%),
    var(--paper);
  color:var(--ink);
  font-family:'Inter', system-ui, sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:0 28px;
}

a{ color:inherit; }

/* ---------- header ---------- */
.site-header{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(242,233,216,0.92);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--rule);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:16px 28px;
  flex-wrap:wrap;
}
.wordmark{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:var(--ink);
}
.tool-icon{ width:26px; height:26px; flex:none; }
.wordmark-text{
  font-family:'Fraunces', serif;
  font-weight:600;
  font-size:19px;
  letter-spacing:0.01em;
}
.top-nav{
  display:flex;
  flex-wrap:wrap;
  gap:6px 4px;
  font-family:'JetBrains Mono', monospace;
}
.nav-link{
  text-decoration:none;
  color:var(--ink-soft);
  font-size:12.5px;
  letter-spacing:0.02em;
  padding:7px 11px;
  border-radius:999px;
  border:1px solid transparent;
  transition:border-color .15s ease, color .15s ease, background .15s ease;
  white-space:nowrap;
}
.nav-link:hover{
  border-color:var(--rule);
  background:var(--paper-alt);
}
.nav-link.active{
  color:var(--paper);
  background:var(--ink);
  border-color:var(--ink);
}

/* ---------- main / hero ---------- */
main{ padding:56px 0 40px; }

.hero{
  display:flex;
  align-items:center;
  gap:40px;
  padding:24px 0 48px;
  flex-wrap:wrap;
}
.hero-text{ flex:1 1 340px; min-width:280px; }
.eyebrow{
  font-family:'JetBrains Mono', monospace;
  font-size:12px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--brass-dark);
  margin:0 0 12px;
}
.hero h1{
  font-family:'Fraunces', serif;
  font-weight:600;
  font-size:clamp(32px, 5vw, 50px);
  line-height:1.05;
  margin:0 0 18px;
  letter-spacing:-0.01em;
}
.hero p{
  font-size:16.5px;
  color:var(--ink-soft);
  max-width:46ch;
  margin:0;
}
.hero-badge-wrap{
  flex:none;
  display:flex;
  justify-content:center;
}

/* ---------- badge (curved-text engraved motif) ---------- */
.badge{ width:230px; height:230px; }
.badge-ring{ fill:none; stroke:var(--ink); stroke-width:1.6; }
.badge-ring-inner{ fill:none; stroke:var(--ink); stroke-width:1; stroke-dasharray:1.5 3.5; opacity:0.7; }
.badge-text{
  font-family:'JetBrains Mono', monospace;
  font-size:10.5px;
  letter-spacing:3px;
  fill:var(--ink);
}
.badge-icon line, .badge-icon rect, .badge-icon circle{ stroke:var(--ink); }

.badge-sm{ width:108px; height:108px; }
.badge-sm .badge-text{ font-size:6.6px; letter-spacing:2px; }

/* ---------- section divider ---------- */
.rule{
  border:none;
  border-top:1px solid var(--rule);
  margin:44px 0;
}
.rule-dashed{
  border:none;
  border-top:1.5px dashed var(--rule);
  margin:44px 0;
}

/* ---------- page title block (subpages) ---------- */
.page-head{
  display:flex;
  align-items:center;
  gap:28px;
  flex-wrap:wrap;
  padding:8px 0 8px;
}
.page-head h1{
  font-family:'Fraunces', serif;
  font-weight:600;
  font-size:clamp(28px, 4.4vw, 42px);
  margin:0 0 10px;
  letter-spacing:-0.01em;
}
.page-head p{
  color:var(--ink-soft);
  margin:0;
  max-width:52ch;
}
.page-head-text{ flex:1 1 320px; }

/* ---------- nav grid on index ---------- */
.tag-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:18px;
  margin-top:8px;
}
.tag-card{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:24px 22px 22px;
  background:var(--paper-alt);
  border:1.5px dashed var(--rule);
  border-radius:14px;
  text-decoration:none;
  color:var(--ink);
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.tag-card::before{
  content:"";
  position:absolute;
  top:16px; left:16px;
  width:9px; height:9px;
  border-radius:50%;
  background:var(--paper);
  border:1.5px solid var(--ink);
}
.tag-card:hover{
  transform:translateY(-3px);
  border-color:var(--brass);
  background:var(--paper-deep);
  box-shadow:0 10px 22px -14px rgba(42,35,29,0.45);
}
.tag-eyebrow{
  font-family:'JetBrains Mono', monospace;
  font-size:11px;
  letter-spacing:0.12em;
  color:var(--brass-dark);
  margin-left:20px;
}
.tag-card h2{
  font-family:'Fraunces', serif;
  font-weight:600;
  font-size:21px;
  margin:0;
}
.tag-card p{
  margin:0;
  font-size:14.5px;
  color:var(--ink-soft);
}
.tag-arrow{
  margin-top:6px;
  font-family:'JetBrains Mono', monospace;
  font-size:12.5px;
  color:var(--walnut);
}

/* ---------- redirect page ---------- */
.redirect-card{
  max-width:480px;
  margin:24px auto 0;
  text-align:center;
  padding:40px 32px 36px;
  background:var(--paper-alt);
  border:1.5px solid var(--rule);
  border-radius:18px;
}
.redirect-card .badge{ margin:0 auto 20px; }
.redirect-card h1{
  font-family:'Fraunces', serif;
  font-size:24px;
  margin:0 0 10px;
}
.redirect-card p{
  color:var(--ink-soft);
  margin:0 0 22px;
  font-size:14.5px;
}
.btn{
  display:inline-block;
  font-family:'JetBrains Mono', monospace;
  font-size:13px;
  letter-spacing:0.05em;
  text-decoration:none;
  color:var(--paper);
  background:var(--ink);
  padding:12px 22px;
  border-radius:999px;
  transition:background .15s ease;
}
.btn:hover{ background:var(--walnut); }
.redirect-url{
  display:block;
  margin-top:16px;
  font-family:'JetBrains Mono', monospace;
  font-size:12px;
  color:var(--brass-dark);
  word-break:break-all;
}

/* ---------- content placeholder grids ---------- */
.placeholder-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(230px, 1fr));
  gap:22px;
  margin-top:36px;
}
.placeholder-card{
  border:1.5px dashed var(--rule);
  border-radius:14px;
  padding:0 0 18px;
  background:var(--paper-alt);
  overflow:hidden;
}
.placeholder-img{
  aspect-ratio:4/3;
  background:
    repeating-linear-gradient(135deg, var(--paper-deep), var(--paper-deep) 10px, var(--paper-alt) 10px, var(--paper-alt) 20px);
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:'JetBrains Mono', monospace;
  font-size:11.5px;
  letter-spacing:0.06em;
  color:var(--walnut);
  text-align:center;
  padding:14px;
  border-bottom:1.5px dashed var(--rule);
}
.placeholder-card h3{
  font-family:'Fraunces', serif;
  font-size:16px;
  margin:14px 20px 4px;
}
.placeholder-card p{
  margin:0 20px;
  font-size:13.5px;
  color:var(--ink-soft);
}

.book-card{
  display:block;
  text-decoration:none;
  color:var(--ink);
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.book-card:hover{
  transform:translateY(-3px);
  border-color:var(--brass);
  box-shadow:0 10px 22px -14px rgba(42,35,29,0.45);
}
.book-img-wrap{
  aspect-ratio:4/3;
  overflow:hidden;
  border-bottom:1.5px dashed var(--rule);
  background:var(--paper-deep);
  display:flex;
  align-items:center;
  justify-content:center;
}
.book-img-wrap img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  display:block;
}

.waiting-note{
  margin-top:36px;
  padding:18px 22px;
  border-left:3px solid var(--brass);
  background:var(--paper-alt);
  border-radius:0 10px 10px 0;
  font-size:14.5px;
  color:var(--ink-soft);
}
.waiting-note strong{ color:var(--ink); }

/* ---------- blank page ---------- */
.blank-main{
  min-height:52vh;
  display:flex;
  align-items:center;
  justify-content:center;
}
.blank-main .page-head{
  flex-direction:column;
  text-align:center;
}

/* ---------- footer ---------- */
.site-footer{
  border-top:1px solid var(--rule);
  padding:34px 0 40px;
  margin-top:40px;
}
.footer-nav{
  display:flex;
  flex-wrap:wrap;
  gap:6px 18px;
  font-family:'JetBrains Mono', monospace;
  font-size:12px;
  margin-bottom:16px;
}
.footer-nav a{
  text-decoration:none;
  color:var(--ink-soft);
}
.footer-nav a:hover{ color:var(--ink); text-decoration:underline; }
.footer-meta{
  margin:0;
  font-size:12.5px;
  color:var(--walnut);
}

/* ---------- responsive ---------- */
@media (max-width:640px){
  .header-inner{ padding:14px 18px; }
  .wrap{ padding:0 18px; }
  main{ padding:36px 0 30px; }
  .hero{ gap:24px; padding:8px 0 32px; }
  .badge{ width:180px; height:180px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .tag-card{ transition:none; }
}

:focus-visible{
  outline:2px solid var(--brass);
  outline-offset:3px;
}

/* Inline Styles for Layout & Image Sizing */
    .about-grid {
      display: flex;
      gap: 2rem;
      align-items: stretch;
      margin-top: 1rem;
    }

    .about-photo {
      height: auto;
      max-height: 100%;
      width: auto;
      max-width: 250px;
      object-fit: cover;
      border-radius: 8px;
      flex-shrink: 0;
    }

    .about-text {
      flex: 1;
    }

    @media (max-width: 650px) {
      .about-grid {
        flex-direction: column;
      }
      
      .about-photo {
        max-width: 100%;
        max-height: 300px;
        margin: 0 auto;
      }
    }

/* Layout container to place image on the left and text on the right */
.about-grid {
  display: flex;
  gap: 2rem;
  align-items: stretch; /* Stretches the image container area to match text height */
}

/* Image styles to restrict height to the text block */
.about-photo {
  height: auto;
  max-height: 100%;
  width: auto;
  max-width: 250px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.about-text {
  flex: 1;
}

/* Responsive adjustment for mobile screens */
@media (max-width: 650px) {
  .about-grid {
    flex-direction: column;
  }
  
  .about-photo {
    max-width: 100%;
    max-height: 300px;
    margin: 0 auto;
  }
}

.about-photo {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  float: right;
  margin: 0 0 1.5rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Clear fix to ensure the container wraps around floated images cleanly */
.about-content::after {
  content: "";
  display: table;
  clear: both;
}

@media (max-width: 600px) {
  .about-photo {
    float: none;
    display: block;
    margin: 0 auto 1.5rem auto;
  }
}

/* Base style: keeps image responsive on smaller devices */
.about-photo {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Laptops & Desktops (screens 768px wide and up) */
@media (min-width: 768px) {
  .about-photo {
    max-width: 250px; /* Limits maximum width on larger screens */
    max-height: 300px; /* Limits maximum height */
    object-fit: cover; /* Prevents image distortion */
  }
}