@import url('https://fonts.cdnfonts.com/css/chicagoflf');
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500;600&display=swap');

:root {
  --sys-gray: #ccc;
  --sys-light: #eee;
  --sys-dark: #888;
  --sys-darker: #444;

  --sys-purple: #6a5acd;
  --sys-font: "ChicagoFLF", "Chicago", "Geneva", "Verdana", sans-serif;
  
  --bg-main: #5f9ea0;
  --bg-dark: #4f8e90;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
  font-family: var(--sys-font);
  
  background-color: var(--bg-main);
  
  background-image: repeating-linear-gradient(
      45deg,
      var(--bg-main) 25%,
      transparent 25%,
      transparent 75%,
      var(--bg-main) 75%,
      var(--bg-main)
    ),
    repeating-linear-gradient(
      45deg,
      var(--bg-main) 25%,
      var(--bg-dark) 25%,
      var(--bg-dark) 75%,
      var(--bg-main) 75%,
      var(--bg-main)
    );
  background-position: 0 0, 10px 10px;
  background-size: 20px 20px;
  
  transition: background-color 0.5s ease;
}

.bevel-out {
  background: var(--sys-gray);
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #555;
  border-bottom: 2px solid #555;
  box-shadow: 1px 1px 0 #000;
}

.bevel-in {
  background: #fff;
  border-top: 2px solid #555;
  border-left: 2px solid #555;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

.inset {
    background: /*#BBB*/ none;
    border-top: 2px solid #555;
    border-left: 2px solid #555;
    border-right: 2px solid #FFF;
    border-bottom: 2px solid #FFF;
}

.system-bar {
  height: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 4px;
  position: relative;
  z-index: 100;
  user-select: none;
}

.menu-left,
.menu-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.menu-item {
  padding: 4px 10px;
  cursor: pointer;
  font-size: 14px;
  position: relative;
  border-radius: 2px;
}

.menu-item:hover,
.menu-item:active,
.menu-item.active {
  background: none;
  box-shadow: none; 
}

.menu-item.flash, 
.dropdown button.flash {
    background: #000 !important;
    color: #FFF !important;
}

.dropdown {
  display: none;
  position: absolute;
  top: 30px;
  left: 0;
  min-width: 200px;
  padding: 2px;
  z-index: 101;
}
.menu-item.active .dropdown {
  display: block;
}

.dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 6px 12px;
  font-family: var(--sys-font);
  font-size: 12px;
  cursor: pointer;
}
.dropdown button:hover {
  background: #AAA9A9;
  color: /*#fff*/ #000;
}
.separator {
  height: 2px;
  margin: 4px;
  background: #999;
}

.clock {
  padding: 2px 8px;
  background: #ddd;
  font-size: 12px;
  letter-spacing: 1px;
  user-select: none;
}

.desktop-icons-right {
    position: absolute;
    top: 50px; right: 20px;
    display: flex; flex-direction: column;
    gap: 20px;
    z-index: 10;

    align-items: center;
}

.desktop-icon {
    display: flex; flex-direction: column; align-items: center;
    cursor: pointer;
    color: #FFF;
    text-shadow: 1px 1px 0 #000;
    width: 64px;
}
.desktop-icon img {
    width: 48px; height: 48px;
    margin-bottom: 4px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5));
}
.desktop-icon span {
    background: rgba(0,0,0,0.3);
    padding: 2px 4px;
    border-radius: 4px;

    font-size: 12px;
}
.desktop-icon:active img { opacity: 0.7; }

.desktop {
  height: calc(100% - 32px);
  position: relative;
  overflow: hidden; 
}

.window {
  position: absolute;
  top: 50px; left: 50px;
  width: 640px;
  height: 440px;
  min-width: 300px; min-height: 200px;
  display: flex;
  flex-direction: column;
  padding: 4px;
  transition: opacity 0.2s;
  box-shadow: 10px 10px 0 rgba(0,0,0,0.2);
  z-index: 20;
  user-select: none;
}

.window.hidden {
  opacity: 0;
  pointer-events: none;
  display: none;
  user-select: none;
}

.window-header {
  height: 30px;
  margin-bottom: 4px;
  background: linear-gradient(to bottom, #ddd, #aaa);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  cursor: default;
  user-select: none;
}

.win-btn {
  width: 16px;
  height: 16px;
  background: #fff;
  border: 1px solid #444;
  box-shadow: inset 1px 1px 0 #fff, 1px 1px 0 #000;
  cursor: pointer;
  user-select: none;
}
.win-btn:active {
  background: #000;
  box-shadow: inset 1px 1px 0 #000;
  user-select: none;
}

.window-title-bar {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 8px;
  overflow: hidden;
  user-select: none;
}

.title-lines {
  flex-grow: 1;
  height: 4px;
  border-top: 1px solid #888;
  border-bottom: 1px solid #fff;
  margin: 0 4px;
}
.title-text {
  font-weight: bold;
  font-size: 12px;
  color: #222;
  text-shadow: 1px 1px 0 #eee;
}

.window-body {
  flex-grow: 1;
  display: flex;

  flex-direction: column;
  height: 100%; 
  overflow: hidden;
}

.window-content-frame {
  flex-grow: 1;
  background: #fff;
  padding: 2px;
  overflow: hidden;
  position: relative;
  user-select: none;
}

.window-content {
  height: 100%;
  overflow-y: auto;
  padding: 20px;
  font-family: "EB Garamond", sans-serif;
  font-size: 18px; 
  user-select: text;
  font-feature-settings: "ss06";
  cursor: text;
  user-select: text;
}
.window-content a {
    color: var(--sys-purple);
    cursor: pointer;
    text-decoration: underline;
}

.window-content img {
    max-width: 100%;
    height: auto;
    user-select: none;
}

.window-content code {
    font-weight: bold;
    font-family: "SF Mono", "Segoe UI Mono", "Roboto Mono", monospace;
    font-size: 0.85em;
}

.window-footer {
  height: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 2px; padding-left: 4px;
}
.footer-text { 
    font-size: 10px;
    color: #555;
    user-select: none;
}

.resize-handle {
  width: 16px; height: 16px;
  cursor: se-resize;
  background-color: #c0c0c0;
  border: 2px solid;
  border-color: #fff #444 #444 #fff;

  background-position: center;
  background-repeat: no-repeat;
  background-size: 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' fill='none' transform='rotate(45)' stroke='%23000000' stroke-width='2.9' stroke-linejoin='round'%3E%3Cpath d='M1,12 L8,4 L8,9 L16,9 L16,4 L23,12 L16,20 L16,15 L8,15 L8,20 Z' /%3E%3C/svg%3E");
  z-index: 900;
  user-select: none;
  cursor: grab;
}

.resize-handle:active {
  width: 16px; height: 16px;
  cursor: se-resize;
  background-color: #c0c0c0;
  border: 2px solid;
  border-color: #fff #444 #444 #fff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' fill='none' transform='rotate(45)' stroke='%23000000' stroke-width='2.9' stroke-linejoin='round'%3E%3Cpath d='M1,12 L8,4 L8,9 L16,9 L16,4 L23,12 L16,20 L16,15 L8,15 L8,20 Z' /%3E%3C/svg%3E");
  z-index: 900;
  user-select: none;
  cursor: grabbing;
}

.dock-container {
  position: fixed;
  bottom: 20px;
  left: 0;
  display: flex;
  align-items: flex-end;
  z-index: 900;
}

.dock-tab-pill {
    position: absolute;
    right: -24px; 
    top: 50%;
    transform: translateY(-50%);
    width: 24px; height: 60px;
    background: var(--sys-gray);
    border-radius: 0 12px 12px 0; 
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 4px 2px 5px rgba(0,0,0,0.2);
    border-left: 10px;
}
.dock-tab-pill:active { background: #AAA; }

.pill-grip {
    font-size: 10px; color: #555; 
    transform: rotate(90deg); 
    letter-spacing: -1px;
    padding-bottom: -100px;
    margin-right: 2px;
}

.dock-drawer {
  display: flex; 
  align-items: center;
  background: var(--sys-gray);
  padding: 4px;
  transform: translateX(-100%); 
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  border-radius: 0 6px 6px 0;
  box-shadow: 4px 4px 10px rgba(0,0,0,0.3);
}

.dock-container.open .dock-drawer {
  transform: translateX(0); 
}

.dock-track {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  background: #aaa;
  padding: 0 12px;

  border-radius: 4px;
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.dock-icon {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  width: 48px;
  opacity: 0.9;
  transition: transform 0.2s;
}
.dock-icon:hover {
  opacity: 1;
  transform: translateY(-4px) scale(1.1);
}

.dock-icon img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated; 
}
.dock-icon span {
  font-size: 10px;
  margin-top: 4px;
  font-family: var(--sys-font);
  color: #000;
}

.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.05) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 9999;
}

.contact-container {
    display: flex; flex-direction: column; height: 100%;
}
.contact-header {
    margin: 0 0 15px 0;
}
.contact-to-row {
    margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.contact-row {
    display: flex; gap: 10px; margin-bottom: 10px; align-items: center;
}
.contact-label {
    min-width: 60px;
}
.contact-input {
    flex-grow: 1; padding: 4px; border: 2px inset #eee; font-family: inherit; font-size: 18px;
}
.contact-textarea {
    flex-grow: 1; width: 100%; padding: 8px; border: 2px inset #eee; resize: none; font-family: inherit; font-size: 18px; margin-bottom: 10px;
}
.contact-footer {
    align-self: flex-end;
}
.contact-btn {
    padding: 6px 12px; border: 2px outset #eee; background: #ccc; cursor: pointer; font-family: inherit;
}

@media (max-width: 768px) {
    .desktop-icons-right { display: none !important; }
    .pinstripe-box { display: none !important; }
    .system-bar { padding: 0 2px; }
    .clock { font-size: 10px; padding: 2px 4px; }
    .menu-item { padding: 6px 8px; }
    .window {
        width: 90% !important;
        left: 5% !important;
        top: 60px !important;    
        height: 70dvh !important;
        min-width: 0;
    }
    .window-content { padding: 10px !important; display: block; flex-direction: column; align-items: center; }
    .window-header { height: 36px; }
    .win-btn { width: 24px; height: 24px; }
    .dock-tab-pill { width: 32px; height: 70px; }
    .dock-track { height: 70px; gap: 8px; padding: 0 8px; }
    .dock-icon { width: 44px; }
    .dock-icon img { width: 28px; height: 28px; }
    .contact-row { flex-direction: column; align-items: stretch; gap: 2px; }
    .contact-to-row { flex-wrap: wrap; }
    .contact-label { min-width: auto; margin-bottom: 2px; }
    .resize-handle {
        opacity: 0.3;
        pointer-events: none;
        filter: grayscale(100%);
    }

    .dropdown {
        min-width: 140px;
        max-width: 160px;
    }

    .dropdown button {
        font-size: 12px;
        padding: 8px 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.apple-lookalike {
  font-family: 'EB Garamond', serif;
  transform: scaleX(0.8); 
  transform-origin: left;
  font-weight: 400; 
}

.post-unit { margin-bottom: 20px; }
.post-header-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.post-title-small { font-weight: bold; font-size: 1.1em; width: 50%; word-wrap: break-word; line-height: 1.2; }
.read-more-link { color: var(--sys-purple); text-decoration: none; cursor: pointer; font-family: "EB Garamond", serif; font-size: 0.85em; white-space: nowrap; }
.read-more-link:hover { color: #483D8B; }
.post-description { color: #333; margin-bottom: 10px; }
.nav-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; font-family: "EB Garamond", serif; font-size: 0.85em; }
.nav-item { color: var(--sys-purple); text-decoration: none; cursor: pointer; font-weight: bold; }
.nav-item.disabled { color: #999; cursor: default; pointer-events: none; }
.nav-separator { height: 2px; background: #999; margin-bottom: 20px; border-bottom: 1px solid #fff; }
.post-body-content h1 { font-size: 1.5em; margin-top: 0; }

.post-body-content blockquote {
    background: var(--sys-light);
    border-left: 5px solid var(--sys-purple);
    padding: 10px 15px;
    margin: 1.5em 0;
    font-style: italic;
    color: #222;
}







