/* =========================================================
   blog-art.css (v1.0)
   - Contains all CSS Art styles (Planner, Memo, Pencil, Eraser)
   - Loaded only by functions.php on the front page.
   ========================================================= */

/* === CSS ART: PLANNER (UPGRADED) === */
.planner-icon {
    position: absolute;
    top: 120px;
    left: 60px;
    z-index: 3;
    width: 220px;
    height: 280px;
    flex-shrink: 0;
    border-radius: 8%;
    box-shadow:
        0px 4px 12px 2px rgba(42, 30, 26, 0.6),
        0px 0px 4px 4px rgba(167,115,35,1.0) inset,
        -4px 0px 0px 5px rgba(137,80,20,1.0) inset,
        -5px 0px 0px 5px rgba(0,0,0,0.2) inset,
        -9px 0px 0px 5px rgba(254,251,248,1.0) inset,
        -10px 0px 0px 5px rgba(0,0,0,0.2) inset,
        -14px 0px 0px 5px rgba(254,251,248,1.0) inset,
        -15px 0px 0px 5px rgba(0,0,0,0.2) inset,
        -19px 0px 0px 5px rgba(254,251,248,1.0) inset,
        -20px 0px 0px 5px rgba(0,0,0,0.2) inset,
        -24px 0px 0px 5px rgba(254,251,248,1.0) inset,
        -25px 0px 0px 5px rgba(0,0,0,0.2) inset;
}
.planner-icon::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 196px;
    height: 280px;
    border-radius: 7%;
    box-shadow: 0px 0px 4px 5px rgba(255,255,255,0.1) inset;
    background:
        radial-gradient(8px 8px at 20% 25%, rgba(255,255,255,.04), transparent 60%),
        radial-gradient(10px 10px at 70% 60%, rgba(0,0,0,.08), transparent 70%),
        radial-gradient(100% 100% at 50% 50%, rgba(0,0,0,0), rgba(0,0,0,.25) 80%),
        radial-gradient(1200px 500px at 50% -200px, rgba(255,255,255,.08), transparent 60%),
        linear-gradient(to bottom, rgba(0,0,0,0.0), rgba(0,0,0,0.3)),
        linear-gradient(to right,
        rgba(167,115,35,1.0) 0px,
        rgba(179,122,37,1.0) 52px,
        rgba(140,96,29,1.0) 56px,
        rgba(167,115,35,1.0) 60px
        );
    background-size: 120px 120px, 180px 180px, auto, auto, auto, auto;
}
.planner-icon::after {
    content: "";
    position: absolute;
    top: 114px;
    right: 0;
    width: 84px;
    height: 38px;
    border-radius: 12px 0 0 12px;
    box-shadow:
        0px 0px 2px 2px rgba(255,255,255,0.1) inset,
        0px 2px 0px 0px rgba(140,96,29,1.0),
        -1px 3px 2px 2px rgba(0,0,0,0.1);
    background:
        linear-gradient(to right, rgba(0,0,0,0.0) 49px, rgba(0,0,0,0.2)),
        radial-gradient(
        circle at 19px 19px,
        rgba(240,190,55,1.0) 0px,
        rgba(245,195,60,1.0) 4px,
        rgba(250,200,130,1.0) 6px,
        rgba(255,244,200,1.0) 7px,
        rgba(140,96,29,1.0) 8px,
        rgba(167,115,35,1.0) 11px
        );
}

/* === STICKY MEMO (RESTORED) === */
.sticky-memo {
    position: absolute;
    top: 140px;
    right: 100px;
    width: 240px;
    background: linear-gradient(135deg, #fff9b0 0%, #fff5a0 100%);
    padding: 24px 20px 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    transform: rotate(2deg);
    z-index: 4;
}
.sticky-memo::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background: rgba(200, 200, 180, 0.5);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.sticky-memo h3,
.sticky-memo .widget-title {
    font-family: "Caveat", cursive;
    font-size: 1.5rem;
    color: #3b2411;
    margin-bottom: 12px;
    border-bottom: 2px solid #e07a00;
    padding-bottom: 8px;
    margin-top: 0;
}
.sticky-memo ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.sticky-memo li {
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.4;
}
.sticky-memo li::before {
    content: "\2713\20\20";
    position: absolute;
    left: 0;
    top: 0;
}
.sticky-memo a {
    color: #3b2411;
    text-decoration: none;
    transition: color 0.3s ease;
}
.sticky-memo a:hover {
    color: #e07a00;
}
.sticky-memo .widget {
    margin-bottom: 1rem;
}
.sticky-memo .search-form {
    display: flex;
}
.sticky-memo .search-field {
    flex-grow: 1;
    border: 1px solid #e07a00;
    padding: 4px 8px;
    font-size: 0.9rem;
    border-radius: 4px 0 0 4px;
}
.sticky-memo .search-submit {
    background: #e07a00;
    border: 1px solid #e07a00;
    color: white;
    padding: 4px 10px;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
}

/* === CSS ART: PENCIL (UPGRADED) === */
.pencil-wrapper-link {
    display: block;
    position: absolute;
    right: 80px;
    bottom: 50px;
    width: 30px;
    z-index: 3;
    transition: transform 0.3s ease;
    text-decoration: none;
}
.pencil-wrapper-link:hover {
    transform: scale(1.1) rotate(-10deg);
}
.pencil-wrapper-link[href="#"] {
    pointer-events: none;
    cursor: default;
}
.pencil-wrapper-link[href="#"]:hover {
    transform: none;
}
.pencil-wrapper {
    position: relative;
    margin: 60px 0 40px 0;
    width: 30px;
    flex-shrink: 0;
    transform: rotate(10deg);
}
.pencil-eraser {
  position: relative; top: 1px; left: -8px;
  width: 30px; height: 14px;
  box-shadow: 0 2px 1px #b57070, 0 -1px 1px #b57070;
  border-top-right-radius: 3px; border-top-left-radius: 3px;
  background: linear-gradient(to right, #cd8282 0%, #f5aaaa 40%, #b96e6e 75%, #b96e6e 100%);
}
.pencil-sleeve {
  position: relative; top: 2px; left: -9px;
  width: 32px; height: 21px;
  border-radius: 2px;
  border-bottom: solid thin #2c2c2c; border-right: solid thin #2c2c2c;
  background: linear-gradient(to right, #867163 0%, #f8e0cb 40%, #eed3be 50%, #4c3b30 100%);
  z-index: 2;
}
.pencil-sleeve:before {
  position: absolute; content: "";
  top: 6px; left: 4px;
  width: 24px; height: 6px;
  border-top: solid 2px rgba(0,0,0,.07); border-bottom: solid 2px rgba(0,0,0,.07);
  border-radius: 1px;
}
.pencil-shaft {
  position: relative; top: 0;
  width: 15px; height: 220px;
  border-bottom-left-radius: 8px; border-bottom-right-radius: 8px;
  z-index: 1;
}
.pencil-shaft::before {
  position: absolute; content: "ITAKO999";
  width: 150px; height: 20px;
  top: 70px; left: -68px;
  transform-origin: center center; transform: rotate(-90deg);
  font-family: 'Roboto', sans-serif;
  font-size: 10px; color: rgba(255,255,255,0.7);
  text-align: center; line-height: 20px;
  z-index: 3; letter-spacing: 0.5px;
}
.pencil-shaft:after {
  position: absolute; content: "";
  width: 7px; top: 0; left: 15px;
  border-top-right-radius: 2px; border-bottom-left-radius: 6px;
}
.pencil-shaft-left-side {
  position: absolute; content: "";
  width: 7px; top: 0; left: -8px;
  border-top-left-radius: 3px; border-bottom-right-radius: 8px;
}
.pencil-shaft,
.pencil-shaft-left-side,
.pencil-shaft:after { height: 220px; }
.pencil-point {
  position: relative; top: -2px; left: -8px;
  width: 0; height: 0;
  border-top: solid 60px rgba(202,176,147,1);
  border-right: solid 16px rgba(202,176,147,0);
  border-left: solid 16px rgba(202,176,147,0);
}
.pencil-point:before {
  position: absolute; content: "";
  top: -70px; left: -13px;
  width: 25px; height: 7px;
  background: rgba(197,173,145,1);
}
.pencil-point:after {
  position: absolute; content: "";
  top: -69px; left: -11px;
  width: 21px; height: 60px;
  background: linear-gradient(to right, rgba(208,181,159,0.65) 0, rgba(253,231,213,1) 40%, rgba(240,187,162,.5) 85%, rgba(197,173,145,1) 100%);
  border-radius: 50%/0 0 80% 80%;
}
.pencil-lead {
  position: relative; top: -13px; left: 4px;
  width: 0; height: 0;
  border-top: solid 12px #000;
  border-right: solid 3px rgba(255,255,255,0);
  border-left: solid 3px rgba(255,255,255,0);
  z-index: 1;
}
.pencil-lead:before {
  position: absolute; content: "";
  top: -12px; left: -2px;
  border-top: solid 10px rgba(255,255,255,.6);
  border-right: solid 0 rgba(0,255,0,0);
  border-left: solid 2px rgba(255,255,255,0);
}
.pencil-lead:after {
  position: absolute; content: "Comments";
  top: -110px; left: -37px; width: 74px;
  display: block; color: #000;
  font: small-caps 10px 'helvetica';
  text-transform: lowercase; text-align: right;
  letter-spacing: 1px;
  text-shadow: 1px 1px 0 rgba(255,255,255,.35);
  transform: rotate(-90deg);
}
.pencil-wrapper.green .pencil-shaft { background-color: #2b8122; border-bottom: solid 4px #2b8122; }
.pencil-wrapper.green .pencil-shaft-left-side {
  background-color: #75df25; border-right: solid 1px #75df25;
  border-bottom: solid 3px #75df25; border-left: solid thin #46b100;
}
.pencil-wrapper.green .pencil-shaft:after {
  background-color: #1e7605; border-right: solid 1px #0d6504;
  border-bottom: solid 3px #1e7605; border-left: solid thin #1e7605;
}

/* === CSS ART: ERASER (UPGRADED) === */
.eraser-wrapper {
    position: absolute;
    left: 100px;
    bottom: 80px;
    z-index: 3;
}
.eraser {
    width: 165px; height: 68px;
    position: relative;
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0,0,0,.25);
    transform: rotate(-9deg);
    flex-shrink: 0;
    font-family: "Arial", "Noto Sans JP", sans-serif;
}
.eraser::before {
    content: ""; position: absolute;
    left: 0; top: 0;
    width: 12%; height: 100%;
    background: #fdfdfd;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    z-index: 1;
}
.eraser-sleeve {
    position: absolute; right: 0; top: 0;
    width: 92%; height: 100%;
    border-radius: 0 4px 4px 0;
    overflow: hidden;
    border: 1px solid #333;
    box-shadow: inset 0 2px 3px rgba(0,0,0,.15);
    background-color: #fff;
}
.eraser-sleeve::before {
    content: ""; position: absolute;
    top: 0; left: 0;
    width: 100%; height: 33.3%;
    background: #1e3a8a;
}
.eraser-sleeve::after {
    content: ""; position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 33.3%;
    background: #000;
}
.eraser-text {
    position: absolute;
    top: 42%; left: 57%;
    transform: translate(-50%,-50%);
    text-align: center;
    width: 80%; z-index: 2;
}
.eraser-text .mono {
    display: block; font-weight: 900;
    font-size: 18px; letter-spacing: 2px;
    color: #000;
}
.eraser-text .brand {
    display: block; font-size: 5px;
    font-style: italic; color: #fff;
    margin-top: -5px;
}
.eraser-text .small {
    font-size: 2px; letter-spacing: 1px;
    margin-top: 15px; color: #fff;
}
.shadow {
    position: absolute; bottom: -8px; left: 12%;
    width: 80%; height: 8px;
    background: radial-gradient(ellipse at center,rgba(0,0,0,.4) 0,transparent 70%);
    filter: blur(3px);
}

/* =========================================================
   CSS ART: Pocket Watch (v4.1 - Fixed)
   ================================S========================= */

.pocket-watch {
  /* === Positioning for the desk === */
  position: absolute;
  top: 450px;
  left: 80px;
  z-index: 4; /* Higher than other desk items */
  transition: transform 0.3s ease;
  
  /* === Styles for the watch === */
  --watch-size: 160px;
  --brass: #b38b4e;
  --brass-dark: #7b5c2d;
  --ivory: #f6f2e9;
  --ink: #163a64;
  --sec: #c21a25;
  --shadow: rgba(0,0,0,.35);
  
  width: var(--watch-size);
  height: calc(var(--watch-size) * 1.25);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
}

.pocket-watch:hover {
  transform: translateY(-5px) rotate(3deg);
}

/* Shadow beneath watch */
.watch-shadow {
  position: absolute;
  inset: auto 10% 6% 10%;
  height: 14%;
  border-radius: 50%;
  background: 
    radial-gradient(ellipse at 50% 40%, rgba(0,0,0,.4), transparent 60%),
    radial-gradient(ellipse at 50% 70%, rgba(0,0,0,.18), transparent 70%);
  filter: blur(6px);
}

/* Ring */
.ring {
  position: absolute;
  top: calc(var(--watch-size) * .15);
  left: 50%;
  width: calc(var(--watch-size) * .26);
  height: calc(var(--watch-size) * .12);
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(ellipse at 50% 60%, #f7dba6 10%, #b88a4b 55%, #8e6935 70%);
  box-shadow: 
    inset 0 0 2px rgba(255,255,255,.6), 
    0 2px 4px rgba(0,0,0,.35);
  z-index: 6;
}

/* Crown/stem - rectangular connector */
.crown {
  position: absolute;
  top: calc(var(--watch-size) * .19);
  left: 50%;
  width: calc(var(--watch-size) * .10);
  height: calc(var(--watch-size) * .08);
  transform: translateX(-50%);
  background: 
    linear-gradient(to bottom, 
      #d9b37b 0%, 
      #b88a4b 25%, 
      #8e6935 50%, 
      #b88a4b 75%, 
      #d9b37b 100%);
  border-radius: 3px;
  box-shadow: 
    inset 1px 0 1px rgba(255,255,255,.5),
    inset -1px 0 1px rgba(0,0,0,.3),
    0 2px 4px rgba(0,0,0,.4);
  z-index: 4;
}

/* Bezel - outer brass case */
.bezel {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: var(--watch-size);
  height: var(--watch-size);
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.8), rgba(255,255,255,0) 50%),
    radial-gradient(circle at 65% 70%, rgba(0,0,0,.15), transparent 60%),
    radial-gradient(circle at 50% 50%, #d9b37b, #b38b4e 55%, #7b5c2d 70%, #5b401f 78%, #3f2a12 85%);
  box-shadow:
    0 4px 10px var(--shadow),
    inset 0 4px 8px rgba(255,255,255,.35),
    inset 0 -4px 8px rgba(0,0,0,.25);
  padding: calc(var(--watch-size) * .06);
}

/* Dial - watch face */
.dial {
  position: relative;
  width: 98%;
  height: 98%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 55%, #fff 0, #f9f6ef 60%, #eee7d9 100%);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.06);
  overflow: hidden;
}

/* Minute tick marks */
.ticks, .ticks::before {
  position: absolute;
  inset: 0;
}
.ticks::before {
  content: "";
  display: block;
}
.ticks {
  --tick: conic-gradient(from -90deg,
    transparent 0 0.5deg, #333 0.5deg 1deg, transparent 1deg);
  mask: radial-gradient(circle at 50% 50%, transparent 0 42%, #000 42% 100%);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 0 42%, #000 42% 100%);
  background: var(--tick);
  opacity: .65;
}

/* Hour numerals */
.nums span {
  position: absolute;
  left: 47%;
  top: 40%;
  transform: 
    rotate(calc(30deg * var(--n))) 
    translateY(calc(var(--watch-size) * -.36)) 
    rotate(calc(-30deg * var(--n)));
  transform-origin: center;
  font-size: calc(var(--watch-size) * .14);
  font-weight: 600;
  color: var(--ink);
  text-shadow: 0 1px 0 #fff;
  z-index: 1;
}

/* Clock hands */
.hand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: 50% 88%;
  transform: translate(-50%, -88%) rotate(0deg);
  border-radius: 3px;
  /* FIX: Removed this line to prevent "jumping"
    transition: transform 0.1s cubic-bezier(0.4, 0.0, 0.2, 1); 
  */
}
.hand.hour {
  width: 6px;
  height: calc(var(--watch-size) * .26);
  background: linear-gradient(#2a3b57, #102338);
  box-shadow: 0 0 1px rgba(0,0,0,.3);
  z-index: 2;
}
.hand.min {
  width: 4px;
  height: calc(var(--watch-size) * .34);
  background: linear-gradient(#345a8a, #173052);
  z-index: 2;
}
.hand.sec {
  width: 2px;
  height: calc(var(--watch-size) * .38);
  background: var(--sec);
  z-index: 2;
}

/* Center pin */
.pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffd, #caa16b 60%, #7b5c2d 100%);
  box-shadow: 
    0 0 0 2px #6f5230, 
    inset 0 1px 2px rgba(255,255,255,.7);
}

/* Label text */
.label {
  position: absolute;
  left: 52%;
  top: 55%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
}
.label-top {
  display: block;
  font-variant: small-caps;
  letter-spacing: .06em;
  font-weight: 700;
  color: var(--ink);
  text-shadow: 0 1px 0 #fff;
  font-size: calc(var(--watch-size) * .06);
}
.label-bottom {
  display: block;
  margin-top: -5px;
  font-size: calc(var(--watch-size) * .04);
  color: #6a624f;
}

/* Glass reflection overlay */
.glass {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.65), rgba(255,255,255,.05) 45%, transparent 55%),
    linear-gradient(115deg, rgba(255,255,255,.35) 0 35%, rgba(255,255,255,0) 60%);
  mix-blend-mode: screen;
  pointer-events: none;
}

/* =========================================================
   Mobile Responsive - Hide Desk Items
   ========================================================= */

@media (max-width: 768px) {
    /* Hide all the CSS art items on mobile */
    .planner-wrapper-link,
    .sticky-memo,
    .pencil-wrapper-link,
    .eraser-wrapper,
    .pocket-watch {
        display: none;
    }
}

/* =========================================================
   POCKET WATCH - FONT STYLES (Moved from template)
   ========================================================= */

/* small caps for city name */
.label-bottom .sc {
    font-variant: small-caps;
    letter-spacing: 0.08em;
    text-transform: lowercase;
    /* ensures small-cap form instead of all-caps */
}

.nums span {
    font-family: "Noto Sans Mongolian", "Mongolian Baiti", serif;
}